summaryrefslogtreecommitdiff
path: root/data/extensions/https-everywhere@eff.org/chrome/content/preferences.js
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2015-07-13 22:53:00 -0500
committerRuben Rodriguez <ruben@gnu.org>2015-07-13 22:53:00 -0500
commit23103d7773e24fdf15b79ed69c67089b593fb31a (patch)
treeee1b744a80dd192e62fefc72ff1f0bf978d0d24c /data/extensions/https-everywhere@eff.org/chrome/content/preferences.js
parent9cb91f8a48f9467e448f88984c20b3429e8a2510 (diff)
HTTPS-Everywhere updated to 5.0.5
Diffstat (limited to 'data/extensions/https-everywhere@eff.org/chrome/content/preferences.js')
-rw-r--r--data/extensions/https-everywhere@eff.org/chrome/content/preferences.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/extensions/https-everywhere@eff.org/chrome/content/preferences.js b/data/extensions/https-everywhere@eff.org/chrome/content/preferences.js
index 557b335..4a61f0a 100644
--- a/data/extensions/https-everywhere@eff.org/chrome/content/preferences.js
+++ b/data/extensions/https-everywhere@eff.org/chrome/content/preferences.js
@@ -149,8 +149,17 @@ function compareRules(a, b, col) {
function https_prefs_init(doc) {
var st = document.getElementById('sites_tree');
+ // Note: It takes several seconds to load all the rulesets, during which time
+ // Firefox is unresponsive. There are too many rulesets to reasonably browse
+ // in this view anyhow. Should start with an empty window and only show
+ // rulesets that match a search term the user types in.
https_everywhere.https_rules.loadAllRulesets();
rulesets = Array.slice(https_everywhere.https_rules.rulesets);
+ // Sort the rulesets by name to avoid revealing which subset of rulesets has
+ // been visited, per https://trac.torproject.org/projects/tor/ticket/11655.
+ rulesets.sort(function(a, b) {
+ return a.name < b.name ? -1 : 1;
+ });
// GLOBAL VARIABLE!
treeView = {