Bug 292624 - XUL error pages should not have chrome privileges, r=darin sr=dveditz a=asa
git-svn-id: svn://10.0.0.236/trunk@176101 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1566,7 +1566,8 @@ nsScriptSecurityManager::CanExecuteScripts(JSContext* cx,
|
||||
{
|
||||
nsCAutoString spec;
|
||||
principalURI->GetSpec(spec);
|
||||
if (spec.EqualsLiteral("about:"))
|
||||
if (spec.EqualsLiteral("about:") ||
|
||||
StringBeginsWith(spec, NS_LITERAL_CSTRING("about:neterror?")))
|
||||
{
|
||||
*result = PR_TRUE;
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user