mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Fix for BASE HREF not affecting applet bug 59430 patch by alexsavulov r=peterl sr=attinasi a=blizzard
This commit is contained in:
parent
fb69c14ae4
commit
bf605eb2f2
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user