Closed Bug 1932700 Opened 1 year ago Closed 4 months ago

Implementation bug for popover-inside-invoker fix

Categories

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

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: masonf, Assigned: keithamus)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Steps to reproduce:

This is an implementation bug for this spec PR:

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

It fixes a corner case issue with the behavior of a popover nested inside the invoker for that popover.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Blocks: 1856430
Severity: -- → S3
Type: defect → task
Depends on: 1981121

Given a structure like:

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

With the popover open, clicking the popover will propagate a click
upward to the button, which will close the button. This change ensures
that the original target is checked, and if it is a
ShadowIncludingDescendantOf the button then the popover behaviour is not
invoked.

Assignee: nobody → mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by mozilla@keithcirkel.co.uk: https://github.com/mozilla-firefox/firefox/commit/cb4a19d822e8 https://hg.mozilla.org/integration/autoland/rev/c966ce3fbecc Fix edge case: click events inside buttons with popover descendants r=dom-core,smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/54188 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: