Diff
Modified: trunk/LayoutTests/ChangeLog (290403 => 290404)
--- trunk/LayoutTests/ChangeLog 2022-02-24 00:52:30 UTC (rev 290403)
+++ trunk/LayoutTests/ChangeLog 2022-02-24 01:12:17 UTC (rev 290404)
@@ -1,3 +1,17 @@
+2022-02-23 Robert Jenner <[email protected]>
+
+ Use of showModalDialog should appear as a warning in WI console
+ https://bugs.webkit.org/show_bug.cgi?id=237046
+
+ Unreviewed test gardening. Rebase for wk1 mac and Windows tests.
+
+ * platform/mac-wk1/fast/events/beforeunload-showModalDialog-expected.txt: Added.
+ * platform/mac-wk1/fast/events/pagehide-showModalDialog-expected.txt: Added.
+ * platform/mac-wk1/fast/events/unload-showModalDialog-expected.txt: Added.
+ * platform/wincairo-wk1/fast/events/beforeunload-showModalDialog-expected.txt: Added.
+ * platform/wincairo-wk1/fast/events/pagehide-showModalDialog-expected.txt: Added.
+ * platform/wincairo-wk1/fast/events/unload-showModalDialog-expected.txt: Added.
+
2022-02-23 J Pascoe <[email protected]>
[WebAuthn] Improve error message for missing pubKeyCredParams
Added: trunk/LayoutTests/platform/mac-wk1/fast/events/beforeunload-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/mac-wk1/fast/events/beforeunload-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/fast/events/beforeunload-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,7 @@
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.
Added: trunk/LayoutTests/platform/mac-wk1/fast/events/pagehide-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/mac-wk1/fast/events/pagehide-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/fast/events/pagehide-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,7 @@
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.
Added: trunk/LayoutTests/platform/mac-wk1/fast/events/unload-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/mac-wk1/fast/events/unload-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/fast/events/unload-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,8 @@
+main frame - has 1 onunload handler(s)
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.
Added: trunk/LayoutTests/platform/wincairo-wk1/fast/events/beforeunload-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/wincairo-wk1/fast/events/beforeunload-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/wincairo-wk1/fast/events/beforeunload-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,7 @@
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.
Added: trunk/LayoutTests/platform/wincairo-wk1/fast/events/pagehide-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/wincairo-wk1/fast/events/pagehide-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/wincairo-wk1/fast/events/pagehide-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,7 @@
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.
Added: trunk/LayoutTests/platform/wincairo-wk1/fast/events/unload-showModalDialog-expected.txt (0 => 290404)
--- trunk/LayoutTests/platform/wincairo-wk1/fast/events/unload-showModalDialog-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/wincairo-wk1/fast/events/unload-showModalDialog-expected.txt 2022-02-24 01:12:17 UTC (rev 290404)
@@ -0,0 +1,8 @@
+main frame - has 1 onunload handler(s)
+CONSOLE MESSAGE: showModalDialog() is deprecated and will be removed. Please use the <dialog> element instead.
+CONSOLE MESSAGE: Use of window.showModalDialog is not allowed while unloading a page.
+This test verifies that prompts are forbidden when leaving a webpage.
+
+Prompts include alert, confirm, prompt, and showModalDialog.
+
+If there is no prompt, the test passed.