Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c0e31be07ba885691afe8b6b23b8676e1bd9b447
https://github.com/WebKit/WebKit/commit/c0e31be07ba885691afe8b6b23b8676e1bd9b447
Author: Antti Koivisto <[email protected]>
Date: 2024-11-12 (Tue, 12 Nov 2024)
Changed paths:
A LayoutTests/fast/css/root-container-back-forward-expected.html
A LayoutTests/fast/css/root-container-back-forward.html
M Source/WebCore/dom/Element.cpp
Log Message:
-----------
:root CSS container breaks history navigation with back-forward cache
https://bugs.webkit.org/show_bug.cgi?id=282592
rdar://120951698
Reviewed by Anne van Kesteren.
* LayoutTests/fast/css/root-container-back-forward-expected.html: Added.
* LayoutTests/fast/css/root-container-back-forward.html: Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::invalidateForResumingQueryContainerResolution):
When restoring a page with the document element as a container from the
back-forward cache we may fail
to compute style for its descedants. This happens because the child invalidity
bit is not set and
we think the tree is clean.
Fix by setting the child invalidty bit when invalidating container queries for
resume.
Canonical link: https://commits.webkit.org/286487@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