Fix for BASE HREF not affecting applet bug 59430 patch by alexsavulov r=peterl sr=attinasi a=blizzard

This commit is contained in:
peterlubczynski%netscape.com 2001-06-05 17:58:31 +00:00
parent fb69c14ae4
commit bf605eb2f2
2 changed files with 4 additions and 2 deletions

View File

@ -2267,7 +2267,8 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetDocumentBase(const char* *result)
nsCOMPtr<nsIDocument> doc;
shell->GetDocument(getter_AddRefs(doc));
nsCOMPtr<nsIURI> docURL( dont_AddRef(doc->GetDocumentURL()) );
nsCOMPtr<nsIURI> docURL;
doc->GetBaseURL(*getter_AddRefs(docURL)); // should return base + doc url
rv = docURL->GetSpec(&mDocumentBase);
}

View File

@ -2267,7 +2267,8 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetDocumentBase(const char* *result)
nsCOMPtr<nsIDocument> doc;
shell->GetDocument(getter_AddRefs(doc));
nsCOMPtr<nsIURI> docURL( dont_AddRef(doc->GetDocumentURL()) );
nsCOMPtr<nsIURI> docURL;
doc->GetBaseURL(*getter_AddRefs(docURL)); // should return base + doc url
rv = docURL->GetSpec(&mDocumentBase);
}