summaryrefslogtreecommitdiffstats
path: root/embedding/test/test_private_window_from_content.html
blob: 4b64fb232e9723bbaea8febb28ddf671d4c70aee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!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>