Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Support imageUrl in browser.notifications.create




WebExtensions: Compatibility
4 months ago
3 months ago


(Reporter: sankar88.aj, Unassigned)


52 Branch

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [triaged][notifications])


(1 attachment)

46.56 KB, application/x-zip-compressed


4 months ago
Created attachment 8851199 [details]

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170316213829

Steps to reproduce:

1. Load the attached zip file as temporary addon.
2. debug the temporary addon.
3. Notification occurs every 5 seconds.

Actual results:

Notification is displayed without image.

Expected results:

Notification should be displayed with image content specified.

Comment 1

4 months ago
No "imageUrl" support on

"iconUrl": browser.extension.getURL("mjolnir-Spoof.jpg") is working.
Has STR: --- → yes
Component: Untriaged → WebExtensions: Compatibility
Product: Firefox → Toolkit
Summary: Image notification is not working → Support imageUrl in browser.notifications.create

Comment 2

4 months ago
I don't see any explicit word in the link says "No Support to imageURL". 
But i can see "imageURL" is listed as part of Notification option:

iconUrl is working fine, even without browser.extension.getURL(). I'm using it already pointing to dynamic web images. 

But the issue is imageUrl, which is not working as in chrome or not working at all.

Comment 3

4 months ago

Comment 4

3 months ago
looking for dupe
Flags: needinfo?(amckay)

Comment 5

3 months ago
I thought I knew of a dupe, but I can't find it. Next question would be if this is supported by the underlying API (which I think is nsIAlertsService), if not we'd need to file bugs for that.
Flags: needinfo?(amckay)
Priority: -- → P5
Whiteboard: [triaged][notifications]
Yeah, there's no dupe for this, per se. There is bug 1190681, which depends on bug 1225110, but that's more about supporting buttons than supporting a notification of type "image" which is essentially what this bug is asking for. Implementing that will also require work on nsIAlertsService, so we could open a bug for that, although I'm not sure that's even something we ever plan on supporting. The spec does say it's optional [1], so I don't suppose there's a reason to specifically not implement it, but I don't imagine the priority is very high for doing so.

You need to log in before you can comment on or make changes to this bug.