Fixing NPN_GetURL (and others) with NULL target does not resolve relative URLs with document's BASE tag, bug 166861 r=anthonyd sr=jst

git-svn-id: svn://10.0.0.236/trunk@129476 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com 2002-09-13 03:05:54 +00:00
parent 85cbbaf3a7
commit 6961591439

View File

@ -5592,7 +5592,7 @@ NS_IMETHODIMP nsPluginHostImpl::NewPluginURLStream(const nsString& aURL,
if (NS_SUCCEEDED(rv) && doc)
{
nsCOMPtr<nsIURI> docURL;
doc->GetDocumentURL(getter_AddRefs(docURL));
doc->GetBaseURL(*getter_AddRefs(docURL));
doc->GetDocumentLoadGroup(getter_AddRefs(loadGroup));
// Create an absolute URL