Bug 1379016 - Hide about:devtools-toolbox from about:about. r=pbro
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 24 Aug 2017 12:02:34 +0200
changeset 377205 d457d3406d9df1b8111dbcc84d7f3f126a75d6a2
parent 377204 4f7ee27332058abecc494e8f5405d52ccdc90a6d
child 377206 1d4c737cf76d770b88ca3a0cc90e1a8a6ec12c07
push id32402
push userarchaeopteryx@coole-files.de
push dateMon, 28 Aug 2017 14:47:04 +0000
treeherdermozilla-central@d5b6d113cf17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1379016
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1379016 - Hide about:devtools-toolbox from about:about. r=pbro MozReview-Commit-ID: 8SKXyLgyBam
devtools/client/framework/about-devtools-toolbox.js
--- a/devtools/client/framework/about-devtools-toolbox.js
+++ b/devtools/client/framework/about-devtools-toolbox.js
@@ -26,17 +26,19 @@ AboutURL.prototype = {
   newChannel: function (aURI, aLoadInfo) {
     let chan = Services.io.newChannelFromURIWithLoadInfo(this.uri, aLoadInfo);
     chan.owner = Services.scriptSecurityManager.getSystemPrincipal();
     chan.originalURI = aURI;
     return chan;
   },
 
   getURIFlags: function (aURI) {
-    return nsIAboutModule.ALLOW_SCRIPT || nsIAboutModule.ENABLE_INDEXED_DB;
+    return nsIAboutModule.ALLOW_SCRIPT |
+           nsIAboutModule.ENABLE_INDEXED_DB |
+           nsIAboutModule.HIDE_FROM_ABOUTABOUT;
   }
 };
 
 AboutURL.createInstance = function (outer, iid) {
   if (outer) {
     throw Cr.NS_ERROR_NO_AGGREGATION;
   }
   return new AboutURL();