Bug 263621

Summary: Log to the console when preventDefault() is called inside a passive event listener
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: DOMAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: NEW    
Severity: Normal CC: a_protyasha, karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Abrar Rahman Protyasha
Reported 2023-10-24 15:51:54 PDT
The DOM standard makes this recommendation: ``` There are scenarios where invoking preventDefault() has no effect. User agents are encouraged to log the precise cause in a developer console, to aid debugging. ``` We should respect that for the case when preventDefault() is called on an event inside a passive event listener, since that has no effect and might not be what the developer is expecting.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-10-24 15:52:05 PDT
Abrar Rahman Protyasha
Comment 3 2023-10-24 15:59:14 PDT
This change should also bring us to parity with behavior in Blink/Gecko.
Abrar Rahman Protyasha
Comment 4 2023-10-24 16:12:20 PDT
Note You need to log in before you can comment on or make changes to this bug.