Implement ToggleEvent.source
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: jarhar, Assigned: keithamus)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Steps to reproduce:
The ToggleEvent interface is getting a new "source" attribute added which is set to the element which triggered the toggling of the target element, such as a popover's invoker button: https://github.com/whatwg/html/pull/11186
Comment 1•7 months ago
|
||
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.
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 2•3 months ago
|
||
This takes the generated code of ToggleEvent and moves it into
dom/events, so that we can add the SetSource & GetSource members,
which set a Source RefPtr. This also requires us to add cycle collection
for mSource.
mSource is always retargeted against currentTarget just like
CommandEvent.
| Assignee | ||
Comment 3•3 months ago
|
||
This uses the implicit "invoker" from each element to set the
ToggleEvent Source, so that toggle events dispatched from Dialogs &
Popovers include the source attribute.
Backed out for causing build bustages
Comment 7•3 months ago
|
||
Also these wpts: https://treeherder.mozilla.org/logviewer?job_id=528112365&repo=autoland&task=MMj3cvHjRaqB0XpwydhEBg.0
| Assignee | ||
Updated•3 months ago
|
Comment 10•3 months ago
|
||
Comment 11•3 months ago
|
||
Reverted this because it was causing wpt failures in details-toggle-source.html .
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | /html/semantics/interactive-elements/the-details-element/details-toggle-source.html | ToggleEvent.source on <details> elements: click details. - assert_true: An opening toggle event should have been fired. expected true got false
| Assignee | ||
Updated•3 months ago
|
Comment 12•3 months ago
|
||
Comment 13•3 months ago
|
||
Comment 14•3 months ago
|
||
Backed out for causing wpt failures @details-toggle-source.html.
| Assignee | ||
Updated•3 months ago
|
Comment 15•3 months ago
|
||
Comment 16•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2eacf57b65a4
https://hg.mozilla.org/mozilla-central/rev/470c3081db4a
https://hg.mozilla.org/mozilla-central/rev/850c85b7faf1
Updated•3 months ago
|
Comment 17•2 months ago
|
||
FF145 MDN work for this can be tracked in https://github.com/mdn/content/issues/41543
Description
•