Bug 1095236 - Test that windows opened from content with dialog=1 still open. r=mrbkap.
authorMike Conley <mconley@mozilla.com>
Fri, 02 Oct 2015 19:08:20 -0400
changeset 300936 c29770290ac12f886f3a5a131235c7a763a0b531
parent 300935 6be3322df9e40f7f5f65ff5dd2d7d3a2af9fb0dc
child 300937 730bd2d9fe31fd2996bfecdd48d824bbfcb6b290
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1095236
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1095236 - Test that windows opened from content with dialog=1 still open. r=mrbkap. Relanding CLOSED TREE
dom/tests/browser/browser_test_new_window_from_content.js
dom/tests/browser/test_new_window_from_content_child.html
--- a/dom/tests/browser/browser_test_new_window_from_content.js
+++ b/dom/tests/browser/browser_test_new_window_from_content.js
@@ -188,11 +188,15 @@ function testLinkWithMatrix(aLinkSelecto
 add_task(function* test_window_open_with_defaults() {
   yield testLinkWithMatrix("#winOpenDefault", kWinOpenDefault);
 });
 
 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);
 });
--- a/dom/tests/browser/test_new_window_from_content_child.html
+++ b/dom/tests/browser/test_new_window_from_content_child.html
@@ -1,16 +1,17 @@
 <!DOCTYPE html>
 <head>
   <meta charset="utf-8">
   <title>Test popup window opening behaviour</title>
 </head>
 <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>
 
 <script>
 function openWindow(aFeatures="") {
   window.open("about:robots", "_blank", aFeatures);
   return false;