tenfourfox/embedding/test/test_private_window_from_content.html

13 lines
533 B
HTML
Raw Normal View History

2017-04-19 07:56:45 +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");
ok(!SpecialPowers.isContentWindowPrivate(win));
win.close();
// Also, make sure that passing non-private doesn't make any difference either
win = window.open("about:blank", "_blank", "non-private");
ok(!SpecialPowers.isContentWindowPrivate(win));
win.close();
</script>