зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1608930 - Allow script loads with the filename about:sync-log r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D59781 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d5010aee32
Коммит
5104f1b8cb
|
@ -760,6 +760,11 @@ bool nsContentSecurityUtils::ValidateScriptFilename(const char* aFilename,
|
|||
// We will temporarily allow all jar URIs through for now
|
||||
return true;
|
||||
}
|
||||
if (filenameU.Equals(NS_LITERAL_STRING("about:sync-log"))) {
|
||||
// about:sync-log runs in the parent process and displays a directory
|
||||
// listing. The listing has inline javascript that executes on load.
|
||||
return true;
|
||||
}
|
||||
|
||||
// Log to MOZ_LOG
|
||||
MOZ_LOG(sCSMLog, LogLevel::Info,
|
||||
|
|
Загрузка…
Ссылка в новой задаче