embedding/test/test_private_window_from_content.html
author Edwin Flores <eflores@mozilla.com>
Fri, 30 Jan 2015 16:54:12 +1300
changeset 243625 c76f32421541b5add9393bf335952aa03116bc7e
parent 230173 324798b60ba39e6812e9c6fec7026fcdbc188baf
permissions -rw-r--r--
Bug 1127115 - Make MP4 parser assertion non-fatal. r=ajones, a=sledru

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