Enable Close Watcher by default
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: keithamus, Assigned: keithamus)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Comment 1•1 year ago
•
|
||
Once enabled, this needs to be documented at https://developer.mozilla.org/en-US/docs/Web/API/CloseWatcher and the related browser compat data plus the release notes on MDN.
And Keith, maybe you can also request this to be added to the Firefox release notes.
Sebastian
| Assignee | ||
Comment 2•2 months ago
|
||
Comment 5•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 6•2 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Support for the CloseWatcher interface, and its integration with dialogs & popovers
[Affects Firefox for Android]: Yes (also with some android specific behavior)
[Suggested wording]: Add support for closing popovers & dialogs with the Android 'Back Button', and implement the CloseWatcher API for handling this in script.
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/API/CloseWatcher
(Please improve my wording, it's not great).
Updated•2 months ago
|
Comment 7•2 months ago
|
||
(In reply to Keith Cirkel [:keithamus] from comment #6)
Release Note Request (optional, but appreciated)
[Why is this notable]: Support for theCloseWatcherinterface, and its integration with dialogs & popovers
[Affects Firefox for Android]: Yes (also with some android specific behavior)
[Suggested wording]: Add support for closing popovers & dialogs with the Android 'Back Button', and implement the CloseWatcher API for handling this in script.
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/API/CloseWatcher(Please improve my wording, it's not great).
Is that an Android-only improvement?
| Assignee | ||
Comment 8•2 months ago
|
||
CloseWatcher is exposed to all platforms, and mitigates abusive strategies for multiple dialogs/popovers (effectively, pressing Escape twice will force these to close). Developers can use the CloseWatcher interface to also tie into this behaviour.
The Android specific behaviour is that the back button now consumes a CloseWatcher (the equivalent of the Escape key). This means the back button will now close Dialogs/Popovers on first click.
So it's an improvement on all platforms, with specific features for Android.
Updated•2 months ago
|
Comment 9•2 months ago
|
||
Note added to 149 nightly release notes with this wording:
Added support for closing popovers & dialogs with the Android Back Button, and implement the
CloseWatcherAPI for handling this in script.
I am keeping the relnote-firefox? flag set until we include this note in our final 149 release notes, thanks.
Comment 10•2 months ago
|
||
FF149 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/43220 .
Comatibility data already updated and docs look OK, so mostly just release note.
Updated•1 month ago
|
Description
•