Bug 1211098 - Fixing race from tab closing. r=gijs, a=test-only
authorGabor Krizsanits <gkrizsanits@mozilla.com>
Tue, 31 Jan 2017 14:16:25 +0100
changeset 378091 ae7b6458f4de19dc45cb04ca8f665fb8f9ed43bf
parent 378090 2253ac8c294734186443882d6e7139ea7926dba4
child 378092 dec18ea1f1175989935a4ef238c60977da690e72
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs, test-only
bugs1211098
milestone53.0a2
Bug 1211098 - Fixing race from tab closing. r=gijs, a=test-only
browser/base/content/test/urlbar/browser_bug562649.js
--- a/browser/base/content/test/urlbar/browser_bug562649.js
+++ b/browser/base/content/test/urlbar/browser_bug562649.js
@@ -4,21 +4,21 @@ function test() {
                            null,
                            Ci.nsIBrowserDOMWindow.OPEN_NEWTAB,
                            Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL);
 
   is(gBrowser.userTypedValue, URI, "userTypedValue matches test URI");
   is(gURLBar.value, URI, "location bar value matches test URI");
 
   gBrowser.selectedTab = gBrowser.addTab();
-  gBrowser.removeCurrentTab();
+  gBrowser.removeCurrentTab({ skipPermitUnload: true });
   is(gBrowser.userTypedValue, URI, "userTypedValue matches test URI after switching tabs");
   is(gURLBar.value, URI, "location bar value matches test URI after switching tabs");
 
   waitForExplicitFinish();
   BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser).then(() => {
     is(gBrowser.userTypedValue, null, "userTypedValue is null as the page has loaded");
     is(gURLBar.value, URI, "location bar value matches test URI as the page has loaded");
 
-    gBrowser.removeCurrentTab();
+    gBrowser.removeCurrentTab({ skipPermitUnload: true });
     finish();
   });
 }