Closed Bug 2087453 Opened 1 month ago Closed 24 days ago

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

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])

Attachments

(1 file)

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

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

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

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

WebKit export from bug: A \<<!---->select><!----> whose form state is restored keeps showing the old option

<pre>
A <select> whose form state is restored keeps showing the old option

A <select> restores its form state, for instance when going back to a page, at
its end tag, or at the end tag of its form if it has one.
HTMLSelectElement::restoreFormControlState() changed which options are selected,
but didn't update <selectedcontent> descendants or the button text of a native
drop-down. <selectedcontent> kept showing the option selected during parsing,
and so did the button text if it was rendered before the state was restored.

Like reset(), restoreFormControlState() now invalidates the button text and
updates <selectedcontent>.

selectedcontent-restore.optional.html timed out before checking
<selectedcontent>. WebKit only adds a session history entry for a form
submission that script triggers in a frame during a user gesture, which
test_driver.bless() doesn't provide. The test now submits from a click handler
and is no longer skipped. Its second subtest still fails: WebKit restores the
form before the script in the frame adds the named control that is part of
the form's key.

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

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Attached file Notable wpt changes —

CI Results

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

Total 176 tests and 9 subtests

Status Summary

Firefox

OK : 1[GitHub] 84[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 165[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 172[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 195[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 2[GitHub] 97[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 121[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 148[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 2

Safari

OK : 1
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: