Bug 1308351 - make about:rights web-linkable like about:license and friends, r=mikedeboer a=ritu
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Fri, 07 Oct 2016 11:19:49 +0100
changeset 428786 0c41036b9e63facf1beb52b8ced744d525ca77d1
parent 428785 52e6d3f9993db0aa688bdb91ea37e03a07d3d068
child 428787 f48198e165031b2741df8b64367b65a63c17a263
push id33416
push userpaul@paul.cx
push dateMon, 24 Oct 2016 16:26:20 +0000
reviewersmikedeboer, ritu
bugs1308351
milestone50.0
Bug 1308351 - make about:rights web-linkable like about:license and friends, r=mikedeboer a=ritu This is a one-line fix. about:rights doesn't take query parameters, isn't interactive, and so making it linkable should be fine for uplift. MozReview-Commit-ID: CQwh6SPLARf
browser/components/about/AboutRedirector.cpp
--- a/browser/components/about/AboutRedirector.cpp
+++ b/browser/components/about/AboutRedirector.cpp
@@ -64,16 +64,17 @@ static RedirEntry kRedirMap[] = {
     nsIAboutModule::ALLOW_SCRIPT |
     nsIAboutModule::HIDE_FROM_ABOUTABOUT },
   { "privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.xhtml",
     nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
     nsIAboutModule::ALLOW_SCRIPT },
   { "rights",
     "chrome://global/content/aboutRights.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
+    nsIAboutModule::MAKE_LINKABLE |
     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",