зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1497190: Apply Meta CSP to about:cache-entry.
Differential Revision: https://phabricator.services.mozilla.com/D37212 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c13838cf6e
Коммит
69901eb74f
|
@ -2509,7 +2509,7 @@ pref("security.dialog_enable_delay", 1000);
|
|||
pref("security.notification_enable_delay", 500);
|
||||
|
||||
#if defined(DEBUG) && !defined(ANDROID)
|
||||
pref("csp.about_uris_without_csp", "blank,printpreview,srcdoc,addons,cache-entry,config,debugging,devtools,downloads,home,newtab,plugins,preferences,sessionrestore,support,sync-log,welcomeback");
|
||||
pref("csp.about_uris_without_csp", "blank,printpreview,srcdoc,addons,config,debugging,devtools,downloads,home,newtab,plugins,preferences,sessionrestore,support,sync-log,welcomeback");
|
||||
// the following prefs are for testing purposes only.
|
||||
pref("csp.overrule_about_uris_without_csp_whitelist", false);
|
||||
pref("csp.skip_about_page_has_csp_assert", false);
|
||||
|
|
|
@ -143,6 +143,8 @@ nsresult nsAboutCacheEntry::Channel::GetContentStream(nsIURI* uri,
|
|||
"<!DOCTYPE html>\n"
|
||||
"<html>\n"
|
||||
"<head>\n"
|
||||
" <meta http-equiv=\"Content-Security-Policy\" content=\"default-src "
|
||||
"chrome:\" />\n"
|
||||
" <title>Cache entry information</title>\n"
|
||||
" <link rel=\"stylesheet\" "
|
||||
"href=\"chrome://global/skin/about.css\" type=\"text/css\"/>\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче