mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Fix relative URLs in 'pluginspage' attribute honor BASE tag bug 46405 a=av, sr=buster
This commit is contained in:
parent
38b6358a5a
commit
6f70103ae3
@ -1822,7 +1822,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetURL(const char *aURL, const char *aTarge
|
||||
rv = GetDocument(getter_AddRefs(doc));
|
||||
if (NS_SUCCEEDED(rv) && doc)
|
||||
{
|
||||
baseURL = doc->GetDocumentURL(); // gets the document's url
|
||||
rv = doc->GetBaseURL(baseURL); // gets the document's url
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1822,7 +1822,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetURL(const char *aURL, const char *aTarge
|
||||
rv = GetDocument(getter_AddRefs(doc));
|
||||
if (NS_SUCCEEDED(rv) && doc)
|
||||
{
|
||||
baseURL = doc->GetDocumentURL(); // gets the document's url
|
||||
rv = doc->GetBaseURL(baseURL); // gets the document's url
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user