embedding/test/test_private_window_from_content.html
author Geoff Brown <gbrown@mozilla.com>
Thu, 03 Jan 2013 13:01:54 -0700
changeset 127343 d834b07541e05cc33e80943d6fdb3747f76e98e6
parent 125430 988ef008a1d79117fbecf545dac830c8cc152daf
child 231493 324798b60ba39e6812e9c6fec7026fcdbc188baf
permissions -rw-r--r--
Bug 811411 - Add ability to run C++ unit tests on mobile; r=ted.mielczarek

<!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>