mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add connectStart in PerformanceResourceTiming
This commit is contained in:
parent
1409c767e4
commit
a11684460d
4 changed files with 17 additions and 3 deletions
|
@ -381,6 +381,12 @@ fn obtain_response(
|
|||
// TODO(#21261) connect_start: set if a persistent connection is *not* used and the last non-redirected
|
||||
// fetch passes the timing allow check
|
||||
let connect_start = precise_time_ms();
|
||||
context
|
||||
.timing
|
||||
.lock()
|
||||
.unwrap()
|
||||
.set_attribute(ResourceAttribute::ConnectStart(connect_start));
|
||||
|
||||
// https://url.spec.whatwg.org/#percent-encoded-bytes
|
||||
let request = HyperRequest::builder()
|
||||
.method(method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue