| Summary: | Don't run focusing steps on disconnected or inert <dialog> | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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, simon.fraser, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 84635, 227537 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tim Nguyen (:ntim)
2021-10-13 22:22:30 PDT
Created attachment 441210 [details]
Patch
Comment on attachment 441210 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441210&action=review > Source/WebCore/html/HTMLDialogElement.cpp:125 > + if (auto* cs = computedStyle(); cs && cs->effectiveInert()) We don't use abbreviations like "cs". Why go through computedStyle() and not the Renderer? Have we updated style here yet after opening the dialog? Created attachment 441227 [details]
updateStyleIfNeeded patch
Created attachment 441228 [details]
updateLayout patch
Comment on attachment 441228 [details]
updateLayout patch
As Antti points out, Element::isFocusable is able to resolve without layout being up-to-date. So the updateLayout patch is not needed.
Committed r284174 (242991@main): <https://commits.webkit.org/242991@main> |