Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 8ac402bd38f42315fb8865d301c7afafdf5b5efc https://github.com/WebKit/WebKit/commit/8ac402bd38f42315fb8865d301c7afafdf5b5efc Author: Antti Koivisto <an...@apple.com> Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths: A LayoutTests/fast/frames/stylesheet-mutation-focus-crash-expected.txt A LayoutTests/fast/frames/stylesheet-mutation-focus-crash.html M Source/WebCore/css/StyleRule.h M Source/WebCore/editing/FrameSelection.cpp Log Message: ----------- REGRESSION(252324@main): crash in WebCore::Style::ElementRuleCollector::ruleMatches https://bugs.webkit.org/show_bug.cgi?id=252814 rdar://105545642 Reviewed by Ryosuke Niwa and Geoffrey Garen. * LayoutTests/fast/frames/stylesheet-mutation-focus-crash-expected.txt: Added. * LayoutTests/fast/frames/stylesheet-mutation-focus-crash.html: Added. * Source/WebCore/css/StyleRule.h: (WebCore::StyleRule::compiledSelectorForListIndex const): Add some asserts. * Source/WebCore/editing/FrameSelection.cpp: (WebCore::FrameSelection::pageActivationChanged): (WebCore::FrameSelection::setFocused): Scope style invalidation over the state change only. Previously it was scoped over event sending too. Originally-landed-as: 259548.274@safari-7615-branch (b25aa011e7aa). rdar://105545642 Canonical link: https://commits.webkit.org/264534@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes