зеркало из https://github.com/mozilla/pjs.git
fix for #168136. r=mstoltz, sr=dveditz.
for pref controlled schemes, allow access if source scheme is chrome or res. needed for the new "view filter log UI".
This commit is contained in:
Родитель
1319ee7fd8
Коммит
ea0876d123
|
@ -1255,6 +1255,11 @@ nsScriptSecurityManager::CheckLoadURI(nsIURI *aSourceURI, nsIURI *aTargetURI,
|
|||
mSecurityPref->SecurityGetBoolPref("security.checkloaduri", &doCheck);
|
||||
if (doCheck)
|
||||
{
|
||||
// resource: and chrome: are equivalent, securitywise
|
||||
if ((PL_strcmp(sourceScheme, "chrome") == 0) ||
|
||||
(PL_strcmp(sourceScheme, "resource") == 0))
|
||||
return NS_OK;
|
||||
|
||||
ReportError(nsnull, errorTag, aSourceURI, aTargetURI);
|
||||
return NS_ERROR_DOM_BAD_URI;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче