Bug 1305478 - Unify the initial update delay (for both v2 and v4) to 0~1 minute.
MozReview-Commit-ID: 7RbUUfCNQfk
--- a/toolkit/components/url-classifier/content/listmanager.js
+++ b/toolkit/components/url-classifier/content/listmanager.js
@@ -191,18 +191,18 @@ PROT_ListManager.prototype.requireTableU
/**
* Acts as a nsIUrlClassifierCallback for getTables.
*/
PROT_ListManager.prototype.kickoffUpdate_ = function (onDiskTableData)
{
this.startingUpdate_ = false;
var initialUpdateDelay = 3000;
- // Add a fuzz of 0-5 minutes.
- initialUpdateDelay += Math.floor(Math.random() * (5 * 60 * 1000));
+ // Add a fuzz of 0-1 minutes for both v2 and v4 according to Bug 1305478.
+ initialUpdateDelay += Math.floor(Math.random() * (1 * 60 * 1000));
// If the user has never downloaded tables, do the check now.
log("needsUpdate: " + JSON.stringify(this.needsUpdate_, undefined, 2));
for (var updateUrl in this.needsUpdate_) {
// If we haven't already kicked off updates for this updateUrl, set a
// non-repeating timer for it. The timer delay will be reset either on
// updateSuccess to this.updateinterval, or backed off on downloadError.
// Don't set the updateChecker unless at least one table has updates