Refactor Alerts Services to have non-nsIObserver callbacks
Categories
(Toolkit :: Alerts Service, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: saschanaz, Assigned: saschanaz)
References
Details
(Whiteboard: [fidedi-notifications])
Attachments
(3 external files)
nsIObservers are limiting - they have exactly three vaguely-typed parameters that the callees need to figure out, and it's hard to add more topics because the callers may freak out on unexpected topics.
Having a separate observer interface that has different callbacks for each topic would be nicer.
Updated•5 months ago
|
| Assignee | ||
Comment 1•5 months ago
|
||
Having this new interface should allow us to introduce more observer topics without fears on internal backwards compatibility.
This is still a "what do you think about this approach" kind of patch:
- It does minimal refactoring of NotificationObserver rather than fulling using each nsIAlertCallbacks
- The caller can use nsIAlertCallbacks but each backend still uses nsIObservers for windows
Followups will happen after landing this, if accepted.
Updated•5 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Comment 2•4 months ago
|
||
Updating AndroidAlerts is possible, but properly doing so requires GeckoView API change. For now we fall back to ShowAlert with nsIObserver.
| Assignee | ||
Comment 3•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Pushed by rperta@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/48cae055172c
https://hg.mozilla.org/integration/autoland/rev/e44f299a9a60
Revert "Bug 2046221, Bug 2046925, Bug 2052574, Bug 2049782 - Part 2: Add telemetry to NotificationParent r=nrishel" for causing mochitest-plain failures at test_ext_notifications.html
Comment 7•4 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 8•4 months ago
|
||
No leave-open but not closed?
| Assignee | ||
Comment 9•4 months ago
|
||
Oh wait, the second push is not merged yet
Comment 10•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/28e8946d9785
https://hg.mozilla.org/mozilla-central/rev/77ec5c7bf60f
https://hg.mozilla.org/mozilla-central/rev/a443f1f9a6eb
| Assignee | ||
Updated•4 months ago
|
Updated•3 months ago
|
Description
•