Bug 410486. Fix test failures due to the exception message getting truncated.

This commit is contained in:
Boris Zbarsky 2009-05-20 00:57:37 -04:00
Родитель 6882e705e1
Коммит a45c2d01f1
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1215,7 +1215,10 @@ nsScriptSecurityManager::CheckLoadURIFromScript(JSContext *cx, nsIURI *aURI)
nsCAutoString spec;
if (NS_FAILED(aURI->GetAsciiSpec(spec)))
return NS_ERROR_FAILURE;
SetPendingException(cx, nsPrintfCString("Access to '%s' from script denied", spec.get()).get());
nsCAutoString msg("Access to '");
msg.Append(spec);
msg.AppendLiteral("' from script denied");
SetPendingException(cx, msg.get());
return NS_ERROR_DOM_BAD_URI;
}