RESOLVED FIXED 217241
Web Inspector: Uncaught Exception: TypeError: undefined is not an object (evaluating 'breakpoint.disabled = true')
https://bugs.webkit.org/show_bug.cgi?id=217241
Summary Web Inspector: Uncaught Exception: TypeError: undefined is not an object (eva...
Devin Rousso
Reported 2020-10-02 12:03:14 PDT
# STEPS TO REPRODUCE 1. inspect any page with JS event listeners 2. uncheck the "Enabled" checkbox for any event listener on any node Uncaught Exceptions: ----------------------- - TypeError: undefined is not an object (evaluating 'breakpoint.disabled = true') (at DOMManager.js:705:19) removeBreakpointForEventListener @ DOMManager.js:705:19 hasEventListenerBreakpoint @ EventListenerSectionGroup.js:167:59 ? @ EventListenerSectionGroup.js:62:25
Attachments
Patch (1.75 KB, patch)
2020-10-02 12:21 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2020-10-02 12:21:42 PDT
Kate Cheney
Comment 2 2020-10-05 09:02:02 PDT
Comment on attachment 410351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410351&action=review > Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:-701 > - target.DOMAgent.removeBreakpointForEventListener(eventListener.eventListenerId); Why remove this call?
Devin Rousso
Comment 3 2020-10-05 10:56:46 PDT
Comment on attachment 410351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410351&action=review >> Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:-701 >> - target.DOMAgent.removeBreakpointForEventListener(eventListener.eventListenerId); > > Why remove this call? this is done later inside `_handleEventBreakpointDisabledStateChanged` (which is an event listener callback for `WI.Breakpoint.Event.DisabledStateDidChange`, which is dispatched by `WI.Breakpoint.prototype.set disabled`)
Kate Cheney
Comment 4 2020-10-05 11:05:17 PDT
(In reply to Devin Rousso from comment #3) > Comment on attachment 410351 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=410351&action=review > > >> Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:-701 > >> - target.DOMAgent.removeBreakpointForEventListener(eventListener.eventListenerId); > > > > Why remove this call? > > this is done later inside `_handleEventBreakpointDisabledStateChanged` > (which is an event listener callback for > `WI.Breakpoint.Event.DisabledStateDidChange`, which is dispatched by > `WI.Breakpoint.prototype.set disabled`) Nice, thanks for explaining!
Blaze Burg
Comment 5 2020-10-05 12:43:52 PDT
Comment on attachment 410351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410351&action=review r=e >>>> Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:-701 >>>> - target.DOMAgent.removeBreakpointForEventListener(eventListener.eventListenerId); >>> >>> Why remove this call? >> >> this is done later inside `_handleEventBreakpointDisabledStateChanged` (which is an event listener callback for `WI.Breakpoint.Event.DisabledStateDidChange`, which is dispatched by `WI.Breakpoint.prototype.set disabled`) > > Nice, thanks for explaining! Would have been good to put this in the changelog :-)
Blaze Burg
Comment 6 2020-10-05 12:44:02 PDT
r=me *
EWS
Comment 7 2020-10-05 13:03:10 PDT
Committed r267998: <https://trac.webkit.org/changeset/267998> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410351 [details].
Radar WebKit Bug Importer
Comment 8 2020-10-05 13:04:19 PDT
Note You need to log in before you can comment on or make changes to this bug.