From 2a2ab24b3da45e743bc2da3c2200787ee753111e Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Mon, 30 Aug 2004 15:55:36 +0000 Subject: [PATCH] Bug 257195 - relative URIs in not working. r=sicking, sr=jst --- content/svg/content/src/nsSVGScriptElement.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/svg/content/src/nsSVGScriptElement.cpp b/content/svg/content/src/nsSVGScriptElement.cpp index c3d8aa9f803c..edfbe2a5a361 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; }