embedding/test/test_private_window_from_content.html
author Michael Ratcliffe <mratcliffe@mozilla.com>
Wed, 19 Dec 2012 11:18:44 +0000
changeset 116651 73bb1c39936345ec43fff094f23c6930084c005a
parent 115573 988ef008a1d79117fbecf545dac830c8cc152daf
child 206958 324798b60ba39e6812e9c6fec7026fcdbc188baf
permissions -rw-r--r--
Bug 821141 - Target is firing a navigation event when an anchor is clicked r=paul

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