Closed Bug 1782525 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35289 - Fix Aho-Corasick trees with attribute existence selectors.

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35289 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35289
Details from upstream follow.

Steinar H. Gunderson <sesse@chromium.org> wrote:

Fix Aho-Corasick trees with attribute existence selectors.

The Aho-Corasick code to accelerate large number of attribute selectors
has special provisions for empty attributes, i.e., [attr=""]. However,
we did not take into account that [attr] also is counted as having an
empty value (and that one could theoretically also have things like
[attr*=""], to the same effect). This would cause us to mistakenly
skip [attr] rules when the element had attr="\<anything nonempty>"
and the Aho-Corasick tree was active (ie., we had more then 50 rules
for attr).

Fixed: 1345818, 1346804, 1343300
Bug: 1318773
Change-Id: I9fd174edc3b870eb624bf632d1b996e04403b73e

Reviewed-on: https://chromium-review.googlesource.com/3802826
WPT-Export-Revision: 738c39faf631d70e356779ec0a533c3effc547e2

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29f3728c1d84
[wpt PR 35289] - Fix Aho-Corasick trees with attribute existence selectors., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.