summaryrefslogtreecommitdiff
path: root/mobile/android
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2015-04-16 12:18:52 +0200
committerPale Moon <git-repo@palemoon.org>2015-04-16 12:18:52 +0200
commitc81d670649334cb19af9769cd45b4529563434bb (patch)
tree4dfc891fcc69f83953bbb8630095d21e62c92e8d /mobile/android
parent307f82560ab3f1db8bd6f6484e7c6509ee53fdc4 (diff)
downloadpalemoon-gre-c81d670649334cb19af9769cd45b4529563434bb.tar.gz
Android: make about:reader unlinkable from content.
Note: this also adds a flag for any other about: pages that may be created (e.g. by extensions) that can be made un-linkable the same way by setting MAKE_UNLINKABLE if linking should be prevented while still safe for untrusted content.
Diffstat (limited to 'mobile/android')
-rw-r--r--mobile/android/components/AboutRedirector.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/mobile/android/components/AboutRedirector.js b/mobile/android/components/AboutRedirector.js
index d6a00578b..0107bc38e 100644
--- a/mobile/android/components/AboutRedirector.js
+++ b/mobile/android/components/AboutRedirector.js
@@ -62,6 +62,7 @@ let modules = {
reader: {
uri: "chrome://browser/content/aboutReader.html",
privileged: false,
+ dontLink: true,
hide: true
},
feedback: {
@@ -96,7 +97,9 @@ AboutRedirector.prototype = {
let moduleInfo = this._getModuleInfo(aURI);
if (moduleInfo.hide)
flags = Ci.nsIAboutModule.HIDE_FROM_ABOUTABOUT;
-
+ if (moduleInfo.dontLink)
+ flags = flags | Ci.nsIAboutModule.MAKE_UNLINKABLE;
+
return flags | Ci.nsIAboutModule.ALLOW_SCRIPT;
},