mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset a1a88af9e251 (bug 1142240) for bc1 orange
This commit is contained in:
parent
4d71a97fb4
commit
b23972b7f5
@ -52,4 +52,3 @@ skip-if = e10s
|
||||
skip-if = e10s
|
||||
[browser_privatebrowsing_zoomrestore.js]
|
||||
skip-if = e10s
|
||||
[browser_aboutPrivateBrowsing_openWindow.js]
|
||||
|
@ -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);
|
||||
});
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user