diff --git a/browser/components/privatebrowsing/test/browser/browser.ini b/browser/components/privatebrowsing/test/browser/browser.ini index fcd03cdde506..d0ee64575c9b 100644 --- a/browser/components/privatebrowsing/test/browser/browser.ini +++ b/browser/components/privatebrowsing/test/browser/browser.ini @@ -52,4 +52,3 @@ skip-if = e10s skip-if = e10s [browser_privatebrowsing_zoomrestore.js] skip-if = e10s -[browser_aboutPrivateBrowsing_openWindow.js] diff --git a/browser/components/privatebrowsing/test/browser/browser_aboutPrivateBrowsing_openWindow.js b/browser/components/privatebrowsing/test/browser/browser_aboutPrivateBrowsing_openWindow.js deleted file mode 100644 index 7618f1fe5539..000000000000 --- a/browser/components/privatebrowsing/test/browser/browser_aboutPrivateBrowsing_openWindow.js +++ /dev/null @@ -1,26 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -// Test that clicking "Open a Private Window" button on about:privatebrowsing -// opens a new private window. -add_task(function* test_aboutprivatebrowsing_open_window() { - let win = yield BrowserTestUtils.openNewBrowserWindow(); - let browser = win.gBrowser.addTab("about:privatebrowsing").linkedBrowser; - yield BrowserTestUtils.browserLoaded(browser); - - let promiseWindowOpened = BrowserTestUtils.domWindowOpened(); - yield ContentTask.spawn(browser, {}, function* () { - content.document.getElementById("startPrivateBrowsing").click(); - }); - let private_window = yield promiseWindowOpened; - - ok(PrivateBrowsingUtils.isWindowPrivate(private_window), - "The opened window should be private."); - - // Cleanup. - yield BrowserTestUtils.closeWindow(private_window); - yield BrowserTestUtils.closeWindow(win); -}); diff --git a/browser/components/privatebrowsing/test/browser/head.js b/browser/components/privatebrowsing/test/browser/head.js index 38e3baa6f396..7a2ff8946201 100644 --- a/browser/components/privatebrowsing/test/browser/head.js +++ b/browser/components/privatebrowsing/test/browser/head.js @@ -2,7 +2,6 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ let {PromiseUtils} = Cu.import("resource://gre/modules/PromiseUtils.jsm", {}); -let {PrivateBrowsingUtils} = Cu.import('resource://gre/modules/PrivateBrowsingUtils.jsm', {}) XPCOMUtils.defineLazyModuleGetter(this, "PlacesTestUtils", "resource://testing-common/PlacesTestUtils.jsm");