[wpt-sync] Sync PR 65030 - fix(blink): avoid unrelated sibling scans in SelectorQuery
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65030 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65030
Details from upstream follow.
imagebuilder1837 <imagebuilder1837@outlook.com> wrote:
fix(blink): avoid unrelated sibling scans in SelectorQuery
Restrict external sibling prescans to the current compound level and
skip subject-level prescans, since the subject and its siblings must be
inside the query subtree. This avoids scanning unrelated preceding
siblings while preserving external ancestor and sibling matching
semantics.Add operation-count regression tests for child-only queries and subject
sibling chains, plus WPT coverage for query-root matching boundaries.
Add the first-time contributor to AUTHORS.Bug: 577162419
Test: out/Selector/blink_unittests --gtest_filter=SelectorQueryTest.*
Test: WPT dom/nodes/ParentNode-querySelector-external-siblings.html
Change-Id: I3d8a7277895905eeca5a642c98c9226c443f5686
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8734382
Reviewed-by: Helmut Januschka \<helmut@januschka.com>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1742330}
| Assignee | ||
Updated•10 days ago
|
| Assignee | ||
Comment 1•10 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122925
| Assignee | ||
Comment 2•10 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK : 1
PASS: 4
Chrome
OK : 1
PASS: 4
Safari
OK : 1
PASS: 4
Links
Comment 4•8 days ago
|
||
| bugherder | ||
Description
•