Bug 1500141 - Force computed view in splitconsole test to avoid frequent failures;r=pbro a=beta-fix DEVEDITION_64_0b3_BUILD1 DEVEDITION_64_0b3_RELEASE FENNEC_64_0b3_BUILD1 FENNEC_64_0b3_RELEASE FIREFOX_64_0b3_BUILD1 FIREFOX_64_0b3_RELEASE
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 22 Oct 2018 14:09:49 +0000
changeset 500795 affeef3f9bfa52619ab64ebe4e9253a4e4486bcf
parent 500794 77c7e6536a32bc849151fe864b269de719f831d9
child 500796 ff0220e46f755844c942f525564447f0fbbcb3f7
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro, beta-fix
bugs1500141
milestone64.0
Bug 1500141 - Force computed view in splitconsole test to avoid frequent failures;r=pbro a=beta-fix Differential Revision: https://phabricator.services.mozilla.com/D9387
devtools/client/framework/test/browser_toolbox_telemetry_activate_splitconsole.js
--- a/devtools/client/framework/test/browser_toolbox_telemetry_activate_splitconsole.js
+++ b/devtools/client/framework/test/browser_toolbox_telemetry_activate_splitconsole.js
@@ -46,16 +46,24 @@ const DATA = [
     extra: {
       host: "bottom",
       width: "1300",
     },
   },
 ];
 
 add_task(async function() {
+  // See Bug 1500141: this test frequently fails on beta because some highlighter
+  // requests made by the BoxModel component in the layout view come back when the
+  // connection between the client and the server has been destroyed. We are forcing
+  // the computed view here to avoid the failures but ideally we should have an event
+  // or a promise on the inspector we can wait for to be sure the initialization is over.
+  // Logged Bug 1500918 to investigate this.
+  await pushPref("devtools.inspector.activeSidebar", "computedview");
+
   // Let's reset the counts.
   Services.telemetry.clearEvents();
 
   // Ensure no events have been logged
   const snapshot = Services.telemetry.snapshotEvents(OPTOUT, true);
   ok(!snapshot.parent, "No events have been logged for the main process");
 
   const tab = await addTab(URL);