mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
check http_state in determine_request_referrer
This commit is contained in:
parent
79b6758cb9
commit
a7c5c97616
12 changed files with 133 additions and 46 deletions
|
@ -8,7 +8,7 @@ use http::StatusCode;
|
|||
use msg::constellation_msg::TEST_PIPELINE_ID;
|
||||
use net::http_cache::HttpCache;
|
||||
use net_traits::request::{Origin, Request};
|
||||
use net_traits::response::{Response, ResponseBody};
|
||||
use net_traits::response::{HttpsState, Response, ResponseBody};
|
||||
use net_traits::{ResourceFetchTiming, ResourceTimingType};
|
||||
use servo_url::ServoUrl;
|
||||
|
||||
|
@ -24,6 +24,7 @@ fn test_refreshing_resource_sets_done_chan_the_appropriate_value() {
|
|||
url.clone(),
|
||||
Some(Origin::Origin(url.clone().origin())),
|
||||
Some(TEST_PIPELINE_ID),
|
||||
HttpsState::None,
|
||||
);
|
||||
let timing = ResourceFetchTiming::new(ResourceTimingType::Navigation);
|
||||
let mut response = Response::new(url.clone(), timing);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue