mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 10:18:38 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
12
embedding/test/test_private_window_from_content.html
Normal file
12
embedding/test/test_private_window_from_content.html
Normal file
|
|
@ -0,0 +1,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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue