Bug 231290

Summary: Removing <dialog> from document should reset m_isModal flag
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 84635    
Attachments:
Description Flags
Patch zalan: review+

Tim Nguyen (:ntim)
Reported 2021-10-06 07:42:38 PDT
m_isModal triggers the :-internal-modal-dialog pseudo class, which changes position from absolute to fixed. When removing a modal <dialog> from the document, it is also removed from the top layer, it makes sense to reset the modal dialog flag as well as a result.
Attachments
Patch (8.16 KB, patch)
2021-10-06 07:49 PDT, Tim Nguyen (:ntim)
zalan: review+
Tim Nguyen (:ntim)
Comment 1 2021-10-06 07:49:59 PDT
Radar WebKit Bug Importer
Comment 2 2021-10-06 08:29:34 PDT
Tim Nguyen (:ntim)
Comment 3 2021-10-06 10:29:52 PDT
Note You need to log in before you can comment on or make changes to this bug.