I came across this forum while trying to make WebDAV upload/download work in passwordmaker. I was experiencing the same issue: Error 0x-1 while trying to download, at line 184 in updownload.js. After researching the issue (see
http://markmail.org/message/eczx6p2ub4fwiyai#query:nsIStreamLoader+page:1+mid:bbtaiykq5sphgzzc+state:results), the following fixes the problem:
replace line 184:
this.streamLoader.init(this._channel, this , null);
with the following snippet of code:
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
var useOldLogic = appInfo.platformVersion.indexOf("1.8") == 0;
if (useOldLogic) {
this.streamLoader.init(this._channel, this, null);
} else {
this.streamLoader.init(this);
this._channel.asyncOpen(this.streamLoader,this._channel);
}
This fix has been tested in Firefox 3.6.8 on both Ubuntu 10.04.1 64-bit and Windows XP.
-ilya.