rem: var req = new XMLHttpRequest(); var url = qaPref.getPref('qa.extension.hermes.url', 'char'); req.open('GET', url, true); req.onreadystatechange = function(evt) { if (req.readyState == 4 && req.status == 200) { if (req.responseXML.getElementsByTagName('notifications') == null) return; var notifs = req.responseXML.getElementsByTagName('notification'); for (var i=0; i<notifs.length; i++) { var notif = notifs[i]; notif = new Notification('xml', notif); notif.serializeToDb(); } } }; req.send(null); }, 
add: var req = new XMLHttpRequest(); var url = qaPref.getPref('qa.extension.hermes.url', 'char'); req.open('GET', url, true); req.onreadystatechange = function(evt) { if (req.readyState == 4 && req.status == 200) { if (req.responseXML.getElementsByTagName('notifications') == null) return; var notifs = req.responseXML.getElementsByTagName('notification'); for (var i=0; i<notifs.length; i++) { var notif = notifs[i]; notif = new Notification('xml', notif); notif.serializeToDb(); } } }; req.send(null); }, 
context:    	updateNotificationStore : function() {   		var req = new XMLHttpRequest();   		var url = qaPref.getPref('qa.extension.hermes.url', 'char');   		req.open('GET', url, true);   		req.onreadystatechange = function(evt) {   			if (req.readyState == 4 && req.status == 200) {   				if (req.responseXML.getElementsByTagName('notifications') == null)					return;				var notifs = req.responseXML.getElementsByTagName('notification');				for (var i=0; i<notifs.length; i++) {					var notif = notifs[i];					notif = new Notification('xml', notif);					notif.serializeToDb();				}       			}   		};   		req.send(null);   	},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/838a3f38df6e9bd6fd899d9909b263e01aed1e26/notifications.js/clean/testing/extensions/community/chrome/content/notifications.js