@@ -57,23 +57,23 @@ cls.NetworkLoggerService = function()
5757 {
5858 // Play back the message queue.
5959 while ( this . _message_queue . length )
60- this . _replay_message_bound ( this . _message_queue . shift ( ) ) ;
60+ this . _playback_message_bound ( this . _message_queue . shift ( ) ) ;
6161
6262 }
6363 }
6464 return false ;
6565 } ;
6666
67- this . _replay_message_bound = function ( queued )
67+ this . _playback_message_bound = function ( queued )
6868 {
6969 var LISTENER = 0 ;
7070 var MSG = 1 ;
71- queued [ LISTENER ] . call ( this , queued [ LISTENER ] , queued [ MSG ] ) ;
71+ queued [ LISTENER ] . call ( this , queued [ LISTENER ] , queued [ MSG ] , true ) ;
7272 } . bind ( this ) ;
7373
74- this . _on_abouttoloaddocument = function ( listener , msg )
74+ this . _on_abouttoloaddocument = function ( listener , msg , is_playing_back )
7575 {
76- if ( this . _queue_message ( listener , msg ) )
76+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
7777 return ;
7878
7979 var data = new cls . DocumentManager [ "1.0" ] . AboutToLoadDocument ( msg ) ;
@@ -101,9 +101,9 @@ cls.NetworkLoggerService = function()
101101 } ;
102102 this . _on_abouttoloaddocument_bound = this . _on_abouttoloaddocument . bind ( this , this . _on_abouttoloaddocument_bound ) ;
103103
104- this . _on_urlload = function ( listener , msg )
104+ this . _on_urlload = function ( listener , msg , is_playing_back )
105105 {
106- if ( this . _queue_message ( listener , msg ) )
106+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
107107 return ;
108108
109109 var data = new cls . ResourceManager [ "1.2" ] . UrlLoad ( msg ) ;
@@ -119,9 +119,9 @@ cls.NetworkLoggerService = function()
119119 } ;
120120 this . _on_urlload_bound = this . _on_urlload . bind ( this , this . _on_urlload ) ;
121121
122- this . _on_urlredirect = function ( listener , msg )
122+ this . _on_urlredirect = function ( listener , msg , is_playing_back )
123123 {
124- if ( this . _queue_message ( listener , msg ) )
124+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
125125 return ;
126126
127127 var data = new cls . ResourceManager [ "1.0" ] . UrlRedirect ( msg ) ;
@@ -141,9 +141,9 @@ cls.NetworkLoggerService = function()
141141 } ;
142142 this . _on_urlredirect_bound = this . _on_urlredirect . bind ( this , this . _on_urlredirect ) ;
143143
144- this . _on_urlfinished = function ( listener , msg )
144+ this . _on_urlfinished = function ( listener , msg , is_playing_back )
145145 {
146- if ( this . _queue_message ( listener , msg ) )
146+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
147147 return ;
148148
149149 var data = new cls . ResourceManager [ "1.0" ] . UrlFinished ( msg ) ;
@@ -159,9 +159,9 @@ cls.NetworkLoggerService = function()
159159 } ;
160160 this . _on_urlfinished_bound = this . _on_urlfinished . bind ( this , this . _on_urlfinished ) ;
161161
162- this . _on_response_bound = function ( listener , msg )
162+ this . _on_response_bound = function ( listener , msg , is_playing_back )
163163 {
164- if ( this . _queue_message ( listener , msg ) )
164+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
165165 return ;
166166
167167 var data = new cls . ResourceManager [ "1.0" ] . Response ( msg ) ;
@@ -173,9 +173,9 @@ cls.NetworkLoggerService = function()
173173 }
174174 this . _on_response_bound = this . _on_response_bound . bind ( this , this . _on_response_bound ) ;
175175
176- this . _on_request = function ( listener , msg )
176+ this . _on_request = function ( listener , msg , is_playing_back )
177177 {
178- if ( this . _queue_message ( listener , msg ) )
178+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
179179 return ;
180180
181181 var data = new cls . ResourceManager [ "1.0" ] . Request ( msg ) ;
@@ -187,9 +187,9 @@ cls.NetworkLoggerService = function()
187187 } ;
188188 this . _on_request_bound = this . _on_request . bind ( this , this . _on_request ) ;
189189
190- this . _on_requestheader = function ( listener , msg )
190+ this . _on_requestheader = function ( listener , msg , is_playing_back )
191191 {
192- if ( this . _queue_message ( listener , msg ) )
192+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
193193 return ;
194194
195195 var data = new cls . ResourceManager [ "1.0" ] . RequestHeader ( msg ) ;
@@ -201,9 +201,9 @@ cls.NetworkLoggerService = function()
201201 } ;
202202 this . _on_requestheader_bound = this . _on_requestheader . bind ( this , this . _on_requestheader ) ;
203203
204- this . _on_requestfinished = function ( listener , msg )
204+ this . _on_requestfinished = function ( listener , msg , is_playing_back )
205205 {
206- if ( this . _queue_message ( listener , msg ) )
206+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
207207 return ;
208208
209209 var data = new cls . ResourceManager [ "1.0" ] . RequestFinished ( msg ) ;
@@ -215,9 +215,9 @@ cls.NetworkLoggerService = function()
215215 } ;
216216 this . _on_requestfinished_bound = this . _on_requestfinished . bind ( this , this . _on_requestfinished ) ;
217217
218- this . _on_requestretry = function ( listener , msg )
218+ this . _on_requestretry = function ( listener , msg , is_playing_back )
219219 {
220- if ( this . _queue_message ( listener , msg ) )
220+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
221221 return ;
222222
223223 var data = new cls . ResourceManager [ "1.0" ] . RequestRetry ( msg ) ;
@@ -229,9 +229,9 @@ cls.NetworkLoggerService = function()
229229 } ;
230230 this . _on_requestretry_bound = this . _on_requestretry . bind ( this , this . _on_requestretry ) ;
231231
232- this . _on_responseheader = function ( listener , msg )
232+ this . _on_responseheader = function ( listener , msg , is_playing_back )
233233 {
234- if ( this . _queue_message ( listener , msg ) )
234+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
235235 return ;
236236
237237 var data = new cls . ResourceManager [ "1.0" ] . ResponseHeader ( msg ) ;
@@ -243,9 +243,9 @@ cls.NetworkLoggerService = function()
243243 } ;
244244 this . _on_responseheader_bound = this . _on_responseheader . bind ( this , this . _on_responseheader ) ;
245245
246- this . _on_responsefinished = function ( listener , msg )
246+ this . _on_responsefinished = function ( listener , msg , is_playing_back )
247247 {
248- if ( this . _queue_message ( listener , msg ) )
248+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
249249 return ;
250250
251251 var data = new cls . ResourceManager [ "1.0" ] . ResponseFinished ( msg ) ;
@@ -259,9 +259,9 @@ cls.NetworkLoggerService = function()
259259 } ;
260260 this . _on_responsefinished_bound = this . _on_responsefinished . bind ( this , this . _on_responsefinished ) ;
261261
262- this . _on_urlunload = function ( listener , msg )
262+ this . _on_urlunload = function ( listener , msg , is_playing_back )
263263 {
264- if ( this . _queue_message ( listener , msg ) )
264+ if ( ! is_playing_back && this . _queue_message ( listener , msg ) )
265265 return ;
266266
267267 var data = new cls . ResourceManager [ "1.2" ] . UrlUnload ( msg ) ;
0 commit comments