Closed Bug 1809223 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 37814 - Do not fire `beforetoggle` asynchronously

Categories

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

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonf@chromium.org> wrote:

Do not fire beforetoggle asynchronously

Per the discussion at [1], we have decided not to fire async
beforetoggle events at all. This means that no event will be fired
in this case:

myPopover.showPopover();
myPopover.remove();

[1] https://github.com/whatwg/html/pull/8221#discussion_r1049368041

Bug: 1307772
Change-Id: Ie6d0f24f1181131fd6e15732020c0575cd3ba865
Reviewed-on: https://chromium-review.googlesource.com/4146026
WPT-Export-Revision: 5967c2e87b38b6c65d7ca76d85721c5cf5da7630

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
FAIL : 4

Chrome

PASS : 4
ERROR: 1

Safari

OK : 1
FAIL : 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/popovers/popover-events.tentative.html [wpt.fyi]
    • Beforetoggle event (listener) get properly dispatched for popovers: FAIL (Chrome: PASS, Safari: FAIL)
    • Beforetoggle event (attribute) get properly dispatched for popovers: FAIL (Chrome: PASS, Safari: FAIL)
    • Beforetoggle event is cancelable for the "opening" transition: FAIL (Chrome: PASS, Safari: FAIL)
    • Beforetoggle event is not fired for element removal: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4a8cf768425
[wpt PR 37814] - Do not fire `beforetoggle` asynchronously, a=testonly
https://hg.mozilla.org/integration/autoland/rev/00f01983f19b
[wpt PR 37814] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.