Bug 1424474 part 1. Make sure we don't call into the chrome registry's AllowContentToAccess with non-chrome URLs. r=gijs

MozReview-Commit-ID: I3DyrYGpGC2
This commit is contained in:
Boris Zbarsky 2017-12-21 10:54:43 -05:00
parent b05397d47c
commit 7ebac0960f

View File

@ -897,7 +897,7 @@ nsScriptSecurityManager::CheckLoadURIFlags(nsIURI *aSourceURI,
if (accessAllowed) {
return NS_OK;
}
} else {
} else if (targetScheme.EqualsLiteral("chrome")) {
// Allow the load only if the chrome package is whitelisted.
nsCOMPtr<nsIXULChromeRegistry> reg(
do_GetService(NS_CHROMEREGISTRY_CONTRACTID));