diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-10-07 14:00:15 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-10-07 14:00:15 +0200 |
commit | 6767342dff9cef4a4bfb770e3b2a9f18c3b471e5 (patch) | |
tree | 8a04d93b6db613a2424bb80961d197de1475e69a /docshell | |
parent | 23fdf8f610f583c4252dde5fa289a78977c3f702 (diff) | |
download | palemoon-gre-6767342dff9cef4a4bfb770e3b2a9f18c3b471e5.tar.gz |
Fix about:credits redirection and make more safe pages content-linkable.
Diffstat (limited to 'docshell')
-rw-r--r-- | docshell/base/nsAboutRedirector.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp index 86fecd164..427e6a173 100644 --- a/docshell/base/nsAboutRedirector.cpp +++ b/docshell/base/nsAboutRedirector.cpp @@ -25,9 +25,7 @@ struct RedirEntry URI_SAFE_FOR_UNTRUSTED_CONTENT in the third argument to each map item below unless your about: page really needs chrome privileges. Security review is 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_SAFE_FOR_UNTRUSTED_CONTENT. */ static RedirEntry kRedirMap[] = { { @@ -36,8 +34,9 @@ static RedirEntry kRedirMap[] = { }, { "about", "chrome://global/content/aboutAbout.xhtml", 0 }, { - "credits", "http://www.mozilla.org/credits/", - nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT + "credits", "http://www.palemoon.org/Contributors.shtml", + nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | + nsIAboutModule::MAKE_LINKABLE }, { "mozilla", "chrome://global/content/mozilla.xhtml", @@ -56,7 +55,8 @@ static RedirEntry kRedirMap[] = { }, { "license", "chrome://global/content/license.html", - nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT + nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | + nsIAboutModule::MAKE_LINKABLE }, { "neterror", "chrome://global/content/netError.xhtml", @@ -80,7 +80,7 @@ static RedirEntry kRedirMap[] = { { "newaddon", "chrome://mozapps/content/extensions/newaddon.xul", nsIAboutModule::ALLOW_SCRIPT | - nsIAboutModule::HIDE_FROM_ABOUTABOUT + nsIAboutModule::HIDE_FROM_ABOUTABOUT }, { "support", "chrome://global/content/aboutSupport.xhtml", @@ -103,9 +103,9 @@ static RedirEntry kRedirMap[] = { { "srcdoc", "about:blank", nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | - nsIAboutModule::HIDE_FROM_ABOUTABOUT | - // Needs to be linkable so content can touch its own srcdoc frames - nsIAboutModule::MAKE_LINKABLE + nsIAboutModule::HIDE_FROM_ABOUTABOUT | + // Needs to be linkable so content can touch its own srcdoc frames + nsIAboutModule::MAKE_LINKABLE } }; static const int kRedirTotal = mozilla::ArrayLength(kRedirMap); |