Fix relative URLs in 'pluginspage' attribute honor BASE tag bug 46405 a=av, sr=buster
git-svn-id: svn://10.0.0.236/trunk@86134 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user