Skip to content

Commit b803c58

Browse files
committed
wip
1 parent 4f29677 commit b803c58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/chrome/content/code/HTTPSRules.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ RuleSet.prototype = {
6868
ensureCompiled: function() {
6969
// Postpone compilation of exclusions, rules and cookies until now, to accelerate
7070
// browser load time.
71+
// NOTE: Since rulesets are now lazy-loaded in FF, this will be called immediately
72+
// after the ruleset is loaded, and doesn't give much startup benefit. We
73+
// may want to switch these back so patterns are compiled immediately on
74+
// ruleset load, for simplicity.
7175
if (this.compiled) return;
7276
var i;
7377

@@ -615,7 +619,7 @@ const HTTPSRules = {
615619
},
616620

617621
// Get all rulesets matching a given target, lazy-loading from DB as necessary.
618-
// Returns true if handled immediately: i.e., didn't have to go async.
622+
// Returns true if callback was called immediately: i.e., didn't have to go async.
619623
rulesetsByTargets: function(targets, callback) {
620624
var foundIds = [];
621625
var neededIds = [];

0 commit comments

Comments
 (0)