bug 822771 - add timeout to getHSTSPreloadList.js' XHRs r=bsmith DONTBUILD (NPOB)

This commit is contained in:
David Keeler 2013-01-29 11:56:57 -08:00
parent 586bc5642a
commit c08acf8f69

View File

@ -148,6 +148,7 @@ function getHSTSStatus(host, resultList) {
var inResultList = false;
var uri = "https://" + host.name + "/";
req.open("GET", uri, true);
req.timeout = 60000;
req.channel.notificationCallbacks = new RedirectStopper();
req.onreadystatechange = function(event) {
if (!inResultList && req.readyState == 4) {