2012-10-07 19:04:39 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<script>
|
|
|
|
// Make sure that we cannot open private browsing windows from unprivileged content
|
|
|
|
var win = window.open("about:blank", "_blank", "private");
|
2014-09-23 22:48:52 +00:00
|
|
|
ok(!SpecialPowers.isContentWindowPrivate(win));
|
2012-10-07 19:04:39 +00:00
|
|
|
win.close();
|
2012-12-10 05:06:06 +00:00
|
|
|
// Also, make sure that passing non-private doesn't make any difference either
|
|
|
|
win = window.open("about:blank", "_blank", "non-private");
|
2014-09-23 22:48:52 +00:00
|
|
|
ok(!SpecialPowers.isContentWindowPrivate(win));
|
2012-12-10 05:06:06 +00:00
|
|
|
win.close();
|
2012-10-07 19:04:39 +00:00
|
|
|
</script>
|