bug 300830 - new error page (about:neterror) can load privileged about: urls, patch by dveditz, r=bsmedberg, sr=shaver

git-svn-id: svn://10.0.0.236/trunk@178594 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mconnor%steelgryphon.com
2005-08-22 05:09:11 +00:00
parent 5fffa99b09
commit bc56b295fd

View File

@@ -1180,7 +1180,8 @@ nsScriptSecurityManager::GetBaseURIScheme(nsIURI* aURI,
path.EqualsLiteral("logo") ||
path.EqualsLiteral("license") ||
path.EqualsLiteral("licence") ||
path.EqualsLiteral("credits"))
path.EqualsLiteral("credits") ||
Substring(path,0,9).EqualsLiteral("neterror?"))
{
aScheme = NS_LITERAL_CSTRING("about safe");
return NS_OK;