mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-04 16:15:25 +00:00
d25c72e153
This is currently hidden behind the per-window PB build option.
12 lines
456 B
JavaScript
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();
|
|
}
|
|
|