Bug #36218 --> fix ftp! We were unable to open the unknown content handler because we couldn't get

the dom window from the original docshell. I changed it to make this possible.


git-svn-id: svn://10.0.0.236/trunk@66301 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
2000-04-18 20:41:38 +00:00
parent 3c7779d2aa
commit cbd589f16e

View File

@@ -286,6 +286,7 @@ nsresult nsDocumentOpenInfo::DispatchContent(nsIChannel * aChannel, nsISupports
{
nsresult rv;
nsXPIDLCString contentType;
nsCOMPtr<nsISupports> originalWindowContext = m_originalContext; // local variable to keep track of this.
rv = aChannel->GetContentType(getter_Copies(contentType));
if (NS_FAILED(rv)) return rv;
@@ -405,7 +406,7 @@ nsresult nsDocumentOpenInfo::DispatchContent(nsIChannel * aChannel, nsISupports
if (NS_FAILED(rv))
{
nsCOMPtr<nsIDOMWindow> domWindow (do_GetInterface(contentListener));
nsCOMPtr<nsIDOMWindow> domWindow (do_GetInterface(originalWindowContext));
return InvokeUnknownContentHandler(aChannel, contentType, domWindow);
}