Closed Bug 1886080 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 45187 - Revert "[Invokers] Only dispatch invoke for built-ins or actions containing '-'"

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox126 fixed)

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rakina Zata Amni <rakina@chromium.org> wrote:

Revert "[Invokers] Only dispatch invoke for built-ins or actions containing '-'"

This reverts commit adedac451fc3c209790b3e6cff4aa32b88cc493b.

Reason for revert: Modified wpt fails on mac: https://ci.chromium.org/ui/p/chromium/builders/ci/Mac11%20Tests/26150/blamelist

Original change's description:

[Invokers] Only dispatch invoke for built-ins or actions containing '-'

This change refactors the HandleInvokeInternal calls to use an enum
class of known attribute values including a kCustom key which can determine if the invoke action meets the criteria for being
a "custom" action - that is it includes a dash (see
https://github.com/whatwg/html/pull/9841/commits/b40ba866cc21553f63d8f6244becbdbc38176310).

This also updates the tests to reflect this; only actions with a -, or
otherwise known actions, will dispatch an event. All other actions do
not, and must be manually dispatched. This does not preclude web authors
from manually dispatching said events.

Bug: 40947660
Change-Id: I0394de0b949fa939c1614d59ca914b5725422cbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5366502
Reviewed-by: Luke \<lwarlow@igalia.com>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Commit-Queue: Luke \<lwarlow@igalia.com>
Reviewed-by: Joey Arhar \<jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1274614}

Bug: 40947660
Change-Id: Icc47881303d50345ecf8faf7bb2f9a5d68eaf6dd

Reviewed-on: https://chromium-review.googlesource.com/5377231
WPT-Export-Revision: 21d04132eb1d5ee2e8cb932d5d52850fe75fd4ef

CI Results

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

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 4

Chrome

OK : 1
PASS: 6

Safari

OK : 1
PASS: 2
FAIL: 4

Links

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/839e9a4434ef [wpt PR 45187] - Revert "[Invokers] Only dispatch invoke for built-ins or actions containing '-'", a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.