Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8fcf001e06ff956e91f565849ea8b1637705efd3
      
https://github.com/WebKit/WebKit/commit/8fcf001e06ff956e91f565849ea8b1637705efd3
  Author: Qianlang Chen <[email protected]>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/inspector/css/css-editing-commands-frame-target-expected.txt
    A 
LayoutTests/http/tests/site-isolation/inspector/css/css-editing-commands-frame-target.html
    M 
LayoutTests/http/tests/site-isolation/inspector/css/resources/frame-with-stylesheet.html
    M Source/JavaScriptCore/inspector/protocol/CSS.json
    M Source/WebCore/inspector/agents/frame/FrameCSSAgent.cpp

  Log Message:
  -----------
  [Site Isolation] Web Inspector: Implement style/rule editing CSS commands for 
frame targets
https://bugs.webkit.org/show_bug.cgi?id=316843

Reviewed by BJ Burg.

Implement setStyleText, setRuleSelector, setGroupingHeaderText, and
addRule in FrameCSSAgent. These commands follow the same pattern as the
existing page target's agent, InspectorCSSAgent: resolve the style sheet
by id, obtain the FrameDOMAgent's InspectorHistory, and dispatch the
corresponding Action subclass.

Test: 
http/tests/site-isolation/inspector/css/css-editing-commands-frame-target.html

* 
LayoutTests/http/tests/site-isolation/inspector/css/css-editing-commands-frame-target-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/css/css-editing-commands-frame-target.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/css/resources/frame-with-stylesheet.html:
* Source/JavaScriptCore/inspector/protocol/CSS.json:
* Source/WebCore/inspector/agents/frame/FrameCSSAgent.cpp:
(WebCore::FrameCSSAgent::setStyleText):
(WebCore::FrameCSSAgent::setRuleSelector):
(WebCore::FrameCSSAgent::setGroupingHeaderText):
(WebCore::FrameCSSAgent::addRule):

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



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

Reply via email to