Pressing "Esc" should "cancel" the dialog: e.g. close it, and emit a "cancel" event.
This is only for modal dialogs.
<rdar://problem/79971694>
Created attachment 433314 [details] Patch
Created attachment 435004 [details] Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
WPT PR: https://github.com/web-platform-tests/wpt/pull/29917
Comment on attachment 435004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435004&action=review r=me > Source/WebCore/page/EventHandler.cpp:3514 > + if (HTMLDialogElement* activeModalDialog = m_frame.document()->activeModalDialog()) { auto*
Created attachment 435021 [details] Patch
Committed r280703 (240299@main): <https://commits.webkit.org/240299@main>