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
Родитель b05397d47c
Коммит 7ebac0960f
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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));