Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7efb1f141dd0507f8da758fbb540a13b8d5cde0d
      
https://github.com/WebKit/WebKit/commit/7efb1f141dd0507f8da758fbb540a13b8d5cde0d
  Author: Devin Rousso <[email protected]>
  Date:   2026-10-09 (Fri, 09 Oct 2026)

  Changed paths:
    M Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
    M Source/WebCore/inspector/agents/InspectorDOMAgent.h

  Log Message:
  -----------
  Web Inspector: InspectorDOMAgent should remove EventFiredCallbacks on reset
https://bugs.webkit.org/show_bug.cgi?id=301193
<rdar://problem/163570267>

Reviewed by Timothy Hatcher.

Create a single `EventFiredCallback`/`EventListener` instead of a separate 
instance for each node.

Remove that single shared instance from nodes when Web Inspector is closed.

* Source/WebCore/inspector/agents/InspectorDOMAgent.h:
* Source/WebCore/inspector/agents/InspectorDOMAgent.cpp:
(WebCore::forEachInspectedNodeEventName): Added.
(WebCore::InspectorDOMAgent::willDestroyFrontendAndBackend):
(WebCore::InspectorDOMAgent::addEventListenersToNode):

Canonical link: https://commits.webkit.org/323273@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to