Bug 460700 - Use the right delay with XHR progress events, r+sr=jonas
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 13 Jan 2009 19:38:01 +0200
changeset 23607 aeca8558250a60a9fb35439c062ac882ddf78ce3
parent 23606 66071c6b43a963b07b0e5e44630f337a141b054e
child 23608 98e0b6b69e054a9be1da8755b8560b53672d6858
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs460700
milestone1.9.2a1pre
Bug 460700 - Use the right delay with XHR progress events, r+sr=jonas
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)