embedding/test/test_private_window_from_content.html
author Bill McCloskey <wmccloskey@mozilla.com>
Tue, 23 Sep 2014 15:48:52 -0700
changeset 206958 324798b60ba39e6812e9c6fec7026fcdbc188baf
parent 115573 988ef008a1d79117fbecf545dac830c8cc152daf
permissions -rw-r--r--
Bug 1069059 - [e10s] Convert isWindowPrivate calls to isBrowserPrivate/isContentWindowPrivate as appropriate (r=mconley,margaret)

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