mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Backed out changeset b467fad71782 (bug 1142240) for frequent bc1 failures a=backout
--HG-- extra : amend_source : d9f495ca04f598cc57cfe46143e043ebde723f89
This commit is contained in:
parent
82a8ea4308
commit
b80f92a0b2
@ -52,4 +52,3 @@ skip-if = e10s
|
|||||||
skip-if = e10s
|
skip-if = e10s
|
||||||
[browser_privatebrowsing_zoomrestore.js]
|
[browser_privatebrowsing_zoomrestore.js]
|
||||||
skip-if = e10s
|
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/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
let {PromiseUtils} = Cu.import("resource://gre/modules/PromiseUtils.jsm", {});
|
let {PromiseUtils} = Cu.import("resource://gre/modules/PromiseUtils.jsm", {});
|
||||||
let {PrivateBrowsingUtils} = Cu.import('resource://gre/modules/PrivateBrowsingUtils.jsm', {})
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PlacesTestUtils",
|
XPCOMUtils.defineLazyModuleGetter(this, "PlacesTestUtils",
|
||||||
"resource://testing-common/PlacesTestUtils.jsm");
|
"resource://testing-common/PlacesTestUtils.jsm");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user