зеркало из https://github.com/mozilla/pjs.git
Fix for BASE HREF not affecting applet bug 59430 patch by alexsavulov r=peterl sr=attinasi a=blizzard
This commit is contained in:
Родитель
ea784f1262
Коммит
7a86b26f77
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче