embedding/test/test_private_window_from_content.html
author Sebastian Kaspari <s.kaspari@gmail.com>
Wed, 25 May 2016 19:14:39 +0200
changeset 299337 be56cb9803a91540033261d76ade0e1f06c4691c
parent 206963 324798b60ba39e6812e9c6fec7026fcdbc188baf
permissions -rw-r--r--
Bug 1247047 - Touch CLOBBER file. r=me MozReview-Commit-ID: CwiUjkM1GzW

<!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.isContentWindowPrivate(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.isContentWindowPrivate(win));
  win.close();
</script>