Bug 1392981 - Delete about:sessionrestore & about:welcomeback from about:about. r?Gijs draft
authorSteve Armand <stevea1@mac.com>
Sun, 03 Sep 2017 00:28:28 -0400
changeset 658078 43dd65e03a69ca24742dd0aaca028b71aa76a011
parent 658069 f5d99e9f3d7bf19c8a222db97bedc924da27fd58
child 729584 2fc654eaa95b29af15c6928738bc2c43784555ea
push id77693
push userbmo:stevea1@mac.com
push dateSun, 03 Sep 2017 04:34:39 +0000
reviewersGijs
bugs1392981
milestone57.0a1
Bug 1392981 - Delete about:sessionrestore & about:welcomeback from about:about. r?Gijs MozReview-Commit-ID: GOjrpMsOaRi
browser/components/about/AboutRedirector.cpp
--- a/browser/components/about/AboutRedirector.cpp
+++ b/browser/components/about/AboutRedirector.cpp
@@ -67,19 +67,21 @@ static const RedirEntry kRedirMap[] = {
     nsIAboutModule::ALLOW_SCRIPT },
   { "robots", "chrome://browser/content/aboutRobots.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
     nsIAboutModule::ALLOW_SCRIPT },
   { "searchreset", "chrome://browser/content/search/searchReset.xhtml",
     nsIAboutModule::ALLOW_SCRIPT |
     nsIAboutModule::HIDE_FROM_ABOUTABOUT },
   { "sessionrestore", "chrome://browser/content/aboutSessionRestore.xhtml",
-    nsIAboutModule::ALLOW_SCRIPT },
+    nsIAboutModule::ALLOW_SCRIPT |
+    nsIAboutModule::HIDE_FROM_ABOUTABOUT },
   { "welcomeback", "chrome://browser/content/aboutWelcomeBack.xhtml",
-    nsIAboutModule::ALLOW_SCRIPT },
+    nsIAboutModule::ALLOW_SCRIPT |
+    nsIAboutModule::HIDE_FROM_ABOUTABOUT },
   // Linkable because of indexeddb use (bug 1228118)
   { "home", "chrome://browser/content/abouthome/aboutHome.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
     nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
     nsIAboutModule::ALLOW_SCRIPT |
     nsIAboutModule::MAKE_LINKABLE |
     nsIAboutModule::ENABLE_INDEXED_DB },
   // the newtab's actual URL will be determined when the channel is created