diff options
Diffstat (limited to 'browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js')
-rw-r--r-- | browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js b/browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js deleted file mode 100644 index 9a1df0505..000000000 --- a/browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; - -/** - * Verify that when loading and going back/forward through history between URLs - * loaded in the content process, and URLs loaded in the parent process, we - * don't set the URL for the tab to about:blank inbetween the loads. - */ -add_task(function*() { - let url = "http://www.example.com/foo.html"; - yield BrowserTestUtils.withNewTab({gBrowser, url}, function*(browser) { - let wpl = { - onLocationChange(wpl, request, location, flags) { - if (location.schemeIs("about")) { - is(location.spec, "about:config", "Only about: location change should be for about:preferences"); - } else { - is(location.spec, url, "Only non-about: location change should be for the http URL we're dealing with."); - } - }, - }; - gBrowser.addProgressListener(wpl); - - let didLoad = BrowserTestUtils.browserLoaded(browser, null, function(loadedURL) { - return loadedURL == "about:config"; - }); - yield BrowserTestUtils.loadURI(browser, "about:config"); - yield didLoad; - - gBrowser.goBack(); - yield BrowserTestUtils.browserLoaded(browser, null, function(loadedURL) { - return url == loadedURL; - }); - gBrowser.goForward(); - yield BrowserTestUtils.browserLoaded(browser, null, function(loadedURL) { - return loadedURL == "about:config"; - }); - gBrowser.removeProgressListener(wpl); - }); -}); - |