From c49f776fdb41c58059532f2f722069ebe6da2f86 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Wed, 26 Oct 2011 10:48:48 +0100
Subject: [PATCH] Removing the XHR timeout, this is going to be replaced with
 something sexier.

close #485
---
 browserid/static/dialog/resources/network.js | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/browserid/static/dialog/resources/network.js b/browserid/static/dialog/resources/network.js
index b447aa2f0..6f012b6e6 100644
--- a/browserid/static/dialog/resources/network.js
+++ b/browserid/static/dialog/resources/network.js
@@ -37,8 +37,7 @@
 BrowserID.Network = (function() {
   "use strict";
 
-  var XHR_TIMEOUT = 10000,
-      csrf_token,
+  var csrf_token,
       xhr = $,
       server_time,
       auth_status,
@@ -71,8 +70,7 @@ BrowserID.Network = (function() {
       // to debug.
       success: deferResponse(options.success),
       error: deferResponse(xhrError(options.error, options.errorMessage)),
-      dataType: "json",
-      timeout: XHR_TIMEOUT
+      dataType: "json"
     });
   }
 
@@ -92,8 +90,7 @@ BrowserID.Network = (function() {
         // that are thrown in the response handlers and it becomes very difficult 
         // to debug.
         success: deferResponse(options.success),
-        error: deferResponse(xhrError(options.error, options.errorMessage)),
-        timeout: XHR_TIMEOUT
+        error: deferResponse(xhrError(options.error, options.errorMessage))
       });
     }, options.error);
   }
@@ -112,8 +109,7 @@ BrowserID.Network = (function() {
           auth_status = result.authenticated;
           cb();
         },
-        error: deferResponse(xhrError(onFailure)),
-        timeout: XHR_TIMEOUT
+        error: deferResponse(xhrError(onFailure))
       });
     }
   }
-- 
GitLab