Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3f85e873fa7610e017dbc7a72d35f69f65fc6029
      
https://github.com/WebKit/WebKit/commit/3f85e873fa7610e017dbc7a72d35f69f65fc6029
  Author: Lily Spiniolas <[email protected]>
  Date:   2026-04-08 (Wed, 08 Apr 2026)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/mac/NSPopoverColorWellSPI.h
    M Source/WebKit/UIProcess/mac/WebColorPickerMac.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ColorInputTests.mm

  Log Message:
  -----------
  [macOS] Stop setting swatch size for color picker
https://bugs.webkit.org/show_bug.cgi?id=311590
rdar://174068840

Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.

Stop setting the swatch size for NSColorPickerMatrixView if `setSwatchSize`
is unavailable.

Test: API test ColorInputTests.ColorPickerWithSuggestionsDoesNotCrash

* Source/WebCore/PAL/pal/spi/mac/NSPopoverColorWellSPI.h:
* Source/WebKit/UIProcess/mac/WebColorPickerMac.mm:
(-[WKPopoverColorWell _showPopover]):
(-[WKColorPopoverMac 
setAndShowPicker:withColor:supportsAlpha:suggestions:rect:]):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ColorInputTests.mm:
(TestWebKitAPI::TEST(ColorInputTests, ColorPickerWithSuggestionsDoesNotCrash)):

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



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

Reply via email to