Open Bug 948136 Opened 12 years ago Updated 3 years ago

[WebNotifications] generic icon not displayed when icon option is defined but resource is invalid

Categories

(Core :: DOM: Core & HTML, defect, P5)

25 Branch
defect

Tracking

()

Tracking Status
firefox26 --- affected
firefox27 --- affected

People

(Reporter: fb+mozdev, Unassigned)

References

Details

STR: 1. On this site, open the dev tools console. 2. Write the following into the console, press enter, and confirm the permission request: `Notification.requestPermission();` 3. Write the following into the console & press enter: `new Notification("Notification", { icon: null });` Actual result: A notification is displayed with an empty canvas where the icon should go. (This is also true for any numeric or boolean value, or any string not pointing to a valid icon resource.) Expected result: A notification is displayed with the generic notification icon (megaphone). I.e., the same result as: `new Notification("Notification", {});` Note: This cannot be reproduced with Firefox 28 and later on OS X >= 10.8 because XUL notifications were replaced with Notification Center alerts. However, this bug should be reproducible on any platform that uses XUL Notifications for displaying Web Notifications (like Firefox 27 or earlier on OS X 10.7 or earlier).
Summary: [WebNotifications] generic icon not displayed when icon option is defined but empty or resource is not found / invalid → [WebNotifications] generic icon not displayed when icon option is defined but resource is invalid
Depends on: 782211
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.