зеркало из https://github.com/mozilla/gecko-dev.git
Fix relative URLs in 'pluginspage' attribute honor BASE tag bug 46405 a=av, sr=buster
This commit is contained in:
Родитель
38b6358a5a
Коммит
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
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче