I was testing notifications API of the sdk, and found that notification isn’t displayed the first time when I specify an icon to be used with it.
Here’s my sample index.js file:
var notifications = require("sdk/notifications"); var data = require("sdk/self").data; var myiconURL = "./success.png"; notifications.notify({ title: "Done!", text: "It worked.", iconURL: myiconURL });
The icon success.png
is placed in data folder, and has dimensions 128x128.
No notification is displayed after I do jpm -b /usr/bin/firefox run
. If I remove the iconURL line, it works.
What am I doing wrong here?
EDIT: Dimensions of the icon are irrelevant, since the same thing happens for a 32x32 icon.
Also, note that if I remove the icon specifier, it works as expected.