Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a21ae4a906e1d4c20696c86b22a8082f643c0397
      
https://github.com/WebKit/WebKit/commit/a21ae4a906e1d4c20696c86b22a8082f643c0397
  Author: Antti Koivisto <[email protected]>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    A 
LayoutTests/fast/css/getComputedStyle/computed-style-coordinated-shorthand-layer-count-crash-expected.txt
    A 
LayoutTests/fast/css/getComputedStyle/computed-style-coordinated-shorthand-layer-count-crash.html
    M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebCore/style/StyleExtractorCustom.h

  Log Message:
  -----------
  REGRESSION(314242@main): Crash in Style::extractFillLayerPropertyShorthand
https://bugs.webkit.org/show_bug.cgi?id=317585
rdar://179879711

Reviewed by Alan Baradlay.

extractFillLayerPropertyShorthand (StyleExtractorCustom.h) assumes every 
per-longhand computed-value
list has exactly layerCount items which is not necessarily true.

Test: 
fast/css/getComputedStyle/computed-style-coordinated-shorthand-layer-count-crash.html
* 
LayoutTests/fast/css/getComputedStyle/computed-style-coordinated-shorthand-layer-count-crash-expected.txt:
 Added.
* 
LayoutTests/fast/css/getComputedStyle/computed-style-coordinated-shorthand-layer-count-crash.html:
 Added.
* Source/WebCore/style/StyleExtractorCustom.h:
(WebCore::Style::extractFillLayerPropertyShorthand):

Index each longhand list with item(layerIndex % list.size()), restoring the 
pre-regression used-value repeat semantics.

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



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

Reply via email to