Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4f393fd202e3aae8e78552bb3dd8473b10fa7113
https://github.com/WebKit/WebKit/commit/4f393fd202e3aae8e78552bb3dd8473b10fa7113
Author: Simon Pena <[email protected]>
Date: 2026-06-02 (Tue, 02 Jun 2026)
Changed paths:
A
LayoutTests/fast/dom/query-selector-all-cache-memory-pressure-crash-expected.txt
A LayoutTests/fast/dom/query-selector-all-cache-memory-pressure-crash.html
M Source/WebCore/dom/Document.cpp
Log Message:
-----------
ASSERTION FAILED: it != m_querySelectorAllResults.end() -
clearQuerySelectorAllResults() leaves stale per-node
HasValidQuerySelectorAllResults bit
https://bugs.webkit.org/show_bug.cgi?id=315844
Reviewed by Ryosuke Niwa.
When clearing the querySelectorAll cached results, ensure that the node
references have their HasValidQuerySelectorAllResults bit cleared as
well, to avoid an assertion in
invalidateQuerySelectorAllResultsForClassAttributeChange.
Test: fast/dom/query-selector-all-cache-memory-pressure-crash.html
*
LayoutTests/fast/dom/query-selector-all-cache-memory-pressure-crash-expected.txt:
Added.
* LayoutTests/fast/dom/query-selector-all-cache-memory-pressure-crash.html:
Added.
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::clearQuerySelectorAllResults):
Canonical link: https://commits.webkit.org/314347@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications