mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b156d1d1a0
This patch adds support for a "private" window flag which can be used to open new chrome windows in private browsing mode. It also tests to make sure that the flag is not accessible from content. A test in the next part makes sure that the flag is accessible from chrome.
9 lines
319 B
HTML
9 lines
319 B
HTML
<!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.isWindowPrivate(win));
|
|
win.close();
|
|
</script>
|