diff --git a/content/svg/content/src/nsSVGScriptElement.cpp b/content/svg/content/src/nsSVGScriptElement.cpp index c3d8aa9f803..edfbe2a5a36 100644 --- a/content/svg/content/src/nsSVGScriptElement.cpp +++ b/content/svg/content/src/nsSVGScriptElement.cpp @@ -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 baseURI = GetBaseURI(); + NS_NewURI(&uri, src, nsnull, baseURI); + } return uri; }