[webkit-changes] [WebKit/WebKit] 33ad37: [css-view-transitions] Prevent view transitions wh...

mattwoodrow noreply at github.com
Wed Jan 15 12:11:04 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 33ad37aabfeee530c2a37e445fc32f5b9c524a8c
      https://github.com/WebKit/WebKit/commit/33ad37aabfeee530c2a37e445fc32f5b9c524a8c
  Author: Matt Woodrow <mattwoodrow at apple.com>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

  Changed paths:
    A LayoutTests/swipe/swipe-disables-view-transition-expected.txt
    A LayoutTests/swipe/swipe-disables-view-transition.html
    M Source/WebCore/loader/DocumentLoader.cpp
    M Source/WebCore/loader/DocumentLoader.h
    M Source/WebCore/loader/FrameLoader.cpp

  Log Message:
  -----------
  [css-view-transitions] Prevent view transitions when a swipe animation is already running.
https://bugs.webkit.org/show_bug.cgi?id=285886
<rdar://142844150>

Reviewed by Tim Nguyen.

Prevent cross-document view-transitions if a swipe animation is already running, as recommended by the spec.

Also skip the view transition if the navigation was initiated from the UI (and isn't a history traversal).

Added new test that is identical to basic-cached-back-swipe.html, with the addition of a view transitions check.

* LayoutTests/swipe/swipe-disables-view-transition-expected.txt: Added.
* LayoutTests/swipe/swipe-disables-view-transition.html: Added.
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::navigationCanTriggerCrossDocumentViewTransition):

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



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


More information about the webkit-changes mailing list