Closed Bug 1668754 Opened 4 years ago Closed 3 months ago

(Re)create option for add-ons to specify their own window icon

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
126 Branch

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.

Keywords: regression

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?

Type: defect → enhancement
Component: Add-ons Manager → Untriaged
Flags: needinfo?(o.e.ekker)
Product: Toolkit → WebExtensions

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...)

Flags: needinfo?(o.e.ekker)
Component: Untriaged → Add-Ons: Extensions API
Product: WebExtensions → Thunderbird
Version: 60 Branch → 60
Attached image windowIcon.png

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.

Flags: needinfo?(jorgev)

Alternatively, <link rel="icon" href="/icon16.png"> could be honoured for WebExtension pages loaded into a popup window.

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&regexp=false to get at least the TB icon.

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.

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.

Flags: needinfo?(jorgev)
Type: enhancement → defect
Keywords: regression
Attachment #9390578 - Attachment description: WIP: Bug 1668754 - Force popups to use add-on icon, for better discovebility of add-on popups vs Thunderbird popups. → WIP: Bug 1668754 - Force popups to use add-on icon, for better discoverability of add-on popups vs Thunderbird popups.
Type: enhancement → defect
No longer regressed by: 1444502
Type: enhancement → defect
Assignee: nobody → john
Attachment #9390578 - Attachment description: WIP: Bug 1668754 - Force popups to use add-on icon, for better discoverability of add-on popups vs Thunderbird popups. → Bug 1668754 - Force popups to use add-on icon, for better discoverability of add-on popups vs Thunderbird popups. r=aleca
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: