mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Added fetch_start functionality in http_fetch
Added spec link for webidl. Added fetch_start functionality to PRT . Changed the fetch_start location
This commit is contained in:
parent
3ca82471c8
commit
77c9285780
6 changed files with 27 additions and 20 deletions
|
@ -78,7 +78,7 @@ impl PerformanceResourceTiming {
|
|||
entry: PerformanceEntry::new_inherited(
|
||||
DOMString::from(url.into_string()),
|
||||
DOMString::from("resource"),
|
||||
fetch_start,
|
||||
0.,
|
||||
0.,
|
||||
),
|
||||
initiator_type: initiator_type,
|
||||
|
@ -118,7 +118,7 @@ impl PerformanceResourceTiming {
|
|||
worker_start: 0.,
|
||||
redirect_start: 0.,
|
||||
redirect_end: 0.,
|
||||
fetch_start: 0.,
|
||||
fetch_start: resource_timing.fetch_start as f64,
|
||||
domain_lookup_start: 0.,
|
||||
domain_lookup_end: 0.,
|
||||
connect_start: 0.,
|
||||
|
@ -184,4 +184,9 @@ impl PerformanceResourceTimingMethods for PerformanceResourceTiming {
|
|||
// TODO
|
||||
Finite::wrap(self.response_start)
|
||||
}
|
||||
|
||||
// https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-fetchstart
|
||||
fn FetchStart(&self) -> DOMHighResTimeStamp {
|
||||
Finite::wrap(self.fetch_start)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue