mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
ISSUE-21263: implemented attribute setting in http loader
This commit is contained in:
parent
328244684a
commit
fdbec9835c
6 changed files with 49 additions and 22 deletions
|
@ -66,7 +66,6 @@ pub struct PerformanceResourceTiming {
|
|||
// TODO(#21260): domain_lookup_end
|
||||
// TODO(#21261): connect_start
|
||||
// TODO(#21262): connect_end
|
||||
// TODO(#21263): response_end
|
||||
impl PerformanceResourceTiming {
|
||||
pub fn new_inherited(
|
||||
url: ServoUrl,
|
||||
|
@ -126,7 +125,7 @@ impl PerformanceResourceTiming {
|
|||
secure_connection_start: 0.,
|
||||
request_start: resource_timing.request_start as f64,
|
||||
response_start: resource_timing.response_start as f64,
|
||||
response_end: 0.,
|
||||
response_end: resource_timing.response_end as f64,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,7 +174,6 @@ impl PerformanceResourceTimingMethods for PerformanceResourceTiming {
|
|||
|
||||
// https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-requeststart
|
||||
fn RequestStart(&self) -> DOMHighResTimeStamp {
|
||||
// TODO
|
||||
Finite::wrap(self.request_start)
|
||||
}
|
||||
|
||||
|
@ -186,7 +184,6 @@ impl PerformanceResourceTimingMethods for PerformanceResourceTiming {
|
|||
|
||||
// https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-responsestart
|
||||
fn ResponseStart(&self) -> DOMHighResTimeStamp {
|
||||
// TODO
|
||||
Finite::wrap(self.response_start)
|
||||
}
|
||||
|
||||
|
@ -199,4 +196,9 @@ impl PerformanceResourceTimingMethods for PerformanceResourceTiming {
|
|||
fn ConnectEnd(&self) -> DOMHighResTimeStamp {
|
||||
Finite::wrap(self.connect_end)
|
||||
}
|
||||
|
||||
// https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-responseend
|
||||
fn ResponseEnd(&self) -> DOMHighResTimeStamp {
|
||||
Finite::wrap(self.response_end)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
|
|||
// readonly attribute DOMHighResTimeStamp secureConnectionStart;
|
||||
readonly attribute DOMHighResTimeStamp requestStart;
|
||||
readonly attribute DOMHighResTimeStamp responseStart;
|
||||
// readonly attribute DOMHighResTimeStamp responseEnd;
|
||||
readonly attribute DOMHighResTimeStamp responseEnd;
|
||||
/// readonly attribute unsigned long long transferSize;
|
||||
/// readonly attribute unsigned long long encodedBodySize;
|
||||
/// readonly attribute unsigned long long decodedBodySize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue