Closed Bug 2089314 Opened 18 days ago Closed 9 days ago

[wpt-sync] Sync PR 64321 - script: Remove the `<input type=file>` button activation workaround

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 64321 into mozilla-central (this bug is closed when the sync is complete).

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

Martin Robinson <mrobinson@igalia.com> wrote:

script: Remove the <input type=file> button activation workaround

This workaround was causing a panic when clicking on a disabled file
input. Instead of manually triggering the activation behavior on the
<input> when the button is clicked, mark the shadow tree button
non-activable. This causes the activation to happen on an ancestor. In
addition, bring a couple of these methods closer to the specification
text.

This fixes a panic when clicking on a disabled <input type=file>.

Testing: This change adds a WPT crash test.

Reviewed in servo/servo#49379

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 186 tests

Status Summary

Firefox

OK : 146
PASS: 1[GitHub] 12[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1995[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 2021[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] 2022[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 26

Chrome

PASS: 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://github.com/mozilla-firefox/firefox/commit/5e2e5e7d38c8 https://hg.mozilla.org/integration/autoland/rev/7d317ec8275f [wpt PR 64321] - script: Remove the `<input type=file>` button activation workaround, a=testonly
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.