Closed Bug 1939193 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 49847 - Refactor OptionListIterator and OptionList, and related code

Categories

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

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonf@chromium.org> wrote:

Refactor OptionListIterator and OptionList, and related code

This CL should not change functionality. It refactors the
OptionList and OptionListIterator classes in a few ways:

  • use references rather than pointers in many places, in particular
    *option_list_iterator is now the option, not a pointer to the
    option.
  • OptionListIterator's constructor now has an enum to control where
    to start the iteration, which will become more useful with the
    next CL.
  • add OptionList::size()

This CL also refactors HTMLOptionElement::DefaultEventHandlerInternal,
using the changes above, plus a new OptionList::NextMatchingOption()
which facilitates iterating the options subject to matching
conditions (like IsFocusable()). This will again get more use in
the following CLs.

Bug: 382101095
Change-Id: Ifb128afca845d8821bd5b45d09706356e62fc083
Reviewed-on: https://chromium-review.googlesource.com/6112153
WPT-Export-Revision: 781d3bbc0af2a4d4f31df1b8b24304a0e7b66cb1

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6aedf04fd49c [wpt PR 49847] - Refactor OptionListIterator and OptionList, and related code, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.