Bug 308685
| Summary: | Implement setSelectedColorForColorPicker in UIScriptControllerMac | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zak ridouh <zakr> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
zak ridouh
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/171218670>
zak ridouh
Pull request: https://github.com/WebKit/WebKit/pull/59466
EWS
Committed 308256@main (ddfb013ec016): <https://commits.webkit.org/308256@main>
Reviewed commits have been landed. Closing PR #59466 and removing active labels.