RESOLVED FIXED308685
Implement setSelectedColorForColorPicker in UIScriptControllerMac
https://bugs.webkit.org/show_bug.cgi?id=308685
Summary Implement setSelectedColorForColorPicker in UIScriptControllerMac
zak ridouh
Reported 2026-02-25 16:55:36 PST
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 expect and avoiding color space conversion artifacts.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-25 16:55:42 PST
zak ridouh
Comment 2 2026-02-25 17:00:59 PST
EWS
Comment 3 2026-02-25 21:01:10 PST
Committed 308256@main (ddfb013ec016): <https://commits.webkit.org/308256@main> Reviewed commits have been landed. Closing PR #59466 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.