From 4bbf94cdce2e3911dad4b446d76ee6b172b12cda Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Fri, 3 Apr 2015 09:58:00 +0100 Subject: [PATCH] Bug 1150862, make about:reader unlinkable from content on desktop, r=gavin --- browser/components/about/AboutRedirector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp index 2da8a66f1dc..65f1696b754 100644 --- a/browser/components/about/AboutRedirector.cpp +++ b/browser/components/about/AboutRedirector.cpp @@ -31,7 +31,7 @@ struct RedirEntry { required before adding new map entries without URI_SAFE_FOR_UNTRUSTED_CONTENT. Also note, however, that adding URI_SAFE_FOR_UNTRUSTED_CONTENT will allow random web sites to link to that - URI. Perhaps we should separate the two concepts out... + URI. If you want to prevent this, add MAKE_UNLINKABLE as well. */ static RedirEntry kRedirMap[] = { #ifdef MOZ_SAFE_BROWSING @@ -122,6 +122,7 @@ static RedirEntry kRedirMap[] = { nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::URI_MUST_LOAD_IN_CHILD | + nsIAboutModule::MAKE_UNLINKABLE | nsIAboutModule::HIDE_FROM_ABOUTABOUT }, }; static const int kRedirTotal = ArrayLength(kRedirMap);