Cleanup custom images in notifications
Categories
(Toolkit :: PopupNotifications and Notification Bars, task)
Tracking
()
People
(Reporter: hjones, Unassigned)
References
Details
(Whiteboard: [recomp])
Previously it was possible to pass a custom image
when creating a notification via calling notificationbox.appendNotification
. There are still a good number of places in the app where we're passing images to appendNotification
calls [1]. However this no longer works as expected - the code was removed during the Proton refresh as part of Bug 1711519.
I'm assuming that was a conscious decision to stop providing the option to customize the notification icon, in which case we should cleanup all the places where we're passing image
as a notificaitonbox option.
[1] A (probably) complete list of places where we're passing custom icons that don't get shown:
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/actors/DecoderDoctorParent.sys.mjs#260
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/actors/EncryptedMediaParent.sys.mjs#169
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/actors/PluginParent.sys.mjs#189
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/actors/SpeechDispatcherParent.sys.mjs#83
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/base/content/browser.js#9024
- https://searchfox.org/mozilla-central/source/browser/base/content/tabbrowser.js#5886
- https://searchfox.org/mozilla-central/source/browser/components/BrowserGlue.sys.mjs#1559
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/components/aboutlogins/AboutLoginsParent.sys.mjs#719
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/components/newtab/lib/InfoBar.jsm#45
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/components/protocolhandler/WebProtocolHandlerRegistrar.sys.mjs#166
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/modules/ContentCrashHandlers.sys.mjs#424
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/modules/ContentCrashHandlers.sys.mjs#1097
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/browser/modules/ProcessHangMonitor.sys.mjs#571
- https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/toolkit/components/normandy/lib/Heartbeat.sys.mjs#156
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 1•1 year ago
|
||
there's also some usage of image
in the notificationbox tests that we should clean up as part of this work - for example: https://searchfox.org/mozilla-central/rev/381c3f18a1896792e23a9503c1904aedac19aa06/toolkit/content/tests/chrome/test_notificationbox.xhtml#168
Updated•1 year ago
|
Description
•