Revision 00bd72922acb0a8e4f7d66f66cf73777d35fe1b4 authored by B2G Bumper Bot on 14 May 2014, 08:52:01 UTC, committed by B2G Bumper Bot on 14 May 2014, 08:52:01 UTC
1 parent 33fe5bd
Raw File
test_private_window_from_content.html
<!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.isWindowPrivate(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.isWindowPrivate(win));
  win.close();
</script>
back to top