[Pkg-mozext-commits] [greasemonkey] 14/24: Add a timeout when checking for updates.
David Prévot
taffit at moszumanska.debian.org
Sat May 30 13:32:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 1002ffc50e5c5d62a606f92d72be793a07f0576e
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Sat May 23 12:03:24 2015 -0400
Add a timeout when checking for updates.
Fixes #2029
---
modules/script.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/script.js b/modules/script.js
index 55811c2..6508691 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -831,6 +831,7 @@ Script.prototype.checkForRemoteUpdate = function(aCallback, aForced) {
var req = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
.createInstance(Components.interfaces.nsIXMLHttpRequest);
req.overrideMimeType('application/javascript');
+ req.timeout = 45;
req.open("GET", url, true);
// Let the server know we want a user script metadata block
--
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