mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01: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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* https://w3c.github.io/resource-timing/
|
||||
*/
|
||||
|
||||
// https://w3c.github.io/resource-timing/#sec-performanceresourcetiming
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceResourceTiming : PerformanceEntry {
|
||||
readonly attribute DOMString initiatorType;
|
||||
|
@ -13,7 +14,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
|
|||
// readonly attribute DOMHighResTimeStamp workerStart;
|
||||
// readonly attribute DOMHighResTimeStamp redirectStart;
|
||||
// readonly attribute DOMHighResTimeStamp redirectEnd;
|
||||
// readonly attribute DOMHighResTimeStamp fetchStart;
|
||||
readonly attribute DOMHighResTimeStamp fetchStart;
|
||||
// readonly attribute DOMHighResTimeStamp domainLookupStart;
|
||||
// readonly attribute DOMHighResTimeStamp domainLookupEnd;
|
||||
// readonly attribute DOMHighResTimeStamp connectStart;
|
||||
|
@ -27,9 +28,3 @@ interface PerformanceResourceTiming : PerformanceEntry {
|
|||
/// readonly attribute unsigned long long decodedBodySize;
|
||||
// [Default] object toJSON();
|
||||
};
|
||||
|
||||
// partial interface Performance {
|
||||
// void clearResourceTimings();
|
||||
// void setResourceTimingBufferSize(unsigned long maxSize);
|
||||
// attribute EventHandler onresourcetimingbufferfull;
|
||||
// };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue