mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add connectEnd attribute to PerformanceResourceTiming interface
This commit is contained in:
parent
9be40ac4b6
commit
f478357567
6 changed files with 18 additions and 16 deletions
|
@ -349,6 +349,7 @@ fn obtain_response(
|
|||
iters: u32,
|
||||
request_id: Option<&str>,
|
||||
is_xhr: bool,
|
||||
context: &FetchContext,
|
||||
) -> Box<
|
||||
dyn Future<
|
||||
Item = (HyperResponse<Decoder>, Option<ChromeToDevtoolsControlMsg>),
|
||||
|
@ -400,8 +401,12 @@ fn obtain_response(
|
|||
};
|
||||
*request.headers_mut() = headers.clone();
|
||||
|
||||
//TODO(#21262) connect_end
|
||||
let connect_end = precise_time_ms();
|
||||
context
|
||||
.timing
|
||||
.lock()
|
||||
.unwrap()
|
||||
.set_attribute(ResourceAttribute::ConnectEnd(connect_end));
|
||||
|
||||
let request_id = request_id.map(|v| v.to_owned());
|
||||
let pipeline_id = pipeline_id.clone();
|
||||
|
@ -1190,6 +1195,7 @@ fn http_network_fetch(
|
|||
request.redirect_count + 1,
|
||||
request_id.as_ref().map(Deref::deref),
|
||||
is_xhr,
|
||||
context,
|
||||
);
|
||||
|
||||
let pipeline_id = request.pipeline_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue