Closed Bug 2087326 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64258 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329099

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329099

WebKit export from bug: A moved \<<!---->selectedcontent><!----> should be updated through its \<<!---->select><!---->

<pre>
A moved <selectedcontent> should be updated through its <select>

Align with <a href="https://github.com/whatwg/html/pull/13005">https://github.com/whatwg/html/pull/13005</a> which no longer gives
<selectedcontent> a pending update of its own.

<a href="https://commits.webkit.org/324149@main">324149@main</a> gave <selectedcontent> a pending update flag so that moving it
repeatedly queues a single microtask, which does nothing once the element is
updated otherwise. The update of its <select>'s <selectedcontent> elements,
which removing or moving an <option> queues, already works that way, so moving
a <selectedcontent> now queues that instead. Moving a <selectedcontent> and then
removing the selected option thus updates it once, where both microtasks
updated it before. The <select>'s other <selectedcontent> elements are now
updated as well.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329099">https://bugs.webkit.org/show_bug.cgi?id=329099</a>
</pre>

PR 64258 applied with additional changes from upstream: 3c567c3c0fd9dbff746e92e07a843255e1d0b194

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

CI Results

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

Total 1 tests and 10 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 9

Chrome

OK : 1
PASS: 2
FAIL: 8

Safari

OK : 1
PASS: 2
FAIL: 8

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/forms/the-select-element/customizable-select/selectedcontent-queued-update.html [wpt.fyi]
    • Removing an option that causes another option to be selected updates selectedcontent.: FAIL (Chrome: PASS, Safari: FAIL)
    • Removing options queues a single update of selectedcontent.: FAIL (Chrome: FAIL, Safari: PASS)
    • A queued update of selectedcontent does nothing if it was updated in the meantime.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Inserting an option performs a pending update of selectedcontent.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Moving a selectedcontent element twice queues a single update.: FAIL (Chrome: FAIL, Safari: FAIL)
    • A queued update of a moved selectedcontent element does nothing if it was updated in the meantime.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Inserting selectedcontent while an update of its select's selectedcontent elements is queued leaves it to that update.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Moving a selectedcontent element and removing the selected option queues a single update.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Moving a selectedcontent element into a select updates all of its selectedcontent elements.: FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.