Open
Bug 1350526
Opened 7 years ago
Updated 2 years ago
Support imageUrl in browser.notifications.create
Categories
(WebExtensions :: Compatibility, defect, P5)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: sankar88.aj, Unassigned)
Details
(Whiteboard: [triaged][notifications])
Attachments
(1 file)
46.56 KB,
application/x-zip-compressed
|
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.
No "imageUrl" support on https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/notifications/create. https://developer.chrome.com/apps/notifications#type-NotificationOptions FYI: "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
Reporter | ||
Comment 2•7 years 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: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/notifications/NotificationOptions 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.
http://stackoverflow.com/questions/42069629/include-image-in-notification https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/notifications/TemplateType#Type
Comment 5•7 years 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]
Comment 6•7 years ago
|
||
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. [1] https://notifications.spec.whatwg.org/#image-url
Updated•6 years ago
|
Product: Toolkit → WebExtensions
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•