Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e1679b539c6174f7b2628eda2b25fb21cba830be
      
https://github.com/WebKit/WebKit/commit/e1679b539c6174f7b2628eda2b25fb21cba830be
  Author: Anuj Panta <[email protected]>
  Date:   2026-07-03 (Fri, 03 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/inspector/protocol/DOMStorage.json
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/inspector/FrameInspectorController.cpp
    M Source/WebCore/inspector/InstrumentingAgents.h
    A Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.cpp
    A Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.h

  Log Message:
  -----------
  Web Inspector: [SI] add per-frame FrameDOMStorageAgent (enable/disable)
https://bugs.webkit.org/show_bug.cgi?id=316799
rdar://179249922

Reviewed by BJ Burg.

Introduce FrameDOMStorageAgent, the per-frame DOMStorage agent for Site
Isolation. Each LocalFrame's FrameInspectorController creates one, and
it registers itself as the enabled per-frame DOMStorage agent on its
frame's InstrumentingAgents.

This patch is enablement only: enable/disable are functional, and the
DOMStorage domain now advertises the "frame" target type so a frame
target exposes DOMStorageAgent to the frontend. The storage commands are
present as "Not supported on frame targets" stubs and are implemented in
a follow-up.

enable() is idempotent: unlike the page-level InspectorDOMStorageAgent
(which errors on a redundant enable), a repeat enable for the same agent
is treated as a no-op, matching the sibling Frame* agents (e.g.
FrameCSSAgent).

* Source/JavaScriptCore/inspector/protocol/DOMStorage.json:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/inspector/FrameInspectorController.cpp:
(WebCore::FrameInspectorController::createLazyAgents):
* Source/WebCore/inspector/InstrumentingAgents.h:
* Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.cpp: Added.
(WebCore::FrameDOMStorageAgent::FrameDOMStorageAgent):
(WebCore::m_inspectedFrame):
(WebCore::FrameDOMStorageAgent::didCreateFrontendAndBackend):
(WebCore::FrameDOMStorageAgent::willDestroyFrontendAndBackend):
(WebCore::FrameDOMStorageAgent::enable):
(WebCore::FrameDOMStorageAgent::disable):
(WebCore::FrameDOMStorageAgent::getDOMStorageItems):
(WebCore::FrameDOMStorageAgent::setDOMStorageItem):
(WebCore::FrameDOMStorageAgent::removeDOMStorageItem):
(WebCore::FrameDOMStorageAgent::clearDOMStorageItems):
* Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.h: Added.

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



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

Reply via email to