rem: var httpRequest = null; function FeedResultListener() {} FeedResultListener.prototype = { handleResult : function(result) { var feed = result.doc; feed.QueryInterface(Ci.nsIFeed); callback(feed); }, };  function infoReceived() { var data = httpRequest.responseText; var ioService = Cc['@mozilla.org/network/io-service;1'] .getService(Ci.nsIIOService); var uri = ioService.newURI(url, null, null); if (data.length) { var processor = Cc["@mozilla.org/feed-processor;1"] .createInstance(Ci.nsIFeedProcessor); try { processor.listener = new FeedResultListener; processor.parseFromString(data, uri); } catch(e) { alert("Error parsing feed: " + e); } } } httpRequest = new XMLHttpRequest(); httpRequest.open("GET", url, true); try { httpRequest.onload = infoReceived; httpRequest.send(null); } catch(e) { alert(e); } }, 
add: var httpRequest = null; function FeedResultListener() {} FeedResultListener.prototype = { handleResult : function(result) { var feed = result.doc; feed.QueryInterface(Ci.nsIFeed); callback(feed); } };  function infoReceived() { var data = httpRequest.responseText; var ioService = Cc['@mozilla.org/network/io-service;1'] .getService(Ci.nsIIOService); var uri = ioService.newURI(url, null, null); if (data.length) { var processor = Cc["@mozilla.org/feed-processor;1"] .createInstance(Ci.nsIFeedProcessor); try { processor.listener = new FeedResultListener; processor.parseFromString(data, uri); } catch(e) { alert("Error parsing feed: " + e); } } } httpRequest = new XMLHttpRequest(); httpRequest.open("GET", url, true); try { httpRequest.onload = infoReceived; httpRequest.send(null); } catch(e) { alert(e); } }, 
context: 	fetchFeed : function(url, callback) {		var httpRequest = null;		function FeedResultListener() {}		FeedResultListener.prototype = {			handleResult : function(result) {				var feed = result.doc;				feed.QueryInterface(Ci.nsIFeed);				callback(feed);			},		};				function infoReceived() {			var data = httpRequest.responseText;			var ioService = Cc['@mozilla.org/network/io-service;1']							   .getService(Ci.nsIIOService);			var uri = ioService.newURI(url, null, null);			if (data.length) {				var processor = Cc["@mozilla.org/feed-processor;1"]								   .createInstance(Ci.nsIFeedProcessor);				try {					processor.listener = new FeedResultListener;					processor.parseFromString(data, uri);				} catch(e) {					alert("Error parsing feed: " + e);				}			}		}		httpRequest = new XMLHttpRequest();		httpRequest.open("GET", url, true);		try {			httpRequest.onload = infoReceived;			httpRequest.send(null);		} catch(e) {			alert(e);		}	},
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/common.js/buggy/testing/extensions/community/chrome/content/common.js