@@ -571,18 +571,6 @@ cls.RequestContextPrototype = function()
571571 return Math . min . apply ( null , entries . map ( function ( e ) { return e . starttime } ) ) ;
572572 } ;
573573
574- this . _event_changes_req_id = function ( event , current_entry )
575- {
576- /*
577- Checks if the event's requestID is different from the one in current_entry.
578- That should never be the case, since the "urlload" event initiates
579- a new entry and that doesn't have a requestID. Note that current_entry is
580- the last entry we saw with the event's resourceID.
581- */
582- return event . requestID &&
583- ( current_entry . request_id !== event . requestID ) ;
584- } ;
585-
586574 this . update = function ( eventname , event )
587575 {
588576 var res_id = event . resourceID ;
@@ -594,26 +582,7 @@ cls.RequestContextPrototype = function()
594582 }
595583
596584 var logger_entry = logger_entries . last ;
597- if ( logger_entry && logger_entry . request_id )
598- {
599- /*
600- The same resource id can be loaded several times, but then the request id changes.
601- It's not loaded multiple times in parallel though, so the following check would
602- emit errors if that would happen. There is at least one NetworkLoggerEntry per
603- resource ID, but several entries can refer to the same.
604- Note: Retry events change the request id, but the Entry stays the same.
605- */
606- var changed_request_id = this . _event_changes_req_id ( event , logger_entry ) ;
607- if ( changed_request_id )
608- {
609- opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
610- " Unexpected change in requestID on " + eventname +
611- ": Change from " + logger_entry . request_id + " to " +
612- event . requestID + ", URL: " + logger_entry . human_url ) ;
613- }
614- }
615-
616- if ( eventname == "urlload" || changed_request_id )
585+ if ( eventname == "urlload" )
617586 {
618587 var id = this . _get_uid ( ) ;
619588 logger_entry = new cls . NetworkLoggerEntry ( id , event . resourceID , event . documentID , this . get_starttime ( ) ) ;
@@ -623,7 +592,6 @@ cls.RequestContextPrototype = function()
623592 if ( window_context )
624593 window_context . entry_ids . push ( id ) ;
625594 }
626- logger_entry . request_id = event . requestID ;
627595 logger_entry . update ( eventname , event ) ;
628596
629597 if ( ! this . is_paused )
@@ -748,7 +716,6 @@ cls.RequestContext.prototype = new cls.RequestContextPrototype();
748716cls . NetworkLoggerEntry = function ( id , resource_id , document_id , context_starttime )
749717{
750718 this . id = id ;
751- this . request_id = 0 ;
752719 this . resource_id = resource_id ;
753720 this . document_id = document_id ;
754721 this . context_starttime = context_starttime ;
@@ -1016,9 +983,6 @@ cls.NetworkLoggerEntryPrototype = function()
1016983
1017984 this . _update_event_requestretry = function ( event )
1018985 {
1019- // This means on the next request with event.toRequestID, we won't
1020- // make a new entry, but a new NetworkLoggerRequest on the same entry.
1021- this . request_id = event . toRequestID ;
1022986 } ;
1023987
1024988 this . _update_event_response = function ( event )
@@ -1250,8 +1214,6 @@ cls.NetworkLoggerRequest = function(entry)
12501214 this . was_responded_to = false ;
12511215 // Set from template code, when first needed:
12521216 this . header_tokens = null ;
1253- // Belongs here, unused though:
1254- this . request_id = entry . request_id ;
12551217} ;
12561218
12571219cls . NetworkLoggerRequestPrototype = function ( )
0 commit comments