mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 257195 - relative URIs in <svg:script> not working. r=sicking, sr=jst
This commit is contained in:
parent
568a7aa4b3
commit
2a2ab24b3d
@ -302,8 +302,10 @@ nsSVGScriptElement::GetScriptURI()
|
||||
nsIURI *uri = nsnull;
|
||||
nsAutoString src;
|
||||
mHref->GetAnimVal(src);
|
||||
if (!src.IsEmpty())
|
||||
NS_NewURI(&uri, src);
|
||||
if (!src.IsEmpty()) {
|
||||
nsCOMPtr<nsIURI> baseURI = GetBaseURI();
|
||||
NS_NewURI(&uri, src, nsnull, baseURI);
|
||||
}
|
||||
return uri;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user