Author Topic: WebDAV in Firefox 3 beta 5  (Read 42271 times)

Offline ilya.kosolapov

  • Normal Members
  • *
  • Posts: 1
Re: WebDAV in Firefox 3 beta 5
« Reply #15 on: September 07, 2010, 06:23:31 PM »
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:
Code: [Select]
      this.streamLoader.init(this._channel, this , null);
with the following snippet of code:
Code: [Select]
      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.

PasswordMaker Forums

Re: WebDAV in Firefox 3 beta 5
« Reply #15 on: September 07, 2010, 06:23:31 PM »