Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 95a3baf67f8b4e1db929e2f9c4779fcb52d6bd67
      
https://github.com/WebKit/WebKit/commit/95a3baf67f8b4e1db929e2f9c4779fcb52d6bd67
  Author: Etienne Segonzac <[email protected]>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    A 
LayoutTests/model-element/immersive/model-element-immersive-bfcache-expected.txt
    A LayoutTests/model-element/immersive/model-element-immersive-bfcache.html
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/DocumentImmersive.cpp
    M Source/WebCore/dom/DocumentImmersive.h

  Log Message:
  -----------
  REGRESSION(316891@main): web env dismissal animation is jarring on navigation
https://bugs.webkit.org/show_bug.cgi?id=319629
<rdar://182258311>

Reviewed by Mike Wyrzykowski.

The previous fix cleaned-up the Immersive Model's state when entering
bfcache, causing it to stop rendering during the dismissal animation.

Instead, do the clean-up when _restoring_ from the bfcache.

Test: model-element/immersive/model-element-immersive-bfcache.html

* 
LayoutTests/model-element/immersive/model-element-immersive-bfcache-expected.txt:
 Added.
* LayoutTests/model-element/immersive/model-element-immersive-bfcache.html: 
Added.
Add a test covering the bfcache scenario.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::setBackForwardCacheState):
(WebCore::Document::resume):
Move the call from the entering code path to the resume code path.

* Source/WebCore/dom/DocumentImmersive.cpp:
(WebCore::DocumentImmersive::didResumeFromBackForwardCache):
(WebCore::DocumentImmersive::clearForBackForwardCache): Deleted.
* Source/WebCore/dom/DocumentImmersive.h:
Rename the method to make it clearer.

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



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

Reply via email to