Bug 311692

Summary: Node::removeAllEventListeners() enumerates event listeners *after* removing them
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2026-04-07 17:38:04 PDT
Node::removeAllEventListeners() enumerates event listeners *after* removing them. This means the call to `enumerateEventListenerTypes()` was a no-op and it would fail to reset certain event listener counters on the Document object.
Attachments
Chris Dumez
Comment 1 2026-04-07 17:42:37 PDT
EWS
Comment 2 2026-04-08 17:34:31 PDT
Committed 310808@main (823e44ce851a): <https://commits.webkit.org/310808@main> Reviewed commits have been landed. Closing PR #62237 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-04-08 17:35:14 PDT
Note You need to log in before you can comment on or make changes to this bug.