File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 134134 const name = parsed . href ;
135135 // Implementations may cancel an in-flight script fetch on parser abort, in
136136 // which case no PerformanceResourceTiming entry is emitted. Race against a
137- // slightly slower un-aborted control request so cancelled fetches settle
138- // promptly without waiting for the 3s fallback timeout.
137+ // slower un-aborted control request so cancelled fetches settle promptly
138+ // without waiting for the 3s fallback timeout. The control is delayed well
139+ // beyond the script's delay so that, in an implementation that wrongly
140+ // keeps fetching and executes the script, the script runs first.
139141 const controlUrl = new URL ( parsed ) ;
140- controlUrl . search = controlUrl . search . replace ( "trickle(d0.2)" , "trickle(d0.3 )" ) ;
142+ controlUrl . search = controlUrl . search . replace ( "trickle(d0.2)" , "trickle(d0.6 )" ) ;
141143 controlUrl . searchParams . set ( "control_probe" , Math . random ( ) ) ;
142144 const controlDone = fetch ( controlUrl ) . then ( r => r . text ( ) , ( ) => { } ) ;
143145 let observer ;
589591 iframe . contentWindow . notifyParent = ( ) => {
590592 window . iframe_blocked_ran = true ;
591593 } ;
592- const controlDone = fetch ( "resources/slow.js?pipe=trickle(d0.3 )&f12_control=1" )
594+ const controlDone = fetch ( "resources/slow.js?pipe=trickle(d0.6 )&f12_control=1" )
593595 . then ( r => r . text ( ) )
594596 . then ( ( ) => new Promise ( r => t . step_timeout ( r , 0 ) ) ) ;
595597 const target = iframe . contentDocument . getElementById ( "target" ) ;
You can’t perform that action at this time.
0 commit comments