Bug 1424762 - Remove unnecessary sync message from browser/base/content/test/general/browser_tabfocus.js with non-e10s. r=Mossop
authorTooru Fujisawa <arai_a@mac.com>
Thu, 14 Dec 2017 14:49:32 -0600
changeset 396715 b59a2deeab14a096124f14ee99e866fec69fc7aa
parent 396714 702bbe31b754068334b1f64c6b7195876a6b2921
child 396716 d98062d7d66b702919e9f6aa23094465169bc43e
push id33110
push userrgurzau@mozilla.com
push dateMon, 18 Dec 2017 21:58:12 +0000
treeherdermozilla-central@7c4579e705c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1424762
milestone59.0a1
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
Bug 1424762 - Remove unnecessary sync message from browser/base/content/test/general/browser_tabfocus.js with non-e10s. r=Mossop
browser/base/content/test/general/browser_tabfocus.js
--- a/browser/base/content/test/general/browser_tabfocus.js
+++ b/browser/base/content/test/general/browser_tabfocus.js
@@ -133,19 +133,21 @@ add_task(async function() {
   browser1 = gBrowser.getBrowserForTab(tab1);
 
   tab2 = BrowserTestUtils.addTab(gBrowser);
   browser2 = gBrowser.getBrowserForTab(tab2);
 
   await promiseTabLoadEvent(tab1, "data:text/html," + escape(testPage1));
   await promiseTabLoadEvent(tab2, "data:text/html," + escape(testPage2));
 
-  var childFocusScript = "data:,(" + escape(focusInChild.toString()) + ")();";
-  browser1.messageManager.loadFrameScript(childFocusScript, true);
-  browser2.messageManager.loadFrameScript(childFocusScript, true);
+  if (gMultiProcessBrowser) {
+    var childFocusScript = "data:,(" + escape(focusInChild.toString()) + ")();";
+    browser1.messageManager.loadFrameScript(childFocusScript, true);
+    browser2.messageManager.loadFrameScript(childFocusScript, true);
+  }
 
   gURLBar.focus();
   await SimpleTest.promiseFocus();
 
   if (gMultiProcessBrowser) {
     window.messageManager.addMessageListener("Browser:FocusChanged", message => {
       actualEvents.push(message.data.details);
       compareFocusResults();