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:
Tom Ritter 2020-01-14 18:16:20 +00:00
parent d5010aee32
commit 5104f1b8cb

View File

@ -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,