Commit 24b52aed authored by Greg Tatum's avatar Greg Tatum
Browse files

Bug 1597373 - Create a minimal about:profiling page; r=jdescottes,mconley

This commit is fairly trivial, but creates the about:profiler page to
start the new about:profiler work.

Differential Revision: https://phabricator.services.mozilla.com/D53729

--HG--
extra : moz-landing-system : lando
parent 8919631c
......@@ -69,6 +69,12 @@ static const RedirEntry kRedirMap[] = {
{"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.xhtml",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT},
#if !defined(ANDROID) && defined(NIGHTLY_BUILD)
// about:profiling is Nightly-only while it is in active development. Once
// the feature matures, it will be released across all desktop channels.
{"profiling", "chrome://devtools/content/performance-new/popup/popup.xhtml",
nsIAboutModule::ALLOW_SCRIPT},
#endif
{"rights", "chrome://global/content/aboutRights.xhtml",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::ALLOW_SCRIPT},
......
......@@ -21,6 +21,7 @@ pages = [
'preferences',
'privatebrowsing',
'protections',
'profiling',
'reader',
'restartrequired',
'rights',
......
......@@ -401,6 +401,7 @@ var Policies = {
blockAboutPage(manager, "about:devtools");
blockAboutPage(manager, "about:debugging");
blockAboutPage(manager, "about:devtools-toolbox");
blockAboutPage(manager, "about:profiling");
}
},
},
......
......@@ -16,7 +16,7 @@
</head>
<body class="theme-body">
<div id="root"></div>
<script src="initializer.js"></script>
<script src="chrome://devtools/content/performance-new/popup/initializer.js"></script>
<script src="chrome://devtools/content/shared/theme-switching.js"
defer="true">
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment