Closed Bug 1949660 Opened 26 days ago Closed 19 days ago

[wpt-sync] Sync PR 50857 - Improve <select> GetListItems descendant tracking

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joey Arhar <jarhar@chromium.org> wrote:

Improve <select> GetListItems descendant tracking

This patch improves and consolidates some tree traversal code for
invalidating HTMLSelectElement::GetListItems. \<option>, \<optgroup>,
and \<hr> elements won't be included in any of these traversals if they
are nested inside of an \<option>, an \<hr>, or inside nested \<optgroup>s.

This also improves the OwnerSelectElement performance of
HTMLOptGroupElement and HTMLHRElement by caching the closest select
ancestor on insertion.

Fixed: 396769395
Change-Id: Ib584f2914ee46b0206eebcb93ed9d41f0ae3796b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6279485
Reviewed-by: Traian Captan \<tcaptan@chromium.org>
Commit-Queue: Joey Arhar \<jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1422956}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL : 1

Chrome

OK : 1
PASS : 1
FAIL : 1

Safari

OK : 1
FAIL : 1
TIMEOUT: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/166087cfa3d4 [wpt PR 50857] - Improve <select> GetListItems descendant tracking, a=testonly https://hg.mozilla.org/integration/autoland/rev/f9d64369ce85 [wpt PR 50857] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.