Changeset 855

Show
Ignore:
Timestamp:
2008-03-06 21:11:31 (10 months ago)
Author:
MaierMan
Message:

#523: Download for http password protected site over https fails.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r853 r855  
    18631863                Ci.nsIProgressEventSink, 
    18641864                Ci.nsIChannelEventSink, 
    1865                 Ci.nsIAuthPrompt, 
    18661865                Ci.nsIFTPEventSink 
    18671866        ], 
     
    19021901        // nsIInterfaceRequestor 
    19031902        getInterface: function DL_getInterface(iid) { 
     1903                if (this._interfaces.some(function(i) { return iid.equals(i); })) { 
     1904                        return this; 
     1905                } 
     1906                if (iid.equals(Ci.nsIAuthPrompt)) { 
     1907                        return this.authPrompter; 
     1908                }        
     1909                if (iid.equals(Ci.nsIPrompt)) { 
     1910                        return this.prompter; 
     1911                } 
    19041912                try { 
    19051913                        return this.QueryInterface(iid); 
     
    19121920        get authPrompter() { 
    19131921                try { 
    1914                         return WindowWatcherService.getNewAuthPrompter(null
     1922                        return WindowWatcherService.getNewAuthPrompter(window
    19151923                                .QueryInterface(Ci.nsIAuthPrompt); 
    19161924                } 
     
    19201928                } 
    19211929        }, 
    1922         // nsIAuthPrompt 
    1923         prompt: function DL_prompt(aDialogTitle, aText, aPasswordRealm, aSavePassword, aDefaultText, aResult) { 
    1924                 return this.authPrompter.prompt( 
    1925                         aDialogTitle, 
    1926                         aText, 
    1927                         aPasswordRealm, 
    1928                         aSavePassword, 
    1929                         aDefaultText, 
    1930                         aResult 
    1931                 ); 
    1932         }, 
    1933  
    1934         promptUsernameAndPassword: function DL_promptUaP(aDialogTitle, aText, aPasswordRealm, aSavePassword, aUser, aPwd) { 
    1935                 return this.authPrompter.promptUsernameAndPassword( 
    1936                         aDialogTitle, 
    1937                         aText, 
    1938                         aPasswordRealm, 
    1939                         aSavePassword, 
    1940                         aUser, 
    1941                         aPwd 
    1942                 ); 
    1943         }, 
    1944         promptPassword: function DL_promptPassword(aDialogTitle, aText, aPasswordRealm, aSavePassword, aPwd) { 
    1945                 return this.authPrompter.promptPassword( 
    1946                         aDialogTitle, 
    1947                         aText, 
    1948                         aPasswordRealm, 
    1949                         aSavePassword, 
    1950                         aPwd 
    1951                 ); 
    1952         }, 
    1953          
     1930        get prompter() { 
     1931                try { 
     1932                        return WindowWatcherService.getNewPrompter(window) 
     1933                                .QueryInterface(Ci.nsIPrompt); 
     1934                } 
     1935                catch (ex) { 
     1936                        Debug.log("prompter", ex); 
     1937                        throw ex; 
     1938                } 
     1939        },       
    19541940        // nsIChannelEventSink 
    19551941        onChannelRedirect: function DL_onChannelRedirect(oldChannel, newChannel, flags) {