Mercurial > snowl
diff extension/modules/feed.js @ 106:2a08b4a82802
integrate OPML import into the sidebar
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Sun, 18 May 2008 22:57:40 -0700 |
parents | fe71ec6097f5 |
children | ec5e374be495 |
line wrap: on
line diff
--- a/extension/modules/feed.js Sun May 18 22:18:29 2008 -0700 +++ b/extension/modules/feed.js Sun May 18 22:57:40 2008 -0700 @@ -422,6 +422,11 @@ request.addEventListener("error", this, false); request = request.QueryInterface(Ci.nsIXMLHttpRequest); + + // The feed processor is going to parse the XML, so set the MIME type + // in order to turn off parsing by XMLHttpRequest itself. + request.overrideMimeType("text/plain"); + request.open("GET", this.uri.spec, true); request.send(null); }, @@ -439,6 +444,10 @@ } }, + onError: function(aEvent) { +dump("XMLHTTPRequest.onError for " + this.name + " <" + this.uri.spec + ">: " + aEvent.target.status + " " + aEvent.target.statusText + " " + aEvent.target.responseText.length + "\n"); + }, + onLoad: function(aEvent) { let request = aEvent.target;