Backed out changeset 7adefc652d95 (bug 1351148)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 28 Jul 2017 09:20:14 +0200
changeset 420156 1fb9a39d413c7995ae00ca5f55c44fe251c9b320
parent 420155 5c25a2f385daf14519659aa503fcfb82997d39d5
child 420157 2422ceddad003606b23d905c656ff4a31c850dc2
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1351148
milestone56.0a1
backs out7adefc652d954eaa83cb4e2a871cf2a153f3f9ea
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 7adefc652d95 (bug 1351148)
devtools/client/framework/test/browser_toolbox_races.js
--- a/devtools/client/framework/test/browser_toolbox_races.js
+++ b/devtools/client/framework/test/browser_toolbox_races.js
@@ -6,17 +6,16 @@
 "use strict";
 
 // Toggling the toolbox three time can take more than 45s on slow test machine
 requestLongerTimeout(2);
 
 // Test toggling the toolbox quickly and see if there is any race breaking it.
 
 const URL = "data:text/html;charset=utf-8,Toggling devtools quickly";
-const {gDevToolsBrowser} = require("devtools/client/framework/devtools-browser");
 
 add_task(function* () {
   // Make sure this test starts with the selectedTool pref cleared. Previous
   // tests select various tools, and that sets this pref.
   Services.prefs.clearUserPref("devtools.toolbox.selectedTool");
 
   let tab = yield addTab(URL);
 
@@ -76,15 +75,10 @@ add_task(function* () {
   gDevTools.off("toolbox-ready", onReady);
   gDevTools.off("toolbox-destroy", onDestroy);
   gDevTools.off("toolbox-destroyed", onDestroyed);
 
   gBrowser.removeCurrentTab();
 });
 
 function toggle() {
-  // When enabling the input event prioritization, we'll reserve some time to
-  // process input events in each frame. In that case, the synthesized input
-  // events may delay the normal events. Replace synthesized key events by
-  // toggleToolboxCommand to prevent the synthesized input events jam the
-  // content process and cause the test timeout.
-  gDevToolsBrowser.toggleToolboxCommand(window.gBrowser);
+  EventUtils.synthesizeKey("VK_F12", {});
 }