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

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/accessibility-frame-target-expected.txt
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/accessibility-frame-target.html
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/resources/ax-frame.html
    M Source/JavaScriptCore/inspector/protocol/DOM.json
    M Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp
    M Source/WebCore/inspector/agents/frame/FrameDOMAgent.h
    M Source/WebCore/inspector/agents/frame/FrameDOMAgentStubs.cpp
    M Source/WebInspectorUI/UserInterface/Models/DOMNode.js

  Log Message:
  -----------
  Web Inspector: [SI] populate Accessibility sidebar for cross-origin iframe 
nodes
https://bugs.webkit.org/show_bug.cgi?id=316138
rdar://178562336

Reviewed by Qianlang Chen.

Port getAccessibilityPropertiesForNode onto FrameDOMAgent.
Walks the frame's local AXObjectCache for role, label, busy, checked,
expanded, required, heading level, live region status,
owned/controlled/flowed node references, and the rest of the 
AccessibilityProperties
shape. Cross-frame AX references (parentNode walking up past the
iframe boundary, controlledNodeIds pointing into the parent
process) resolve to 0 via pushNodePathToFrontend and are silently omitted,
matching the graceful-degradation behavior of the page-level path.

On the frontend, the cross-origin guard on
DOMNode.accessibilityProperties is removed.
The call routes through `owningTarget ||
WI.assumingMainTarget()` with `backendNodeId`.

The Accessibility section of the right-hand sidebar now
populates for nodes inside cross-origin iframes.

Test: http/tests/site-isolation/inspector/dom/accessibility-frame-target.html

* 
LayoutTests/http/tests/site-isolation/inspector/dom/accessibility-frame-target-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/dom/accessibility-frame-target.html:
 Added.
* LayoutTests/http/tests/site-isolation/inspector/dom/resources/ax-frame.html: 
Added.
* Source/JavaScriptCore/inspector/protocol/DOM.json:
* Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp:
(WebCore::FrameDOMAgent::processAccessibilityChildren):
(WebCore::FrameDOMAgent::buildObjectForAccessibilityProperties):
(WebCore::FrameDOMAgent::getAccessibilityPropertiesForNode):
* Source/WebCore/inspector/agents/frame/FrameDOMAgent.h:
* Source/WebCore/inspector/agents/frame/FrameDOMAgentStubs.cpp:
(WebCore::FrameDOMAgent::getAccessibilityPropertiesForNode): Deleted.
* Source/WebInspectorUI/UserInterface/Models/DOMNode.js:
(WI.DOMNode.prototype.accessibilityProperties):

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



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

Reply via email to