[Pkg-mozext-commits] [greasemonkey] 02/10: Add ability to optionally allow data: URLs to be Greaseable via config property.
David Prévot
taffit at moszumanska.debian.org
Thu May 29 17:26:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit b5049c8e284299bae8590b8eb27cee13df4ee34d
Author: Jonathon Merz <jonathon.merz at jonathonm-691.glassdoor.local>
Date: Mon May 12 16:34:48 2014 -0700
Add ability to optionally allow data: URLs to be Greaseable via config property.
---
defaults/preferences/greasemonkey.js | 1 +
modules/util/isGreasemonkeyable.js | 2 ++
2 files changed, 3 insertions(+)
diff --git a/defaults/preferences/greasemonkey.js b/defaults/preferences/greasemonkey.js
index 95a1d85..24f8c04 100644
--- a/defaults/preferences/greasemonkey.js
+++ b/defaults/preferences/greasemonkey.js
@@ -1,5 +1,6 @@
pref("extensions.{e4a8a97b-f2ed-450b-b12d-ee082ba24781}.description", "chrome://greasemonkey/locale/greasemonkey.properties");
pref("extensions.greasemonkey.coralCacheWorks", true);
+pref("extensions.greasemonkey.dataIsGreaseable", false);
pref("extensions.greasemonkey.enableScriptRefreshing", true);
pref("extensions.greasemonkey.fileIsGreaseable", false);
pref("extensions.greasemonkey.globalExcludes", '[]');
diff --git a/modules/util/isGreasemonkeyable.js b/modules/util/isGreasemonkeyable.js
index 8933b11..8d6930e 100644
--- a/modules/util/isGreasemonkeyable.js
+++ b/modules/util/isGreasemonkeyable.js
@@ -18,6 +18,8 @@ function isGreasemonkeyable(url) {
if (/^about:blank/.test(url)) return true;
// Never allow the rest of "about:". See #1375.
return false;
+ case "data":
+ return GM_prefRoot.getValue('dataIsGreaseable');
case "file":
return GM_prefRoot.getValue('fileIsGreaseable');
case "unmht":
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list