Permalink
Browse files

Not .isRemoteUpdateAllowed() when modified time > install time.

Fixes #1463
  • Loading branch information...
1 parent 8ea1d90 commit fb16949b351712ac9acf4e81399babff3abbdd80 @arantius committed Feb 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/script.js
View
1 modules/script.js
@@ -446,6 +446,7 @@ Script.prototype.isModified = function() {
Script.prototype.isRemoteUpdateAllowed = function(aForced) {
if (!this.checkRemoteUpdates && !aForced) return false;
if (!this._updateURL) return false;
+ if (this._modifiedTime > this._installTime) return false;
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);

0 comments on commit fb16949

Please sign in to comment.