embedding/test/test_private_window_from_content.html
author Birunthan Mohanathas <birunthan@mohanathas.com>
Wed, 16 Jul 2014 12:02:34 -0700
changeset 194423 faecfa9d0bb6c46e32934182e6154758190262ed
parent 115563 988ef008a1d79117fbecf545dac830c8cc152daf
child 206783 324798b60ba39e6812e9c6fec7026fcdbc188baf
permissions -rw-r--r--
Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan

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