gecko-dev/browser/base/content/test/browser_private_browsing_window.js
Ehsan Akhgari d25c72e153 Bug 798508 - Part 2: Add a browser-level API for opening new Private Browsing windows; r=jdm
This is currently hidden behind the per-window PB build option.
2012-10-07 15:39:42 -04:00

12 lines
456 B
JavaScript

// Make sure that we can open private browsing windows
function test() {
var nonPrivateWin = OpenBrowserWindow();
ok(!PrivateBrowsingUtils.isWindowPrivate(nonPrivateWin), "OpenBrowserWindow() should open a normal window");
nonPrivateWin.close();
var privateWin = OpenBrowserWindow({private: true});
ok(PrivateBrowsingUtils.isWindowPrivate(privateWin), "OpenBrowserWindow({private: true}) should open a private window");
privateWin.close();
}