Closed Bug 2077056 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63154 - Test that an input's value resets after a text to file to text type change

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

object-ions <moshikoatia@gmail.com> wrote:

Test that an input's value resets after a text to file to text type change

Closes #2611.

Adds a testharness.js test for steps 2 and 3 of the input type change algorithm. After the type goes from text to file and back to text:

  • the value is the value content attribute, or the empty string if there isn't one
  • the dirty value flag is false, so a later setAttribute("value", ...) shows through

type-change-state.html already covers text to file, but it never changes the type away from file, so the round trip wasn't tested.

Passes in Chromium 153. Per the issue thread, Safari still fails the original case.

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 165 tests and 16 subtests

Status Summary

Firefox

OK : 1[GitHub] 126[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: 3[GitHub] 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1973[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1999[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] 2000[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 26

Chrome

OK : 1
PASS: 3

Safari

OK : 1
FAIL: 3

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://github.com/mozilla-firefox/firefox/commit/6306f935e273 https://hg.mozilla.org/integration/autoland/rev/ca4ac592efa6 [wpt PR 63154] - Test that an input's value resets after a text to file to text type change, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.