зеркало из https://github.com/mozilla/gecko-dev.git
Bug 410486. Fix test failures due to the exception message getting truncated.
This commit is contained in:
Родитель
6882e705e1
Коммит
a45c2d01f1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче