Commit 246f170a 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 698d2294
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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},
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ pages = [
    'preferences',
    'privatebrowsing',
    'protections',
    'profiling',
    'reader',
    'restartrequired',
    'rights',
+1 −0
Original line number Diff line number Diff line
@@ -401,6 +401,7 @@ var Policies = {
        blockAboutPage(manager, "about:devtools");
        blockAboutPage(manager, "about:debugging");
        blockAboutPage(manager, "about:devtools-toolbox");
        blockAboutPage(manager, "about:profiling");
      }
    },
  },
+1 −1
Original line number Diff line number Diff line
@@ -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>