mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
refactored performance timing to align with updated spec
refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
This commit is contained in:
parent
3fe83f1d06
commit
26007fddd3
103 changed files with 1881 additions and 322 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::ReferrerPolicy;
|
||||
use crate::ResourceTimingType;
|
||||
use http::HeaderMap;
|
||||
use hyper::Method;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
|
@ -365,6 +366,14 @@ impl Request {
|
|||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn timing_type(&self) -> ResourceTimingType {
|
||||
if self.is_navigation_request() {
|
||||
ResourceTimingType::Navigation
|
||||
} else {
|
||||
ResourceTimingType::Resource
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Referrer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue