Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2b2cfeeefd82b5822f3501879e02df7ebd88cb1
      
https://github.com/WebKit/WebKit/commit/d2b2cfeeefd82b5822f3501879e02df7ebd88cb1
  Author: Yulun Wu <[email protected]>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UseSystemAppearance.mm

  Log Message:
  -----------
  Add -[WKWebView _setUseDarkAppearanceForTesting:] testing SPI
https://bugs.webkit.org/show_bug.cgi?id=325745
rdar://188630674

Reviewed by Chris Dumez and Simon Fraser.

This PR makes setUseDarkAppearanceForTesting available as a WKWebView SPI.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UseSystemAppearance.mm

* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _setUseDarkAppearanceForTesting:]):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UseSystemAppearance.mm:
(TEST(UseSystemAppearance, SetUseDarkAppearanceForTesting)):
(TEST(UseSystemAppearance, SetUseDarkAppearanceForTestingBeforeLoad)):
(TEST(UseSystemAppearance, 
SetUseDarkAppearanceForTestingSurvivesAppearanceChange)):
(TEST(UseSystemAppearance, SetUseDarkAppearanceForTestingSurvivesReload)):

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



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

Reply via email to