Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 766b2065d561c89048a43428f23826a0463bd75c
https://github.com/WebKit/WebKit/commit/766b2065d561c89048a43428f23826a0463bd75c
Author: Anuj Panta <[email protected]>
Date: 2026-07-03 (Fri, 03 Jul 2026)
Changed paths:
M Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.cpp
M Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.h
Log Message:
-----------
Web Inspector: [SI] implement DOMStorage storage commands on
FrameDOMStorageAgent
https://bugs.webkit.org/show_bug.cgi?id=316800
rdar://179249711
Reviewed by BJ Burg.
Implement getDOMStorageItems, setDOMStorageItem, removeDOMStorageItem,
and clearDOMStorageItems on FrameDOMStorageAgent, replacing the stubs.
Unlike the page-level InspectorDOMStorageAgent, which searches the frame
tree by security origin (and so cannot reach cross-origin out-of-process
frames), the frame agent resolves its storage area directly from its own
m_inspectedFrame's document via the page's StorageNamespaceProvider.
securityOrigin is therefore not needed to locate the area; a mismatch
against the frame's own origin is asserted (debug only) but the command
still proceeds on this frame's storage.
* Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.cpp:
(WebCore::FrameDOMStorageAgent::getDOMStorageItems):
(WebCore::FrameDOMStorageAgent::setDOMStorageItem):
(WebCore::FrameDOMStorageAgent::removeDOMStorageItem):
(WebCore::FrameDOMStorageAgent::clearDOMStorageItems):
(WebCore::FrameDOMStorageAgent::findStorageArea): Resolve the StorageArea
from the inspected frame's document, no origin-based frame-tree lookup.
* Source/WebCore/inspector/agents/frame/FrameDOMStorageAgent.h:
Canonical link: https://commits.webkit.org/316501@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications