Bug 1397365: Part 11 - Remove unnecessary boolean as a second parameter to BrowserTestUtils.openNewBrowserWindow in a test. r?mconley draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Thu, 14 Sep 2017 11:04:08 -0700
changeset 664995 5ce2b695286a4d68e559dd9655f24a27db6d3c4a
parent 664687 2b9b0c186741357038d82eca024a2a3da65a0f30
child 731625 28290ca0dcdba04aaccd984f781fcf9e709ebb90
push id79896
push userbmo:gandalf@aviary.pl
push dateThu, 14 Sep 2017 20:00:57 +0000
reviewersmconley
bugs1397365
milestone57.0a1
Bug 1397365: Part 11 - Remove unnecessary boolean as a second parameter to BrowserTestUtils.openNewBrowserWindow in a test. r?mconley MozReview-Commit-ID: 26nLcldusEB
browser/base/content/test/general/browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js
--- a/browser/base/content/test/general/browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js
+++ b/browser/base/content/test/general/browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js
@@ -77,21 +77,21 @@ add_task(async function test_new_tab() {
 /**
  * Test that if we open a new window from a link in a non-remote
  * browser in an e10s window, that the new window is not an e10s
  * window. Also tests with a private browsing window.
  */
 add_task(async function test_new_window() {
   let normalWindow = await BrowserTestUtils.openNewBrowserWindow({
     remote: true
-  }, true);
+  });
   let privateWindow = await BrowserTestUtils.openNewBrowserWindow({
     remote: true,
     private: true,
-  }, true);
+  });
 
   // Fiddle with the prefs so that we open target="_blank" links
   // in new windows instead of new tabs.
   Services.prefs.setIntPref(OPEN_LOCATION_PREF,
                             Ci.nsIBrowserDOMWindow.OPEN_NEWWINDOW);
 
   for (let testWindow of [normalWindow, privateWindow]) {
     await promiseWaitForFocus(testWindow);