Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b4165ba22e9f017022eeedfe59266113cdd0d8c2
      
https://github.com/WebKit/WebKit/commit/b4165ba22e9f017022eeedfe59266113cdd0d8c2
  Author: Antoine Quint <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    A LayoutTests/ipc/preconnect-to-message-checks-expected.txt
    A LayoutTests/ipc/preconnect-to-message-checks.html
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.h
    M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in
    A Source/WebKit/NetworkProcess/PreconnectRequest.h
    A Source/WebKit/NetworkProcess/PreconnectRequest.serialization.in
    M Source/WebKit/NetworkProcess/PreconnectTask.cpp
    M Source/WebKit/Scripts/webkit/messages.py
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp

  Log Message:
  -----------
  [web-animations] accelerated animation with view progress timeline range and 
a scroll time yields a crash
https://bugs.webkit.org/show_bug.cgi?id=314104
rdar://176274648

Reviewed by Anne van Kesteren.

If the timeline associated with an animation is a plain scroll timeline, but 
not a view timeline,
we must resolve any offset using a view progress timeline range by simply 
disregarding the keyword.
This ensures we have resolved computed offsets in such a case, ensuring we do 
not crash when attempting
to create the `AcceleratedEffect` representation for this keyframe effect.

Test: 
imported/w3c/web-platform-tests/scroll-animations/css/timeline-offset-keyframes-with-scroll-timeline.html

* 
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/timeline-offset-keyframes-with-scroll-timeline-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/timeline-offset-keyframes-with-scroll-timeline.html:
 Added.
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::computedOffset):
(WebCore::computeMissingKeyframeOffsets):
(WebCore::KeyframeEffect::getKeyframes):
(WebCore::KeyframeEffect::processKeyframes):
(WebCore::KeyframeEffect::animationDidTick):
(WebCore::KeyframeEffect::activeScrollTimeline const):
(WebCore::KeyframeEffect::updateComputedKeyframeOffsetsIfNeeded):
(WebCore::KeyframeEffect::activeViewTimeline const): Deleted.
* Source/WebCore/animation/KeyframeEffect.h:

Originally-landed-as: 305413.839@safari-7624-branch (4a52a36ff580). 
rdar://180438807
Canonical link: https://commits.webkit.org/316300@main



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

Reply via email to