From 7e18b4456321559130082aec7ae3c0fd6a390288 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Wed, 18 Nov 2015 20:12:26 +0900 Subject: [PATCH] Bug 1224790 - Use SetFakeModal instead of SetModal for non-modal window opened by modal window. r=smaug, mstange --- dom/tests/mochitest/bugs/test_bug406375.html | 4 - dom/tests/mochitest/chrome/chrome.ini | 8 ++ .../chrome/file_bug1224790-1_modal.xul | 33 ++++++ .../chrome/file_bug1224790-1_nonmodal.xul | 28 +++++ .../chrome/file_bug1224790-2_modal.xul | 35 ++++++ .../chrome/file_bug1224790-2_nonmodal.xul | 46 ++++++++ .../mochitest/chrome/test_bug1224790-1.xul | 58 ++++++++++ .../mochitest/chrome/test_bug1224790-2.xul | 59 ++++++++++ .../windowwatcher/nsWindowWatcher.cpp | 2 +- .../mochitest/tests/SimpleTest/EventUtils.js | 104 ++++++++++++++++++ widget/cocoa/nsCocoaWindow.h | 3 + widget/cocoa/nsCocoaWindow.mm | 41 +++++-- widget/nsIWidget.h | 13 ++- 13 files changed, 415 insertions(+), 19 deletions(-) create mode 100644 dom/tests/mochitest/chrome/file_bug1224790-1_modal.xul create mode 100644 dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul create mode 100644 dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul create mode 100644 dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul create mode 100644 dom/tests/mochitest/chrome/test_bug1224790-1.xul create mode 100644 dom/tests/mochitest/chrome/test_bug1224790-2.xul diff --git a/dom/tests/mochitest/bugs/test_bug406375.html b/dom/tests/mochitest/bugs/test_bug406375.html index d0a82af08c9..cd7c9519ebb 100644 --- a/dom/tests/mochitest/bugs/test_bug406375.html +++ b/dom/tests/mochitest/bugs/test_bug406375.html @@ -17,10 +17,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=406375
 
+
diff --git a/dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul b/dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul
new file mode 100644
index 00000000000..e09efc9c0fe
--- /dev/null
+++ b/dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul
@@ -0,0 +1,28 @@
+
+
+
+
+
+  
+
diff --git a/dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul b/dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul
new file mode 100644
index 00000000000..34f49e3c4d4
--- /dev/null
+++ b/dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul
@@ -0,0 +1,35 @@
+
+
+
+
+
+  
+
diff --git a/dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul b/dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul
new file mode 100644
index 00000000000..0116dfeb26f
--- /dev/null
+++ b/dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul
@@ -0,0 +1,46 @@
+
+
+
+
+
+  
+
diff --git a/dom/tests/mochitest/chrome/test_bug1224790-1.xul b/dom/tests/mochitest/chrome/test_bug1224790-1.xul
new file mode 100644
index 00000000000..327d2a1741d
--- /dev/null
+++ b/dom/tests/mochitest/chrome/test_bug1224790-1.xul
@@ -0,0 +1,58 @@
+
+
+
+
+
+  
+
+  
+  
+  Mozilla Bug 1224790
+  
+