| Summary: | preventDefault() on keydown event should prevent dialog cancelation from happening | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||
| Component: | DOM | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, koivisto, rniwa, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | 229475 | ||||||
| Bug Blocks: | 84635 | ||||||
| Attachments: |
|
||||||
|
Description
Tim Nguyen (:ntim)
2021-08-05 14:56:44 PDT
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? |