Closed Bug 1931937 Opened 23 days ago Closed 14 days ago

[wpt-sync] Sync PR 49232 - Implement new behavior for popovers contained within invokers

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonf@chromium.org> wrote:

Implement new behavior for popovers contained within invokers

In this case:

\<button popovertarget=foo>Activate
  \<div popover id=foo>Clicking me shouldn't close me\</div>
\</button>

clicking the button properly activates the popover, however,
clicking on the popover itself after that should not close
the popover. It currently does because the popover click
bubbles to the \<button> and activates the invoker, which
toggles the popover closed.

This CL changes that behavior so that clicks on the popover
in the case above no longer re-invoke the popover.

Spec PR:
https://github.com/whatwg/html/pull/10770

Bug: 379241451
Change-Id: Iab67127c46a97a081a7818bfd917864729bf8b5c
Reviewed-on: https://chromium-review.googlesource.com/6026982
WPT-Export-Revision: 004801ef2e097df93899c91c84fdd8702f7c20e4

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

CI Results

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

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 2

Chrome

OK : 1
PASS: 1
FAIL: 2

Links

Gecko CI (Treeherder)
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/1bc5ed8ce26d [wpt PR 49232] - Implement new behavior for popovers contained within invokers, a=testonly https://hg.mozilla.org/integration/autoland/rev/0aa42f2f7af7 [wpt PR 49232] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9ef5f6532921 [wpt PR 49232] - Implement new behavior for popovers contained within invokers, a=testonly https://hg.mozilla.org/integration/autoland/rev/d7da10f2415b [wpt PR 49232] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.