Bug 1095236 - Test that windows opened from content with dialog=1 still open. r=mrbkap.

Relanding CLOSED TREE

--HG--
extra : source : 11cb6379251ae9efd70bf3bc1f8fab9b66b3d964
extra : amend_source : 6a585ebc1cb80896b598a76cb4275b4ee9f1cee8
This commit is contained in:
Mike Conley 2015-10-02 19:08:20 -04:00
parent 30c59e510c
commit c569672024
2 changed files with 5 additions and 0 deletions

View File

@ -193,6 +193,10 @@ add_task(function* test_window_open_with_non_defaults() {
yield testLinkWithMatrix("#winOpenNonDefault", kWinOpenNonDefault);
});
add_task(function* test_window_open_dialog() {
yield testLinkWithMatrix("#winOpenDialog", kWinOpenNonDefault);
});
add_task(function* test_target__blank() {
yield testLinkWithMatrix("#targetBlank", kTargetBlank);
});

View File

@ -6,6 +6,7 @@
<body>
<p><a id="winOpenDefault" href="#" onclick="return openWindow();">Open a new window via window.open with default features.</a></p>
<p><a id="winOpenNonDefault" href="#" onclick="return openWindow('resizable=no, toolbar=no, scrollbars=no, menubar=no, status=no, directories=no, height=100, width=500');">Open a new window via window.open with non-default features.</a></p>
<p><a id="winOpenDialog" href="#" onclick="return openWindow('dialog=yes');">Open a new window via window.open with dialog=1.</a></p>
<p><a id="targetBlank" href="about:robots" target="_blank">Open a new window via target="_blank".</a></p>
</body>
</html>