Skip to content

[CSS anchor positioning] WebProcess crash when popover uses anchoring#33696

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Scony:279588-css-fix-anchor-position-crash
Oct 17, 2024
Merged

[CSS anchor positioning] WebProcess crash when popover uses anchoring#33696
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Scony:279588-css-fix-anchor-position-crash

Conversation

@Scony
Copy link
Copy Markdown
Contributor

@Scony Scony commented Sep 16, 2024

ba8e7f0

[CSS anchor positioning] WebProcess crash when popover uses anchoring
https://bugs.webkit.org/show_bug.cgi?id=279588

Reviewed by Antti Koivisto.

When an anchor-positioned element is hidden using display:none, there's no point
processing it in anchoring anymore.

* LayoutTests/TestExpectations:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::evaluate):
(WebCore::Style::AnchorPositionEvaluator::updateAnchorPositioningStatesAfterInterleavedLayout):

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

f169e6c

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@Scony Scony self-assigned this Sep 16, 2024
@Scony Scony added the CSS Cascading Style Sheets implementation label Sep 16, 2024
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from f8395a0 to 40031c9 Compare September 16, 2024 13:48
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from 40031c9 to 8c91d92 Compare October 9, 2024 13:27
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from 8c91d92 to 36cc3ab Compare October 10, 2024 08:35
@tuankiet65 tuankiet65 requested a review from anttijk October 11, 2024 18:17
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from 36cc3ab to 228508c Compare October 16, 2024 08:36
@Scony Scony marked this pull request as ready for review October 16, 2024 08:37
@Scony Scony requested a review from tuankiet65 October 16, 2024 08:39
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 16, 2024
@Scony Scony removed the merging-blocked Applied to prevent a change from being merged label Oct 16, 2024
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from 228508c to fa996f6 Compare October 16, 2024 14:34
Copy link
Copy Markdown
Member

@tuankiet65 tuankiet65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but deferring to Antti for final review.

@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from fa996f6 to e96ffb3 Compare October 16, 2024 19:27
@Scony Scony force-pushed the 279588-css-fix-anchor-position-crash branch from e96ffb3 to f169e6c Compare October 16, 2024 20:11
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 16, 2024
@Scony Scony removed the merging-blocked Applied to prevent a change from being merged label Oct 17, 2024
@Scony Scony added the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2024
https://bugs.webkit.org/show_bug.cgi?id=279588

Reviewed by Antti Koivisto.

When an anchor-positioned element is hidden using display:none, there's no point
processing it in anchoring anymore.

* LayoutTests/TestExpectations:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::evaluate):
(WebCore::Style::AnchorPositionEvaluator::updateAnchorPositioningStatesAfterInterleavedLayout):

Canonical link: https://commits.webkit.org/285334@main
@webkit-commit-queue webkit-commit-queue force-pushed the 279588-css-fix-anchor-position-crash branch from f169e6c to ba8e7f0 Compare October 17, 2024 13:33
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 285334@main (ba8e7f0): https://commits.webkit.org/285334@main

Reviewed commits have been landed. Closing PR #33696 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit ba8e7f0 into WebKit:main Oct 17, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CSS Cascading Style Sheets implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants