Fix relative URLs in 'pluginspage' attribute honor BASE tag bug 46405 a=av, sr=buster

This commit is contained in:
peterlubczynski%netscape.com 2001-02-03 00:43:09 +00:00
parent 38b6358a5a
commit 6f70103ae3
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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
{