зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1497214: Apply Meta CSP to about:url-classifier.
Differential Revision: https://phabricator.services.mozilla.com/D36738 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a8ab2e6f83
Коммит
94415dea53
|
@ -2512,7 +2512,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,serviceworkers,sessionrestore,support,sync-log,telemetry,url-classifier,welcomeback");
|
||||
pref("csp.about_uris_without_csp", "blank,printpreview,srcdoc,addons,cache-entry,config,debugging,devtools,downloads,home,newtab,plugins,preferences,serviceworkers,sessionrestore,support,sync-log,telemetry,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);
|
||||
|
|
|
@ -8,24 +8,19 @@ const UPDATE_BEGIN = "safebrowsing-update-begin";
|
|||
const UPDATE_FINISH = "safebrowsing-update-finished";
|
||||
const JSLOG_PREF = "browser.safebrowsing.debug";
|
||||
|
||||
function unLoad() {
|
||||
window.removeEventListener("unload", unLoad);
|
||||
|
||||
window.onunload = function() {
|
||||
Search.uninit();
|
||||
Provider.uninit();
|
||||
Cache.uninit();
|
||||
Debug.uninit();
|
||||
}
|
||||
|
||||
function onLoad() {
|
||||
window.removeEventListener("load", onLoad);
|
||||
window.addEventListener("unload", unLoad);
|
||||
};
|
||||
|
||||
window.onload = function() {
|
||||
Search.init();
|
||||
Provider.init();
|
||||
Cache.init();
|
||||
Debug.init();
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Search
|
||||
|
|
|
@ -10,13 +10,14 @@
|
|||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src chrome:" />
|
||||
<title data-l10n-id="url-classifier-title"></title>
|
||||
<link rel="stylesheet" href="chrome://global/content/aboutUrlClassifier.css" type="text/css"/>
|
||||
<link rel="localization" href="toolkit/about/url-classifier.ftl"/>
|
||||
<script src="chrome://global/content/aboutUrlClassifier.js"></script>
|
||||
</head>
|
||||
|
||||
<body onload="onLoad()" class="wide-container">
|
||||
<body class="wide-container">
|
||||
<h1 data-l10n-id="url-classifier-title"></h1>
|
||||
<div id="search">
|
||||
<h2 class="major-section" data-l10n-id="url-classifier-search-title"></h2>
|
||||
|
|
Загрузка…
Ссылка в новой задаче