(Re)create option for add-ons to specify their own window icon
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(Not tracked)
People
(Reporter: nONoNonO, Assigned: TbSync)
Details
(Keywords: regression)
Attachments
(2 files)
As per doc https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XUL/Window_icons add-ons could specify their own icon for a Window (or override Firefox's/Thunderbird's default icon) by adding an icon with the name of the window id in the extension's subfolder chrome/icons/default. For this to work however, the extension needed to be unpacked, because otherwise the OS couldn't find the file.
Unpacking of extensions was removed in bug 1444502, causing this function to break.
As an alternative for unpacking, it was possible to copy the icon to the program directory subfolder as described here: http://forums.mozillazine.org/viewtopic.php?p=1243796#1243796
Maybe this used to work, but nowadays this fails, because the extension doesn't have write permission under chrome/icons/default/ in the program directory.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 1•4 years ago
|
||
I don't think we want extensions to change the application icon. What you describe is a legacy feature that doesn't appear to fit the new extensions model.
What use case do you have for this?
Reporter | ||
Comment 2•4 years ago
|
||
My use case is for a WebExt Experiment for Thunderbird, where it is still possible to create your own custom windows. By giving those windows their own special icon, it is more easy to recognize them from the task bar.
The old DOM Inspector had its own icon for instance.
Now the built in Developer Tools have the same icon as Firefox/Thunderbird, making it harder to find if you have several open windows.
(Admittedly, this isn't an add-on anymore, so you could give it it's own icon anyway, without honoring this bug request, but I hope you get the idea of what I mean...)
Updated•4 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Popup windows created by the WebExtenion windows API do not have an icon at all in Firefox (and Thunderbird). Neither in the window itself, nor in the task bar. Would you consider extending the windows API to (optionally) use the extension icon defined in the manifest as the icon for the popup window?
Currently, such popus have the system default icon there, which does not look too pretty.
Assignee | ||
Comment 5•2 years ago
|
||
Alternatively, <link rel="icon" href="/icon16.png">
could be honoured for WebExtension pages loaded into a popup window.
Comment 6•2 years ago
|
||
Not tested if this ever works but you could try to add icon="messengerWindow"
like we do https://searchfox.org/comm-central/search?q=+icon%3D&path=xhtm&case=false®exp=false to get at least the TB icon.
Reporter | ||
Comment 7•2 years ago
|
||
Yes, adding icon="messengerWindow" or "msgcomposeWindow" works, just like an extension's own icon works if it is placed in the program directory subfolder chrome/icons/default.
Assignee | ||
Comment 8•2 years ago
|
||
Correct, but I am interested in solving the requested feature, which is individual icons per extension and the best approach would be to not divert from Firefox behaviour and finding a common solution.
Updated•2 years ago
|
Assignee | ||
Comment 9•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Updated•3 months ago
|
Comment 10•3 months ago
|
||
Pushed by micah@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/14476451d712
Force popups to use add-on icon, for better discoverability of add-on popups vs Thunderbird popups. r=aleca,mkmelin
Updated•3 months ago
|
Description
•