mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1496386: Apply Meta CSP to System Privileged about:memory.
Differential Revision: https://phabricator.services.mozilla.com/D33594 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f75ea41c95
commit
0fb869ec4c
@ -2638,7 +2638,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,crashes,debugging,devtools,downloads,home,memory,networking,newtab,performance,plugins,policies,profiles,restartrequired,serviceworkers,sessionrestore,support,sync-log,telemetry,url-classifier,webrtc,welcomeback");
|
||||
pref("csp.about_uris_without_csp", "blank,printpreview,srcdoc,addons,cache-entry,config,crashes,debugging,devtools,downloads,home,networking,newtab,performance,plugins,policies,profiles,restartrequired,serviceworkers,sessionrestore,support,sync-log,telemetry,url-classifier,webrtc,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);
|
||||
|
@ -129,8 +129,8 @@ function stringMatchesFilter(aString, aFilter) {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function onUnload() {
|
||||
}
|
||||
window.onunload = function() {
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@ -272,7 +272,7 @@ function appendHiddenFileInput(aP, aId, aChangeListener) {
|
||||
return input;
|
||||
}
|
||||
|
||||
function onLoad() {
|
||||
window.onload = function() {
|
||||
// Generate the header.
|
||||
|
||||
let header = appendElement(document.body, "div", "ancillary");
|
||||
@ -430,7 +430,7 @@ function onLoad() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
@ -6,11 +6,12 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src chrome:" />
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<title>Memory Analyzer</title>
|
||||
<link rel="stylesheet" href="chrome://global/skin/aboutMemory.css" type="text/css"/>
|
||||
<script src="chrome://global/content/aboutMemory.js"/>
|
||||
</head>
|
||||
|
||||
<body onload="onLoad()" onunload="onUnload()"></body>
|
||||
<body></body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user