This is covered by dialog-keydown-preventDefault.html: https://github.com/web-platform-tests/wpt/blob/master/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault.html Not sure if there are any other events that should also prevent dialog cancelation, but they should be covered by tests as well if so.
<rdar://problem/81811203>
Created attachment 436273 [details] Patch
Committed r281492 (240866@main): <https://commits.webkit.org/240866@main>
Comment on attachment 436273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=436273&action=review > Source/WebCore/page/EventHandler.cpp:3804 > + if (auto* activeModalDialog = m_frame.document()->activeModalDialog()) Use RefPtr > Source/WebCore/page/EventHandler.cpp:3812 > + Why are we adding a blank line here?