Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ddfb013ec0162f309f64f2f8530718d80230d21b
https://github.com/WebKit/WebKit/commit/ddfb013ec0162f309f64f2f8530718d80230d21b
Author: Zak Ridouh <[email protected]>
Date: 2026-02-25 (Wed, 25 Feb 2026)
Changed paths:
M Tools/WebKitTestRunner/mac/UIScriptControllerMac.h
M Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm
Log Message:
-----------
Implement setSelectedColorForColorPicker in UIScriptControllerMac
https://bugs.webkit.org/show_bug.cgi?id=308685
rdar://171218670
Reviewed by Aditya Keerthi.
The Mac UIScriptController was missing an implementation of
setSelectedColorForColorPicker, which prevented color picker layout
tests from running on macOS. The WKWebView testing API
(_setSelectedColorForColorPicker:) already existed on Mac but was
never wired up to the test runner.
Uses colorWithSRGBRed: rather than colorWithRed: to ensure the color
is created in the sRGB color space, matching what HTML color inputs
expects.
* Tools/WebKitTestRunner/mac/UIScriptControllerMac.h:
* Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm:
(WTR::UIScriptControllerMac::setSelectedColorForColorPicker):
Canonical link: https://commits.webkit.org/308256@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications