[wpt-sync] Sync PR 45333 - Revert "[Invokers] Only dispatch invoke for built-ins or actions containing '-'"
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45333 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45333
Details from upstream follow.
Matt Reynolds <mattreynolds@chromium.org> wrote:
Revert "[Invokers] Only dispatch invoke for built-ins or actions containing '-'"
This reverts commit 87ca363c4a89ce638bb9dbfba8ad71b967e1bcbe.
Reason for revert: invoketarget-on-details-invalid-behavior.tentative.html failing on multiple builders
Original change's description:
[Invokers] Only dispatch invoke for built-ins or actions containing '-'
(This relands
https://chromium-review.googlesource.com/c/chromium/src/+/5366502 after
fixing timeout issues in
https://chromium-review.googlesource.com/c/chromium/src/+/5372478)This change refactors the
HandleInvokeInternal
calls to use an enum
class of known attribute values including akCustom
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: Ie6efeac7991c449b54d0c8b7ed360501ae5c8d37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5388656
Reviewed-by: Joey Arhar \<jarhar@chromium.org>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Auto-Submit: Keith Cirkel \<chromium@keithcirkel.co.uk>
Commit-Queue: Joey Arhar \<jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1277851}Bug: 40947660
Change-Id: I89f4d5efaba810d345c571d558cb826b263dd907
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5393427
Owners-Override: Matt Reynolds \<mattreynolds@chromium.org>
Auto-Submit: Matt Reynolds \<mattreynolds@chromium.org>
Bot-Commit: Rubber Stamper \<rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Matt Reynolds \<mattreynolds@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1278027}
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
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
Details
New Tests That Don't Pass
- /html/semantics/invokers/invoketarget-button-event-dispatch.tentative.html [wpt.fyi]
- event dispatches on click:
FAIL
(Chrome:PASS
, Safari:FAIL
) - event action is set to invokeAction:
FAIL
(Chrome:PASS
, Safari:FAIL
) - event action is set to invokeaction attribute:
FAIL
(Chrome:PASS
, Safari:FAIL
) - event dispatches if invokee is non-HTML Element:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- event dispatches on click:
Comment 3•1 year ago
|
||
bugherder |
Description
•