Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a8cec25e37d5737ee8ed63daec5e713d15c4d6f9
      
https://github.com/WebKit/WebKit/commit/a8cec25e37d5737ee8ed63daec5e713d15c4d6f9
  Author: Antoine Quint <[email protected]>
  Date:   2025-05-16 (Fri, 16 May 2025)

  Changed paths:
    A 
LayoutTests/webanimations/mismatching-animation-range-longhands-when-copying-expected.txt
    A 
LayoutTests/webanimations/mismatching-animation-range-longhands-when-copying.html
    M Source/WebCore/css/ShorthandSerializer.cpp

  Log Message:
  -----------
  Tab Crash When ASSERTION FAILED: startList->size() == endList->size()
https://bugs.webkit.org/show_bug.cgi?id=291738
rdar://150018184

Reviewed by Anne van Kesteren.

Selecting an element that has `animation-range-start` and `animation-range-end` 
values
with mismatching lengths would trigger the assertion that both values would 
have the
same length under `ShorthandSerializer::serializeAnimationRange()`.

We now account for that possibility and fallback to returning the empty string.

We also add a new test that would have crashed in Debug to the assertion 
failure prior
to this fix.

* 
LayoutTests/webanimations/mismatching-animation-range-longhands-when-copying-expected.txt:
 Added.
* 
LayoutTests/webanimations/mismatching-animation-range-longhands-when-copying.html:
 Added.
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::serializeAnimationRange const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to