Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 427feb8178e451d07ce8ca84e89c73ce49465f80
      
https://github.com/WebKit/WebKit/commit/427feb8178e451d07ce8ca84e89c73ce49465f80
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/inspector/css/layout-flags-frame-target-expected.txt
    A 
LayoutTests/http/tests/site-isolation/inspector/css/layout-flags-frame-target.html
    A 
LayoutTests/http/tests/site-isolation/inspector/css/resources/frame-with-layout-flags.html
    M Source/JavaScriptCore/inspector/protocol/CSS.json
    M Source/WebCore/inspector/InspectorInstrumentation.cpp
    M Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
    M Source/WebCore/inspector/agents/InspectorCSSAgent.h
    M Source/WebCore/inspector/agents/frame/FrameCSSAgent.cpp
    M Source/WebCore/inspector/agents/frame/FrameCSSAgent.h
    M Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp
    M Source/WebCore/inspector/agents/frame/FrameDOMAgent.h
    M Source/WebInspectorUI/UserInterface/Controllers/CSSManager.js
    M Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js
    M Source/WebInspectorUI/UserInterface/Models/DOMNode.js
    M Source/WebInspectorUI/UserInterface/Protocol/CSSObserver.js

  Log Message:
  -----------
  [Site Isolation] Web Inspector: Nodes in cross-origin iframes have no CSS 
layout flags
https://bugs.webkit.org/show_bug.cgi?id=326615
rdar://187418569

Reviewed by Qianlang Chen.

Frame targets never reported CSS layout flags, and the frontend marked every 
frame-target element as
rendered. So a display:none node in a cross-origin iframe looked rendered, and 
grid and flex containers
there were never identified.

FrameCSSAgent now tracks and reports layout flags as InspectorCSSAgent does, 
sharing its helpers, and the
frontend routes CSS.nodeLayoutFlagsChanged and 
CSS.setLayoutContextTypeChangedMode for frame targets.

Tests: http/tests/site-isolation/inspector/css/layout-flags-frame-target.html

* 
LayoutTests/http/tests/site-isolation/inspector/css/layout-flags-frame-target-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/css/layout-flags-frame-target.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/css/resources/frame-with-layout-flags.html:
 Added.
* Source/JavaScriptCore/inspector/protocol/CSS.json:
* Source/WebCore/inspector/InspectorInstrumentation.cpp:
* Source/WebCore/inspector/agents/InspectorCSSAgent.cpp:
* Source/WebCore/inspector/agents/InspectorCSSAgent.h:
* Source/WebCore/inspector/agents/frame/FrameCSSAgent.cpp:
* Source/WebCore/inspector/agents/frame/FrameCSSAgent.h:
* Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp:
* Source/WebCore/inspector/agents/frame/FrameDOMAgent.h:
* Source/WebInspectorUI/UserInterface/Controllers/CSSManager.js:
* Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:
* Source/WebInspectorUI/UserInterface/Models/DOMNode.js:
* Source/WebInspectorUI/UserInterface/Protocol/CSSObserver.js:

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



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

Reply via email to