Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop exposing showModalDialog(), behind a linked-on-after check
https://bugs.webkit.org/show_bug.cgi?id=243099 <rdar://97441232> Reviewed by Ryosuke Niwa and Darin Adler. Now that we support the dialog element, drop support for showModalDialog(), behind a linked-on-after check. Blink and Gecko have already dropped their support for showModalDialog() a long time ago. * LayoutTests/editing/execCommand/show-modal-dialog-during-execCommand.html: * LayoutTests/fast/animation/request-animation-frame-during-modal.html: * LayoutTests/fast/dom/Window/delete-operations.html: * LayoutTests/fast/dom/Window/forbid-showModalDialog.html: * LayoutTests/fast/dom/Window/open-window-min-size.html: * LayoutTests/fast/dom/Window/showModalDialog-mandatory-parameter.html: * LayoutTests/fast/dom/Window/window-function-frame-getter-precedence.html: * LayoutTests/fast/dom/Window/window-function-name-getter-precedence.html: * LayoutTests/fast/dom/Window/window-lookup-precedence.html: * LayoutTests/fast/dom/Window/window-property-shadowing.html: * LayoutTests/fast/dom/null-page-show-modal-dialog-crash.html: * LayoutTests/fast/dom/wrapper-identity.html: * LayoutTests/fast/events/beforeunload-showModalDialog.html: * LayoutTests/fast/events/pagehide-showModalDialog.html: * LayoutTests/fast/events/scroll-event-during-modal-dialog.html: * LayoutTests/fast/events/show-modal-dialog-onblur-onfocus.html: * LayoutTests/fast/events/unload-showModalDialog.html: * LayoutTests/fast/harness/show-modal-dialog.html: * LayoutTests/http/tests/cookies/document-cookie-after-showModalDialog.html: * LayoutTests/http/tests/security/cross-frame-access-call.html: * LayoutTests/http/tests/security/cross-frame-access-get.html: * LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html: * LayoutTests/http/tests/security/cross-frame-access-put.html: * LayoutTests/http/tests/security/cross-origin-modal-dialog-base.html: * LayoutTests/http/tests/security/navigate-when-restoring-cached-page.html: * LayoutTests/http/tests/security/showModalDialog-sync-cross-origin-page-load.html: * LayoutTests/http/tests/security/showModalDialog-sync-cross-origin-page-load2.html: * LayoutTests/js/dom/function-length.html: * Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml: * Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h: * Source/WebCore/bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::finishCreation): * Source/WebKit/Shared/WebPreferencesDefaultValues.cpp: (WebKit::defaultShowModalDialogEnabled): * Source/WebKit/Shared/WebPreferencesDefaultValues.h: * Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h: * Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm: (WebKit::defaultShowModalDialogEnabled): * Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm: (-[ModalDelegate _webViewRunModal:]): Deleted. (-[ModalDelegate _webView:setResizable:]): Deleted. (-[ModalDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]): Deleted. * Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp: (beforeAll): (testWebViewAllowModalDialogs): Deleted. (testWebViewDisallowModalDialogs): Deleted. * Tools/WebKitTestRunner/TestOptions.cpp: (WTR::TestOptions::defaults): Canonical link: https://commits.webkit.org/252759@main
- Loading branch information
Showing
41 changed files
with
81 additions
and
78 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/editing/execCommand/show-modal-dialog-during-execCommand.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<html> | ||
|
||
<head> | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/animation/request-animation-frame-during-modal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/dom/Window/showModalDialog-mandatory-parameter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/dom/Window/window-function-frame-getter-precedence.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/dom/Window/window-function-name-getter-precedence.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<html> | ||
<head> | ||
<script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<html> | ||
<head> | ||
<script> | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/http/tests/cookies/document-cookie-after-showModalDialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/http/tests/security/cross-origin-modal-dialog-base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/http/tests/security/navigate-when-restoring-cached-page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/http/tests/security/showModalDialog-sync-cross-origin-page-load.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/http/tests/security/showModalDialog-sync-cross-origin-page-load2.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
|
2 changes: 1 addition & 1 deletion
2
...ted/w3c/web-platform-tests/html/browsers/the-window-object/historical.window-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL showModalDialog() has been removed from the platform assert_false: expected false got true | ||
PASS showModalDialog() has been removed from the platform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters