I'm currently developing a firefox extension that monitores some ressource on the web and displays a notification for certain events. Currently I'm using the 'nsIAlertService' the following way:
var alertsService = Components.classes["@mozilla.org/alerts-service;1"].getService(Components.interfaces.nsIAlertsService);
alertsService.showAlertNotification(image , title, msg, true, "", onNotificationClicked);
I would like to have two things:
1) Multiline notifications (I have some detail information that I would like to display), is there a simple way to display them?
2) When the user hovers the statusbar icon a popup with some clickable links should open. I suspect that I have to write a XUL-file and manage popup and popin "by hand"...which is okay if someone has some sample code.