Bug 460700 - Use the right delay with XHR progress events, r+sr+a=sicking
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 13 Jan 2009 20:08:30 +0200
changeset 22801 cfdfc92e1553e2ea0e5e0a9d56e864419e59d371
parent 22800 de29870f0fe3a7b51d0f3a5a10462096e238b74b
child 22802 1d485fd75e5d58b5bc92d46af180eb784d420caa
push id419
push useropettay@mozilla.com
push dateTue, 13 Jan 2009 18:08:46 +0000
bugs460700
milestone1.9.1b3pre
Bug 460700 - Use the right delay with XHR progress events, r+sr+a=sicking
content/base/src/nsXMLHttpRequest.cpp
--- a/content/base/src/nsXMLHttpRequest.cpp
+++ b/content/base/src/nsXMLHttpRequest.cpp
@@ -138,17 +138,17 @@
    XML_HTTP_REQUEST_SENT |                  \
    XML_HTTP_REQUEST_STOPPED)
 
 #define ACCESS_CONTROL_CACHE_SIZE 100
 
 #define NS_BADCERTHANDLER_CONTRACTID \
   "@mozilla.org/content/xmlhttprequest-bad-cert-handler;1"
 
-#define NS_PROGRESS_EVENT_INTERVAL 350
+#define NS_PROGRESS_EVENT_INTERVAL 50
 
 NS_IMPL_CYCLE_COLLECTION_CLASS(nsDOMEventListenerWrapper)
 
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsDOMEventListenerWrapper)
   NS_INTERFACE_MAP_ENTRY(nsIDOMEventListener)
 NS_INTERFACE_MAP_END_AGGREGATED(mListener)
 
 NS_IMPL_CYCLE_COLLECTING_ADDREF(nsDOMEventListenerWrapper)