[webkit-changes] [WebKit/WebKit] 088185: Serialize CSSMediaRule with URL replacement

Sihui noreply at github.com
Tue Mar 19 22:42:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 08818578ff16b0ffa5fcb51d22a55f0bce00b4ca
      https://github.com/WebKit/WebKit/commit/08818578ff16b0ffa5fcb51d22a55f0bce00b4ca
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M Source/WebCore/css/CSSMediaRule.cpp
    M Source/WebCore/css/CSSMediaRule.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm

  Log Message:
  -----------
  Serialize CSSMediaRule with URL replacement
https://bugs.webkit.org/show_bug.cgi?id=271285
rdar://121207334

Reviewed by Ryosuke Niwa.

This patch fixes the issue that subresources URLs in CSSMediaRule are not rewritten when saving web page resources by
adding implementation for CSSMediaRule::cssTextWithReplacementURLs().

API test: WebArchive.SaveResourcesCSSMediaRule

* Source/WebCore/css/CSSMediaRule.cpp:
(WebCore::CSSMediaRule::cssTextWithReplacementURLs const):
* Source/WebCore/css/CSSMediaRule.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:

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



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


More information about the webkit-changes mailing list