embedding/test/test_private_window_from_content.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/test/test_private_window_from_content.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +<!DOCTYPE html>
     1.5 +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.6 +<script>
     1.7 +  // Make sure that we cannot open private browsing windows from unprivileged content
     1.8 +  var win = window.open("about:blank", "_blank", "private");
     1.9 +  ok(!SpecialPowers.isWindowPrivate(win));
    1.10 +  win.close();
    1.11 +  // Also, make sure that passing non-private doesn't make any difference either
    1.12 +  win = window.open("about:blank", "_blank", "non-private");
    1.13 +  ok(!SpecialPowers.isWindowPrivate(win));
    1.14 +  win.close();
    1.15 +</script>

mercurial