mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Merge request type and destination
This commit is contained in:
parent
48c715c1c8
commit
c6bb1cb9d5
20 changed files with 88 additions and 152 deletions
|
@ -30,7 +30,7 @@ use ipc_channel::ipc;
|
|||
use ipc_channel::router::ROUTER;
|
||||
use js::jsval::UndefinedValue;
|
||||
use net_traits::{FetchMetadata, FetchResponseListener, Metadata, NetworkError};
|
||||
use net_traits::request::{CorsSettings, CredentialsMode, Destination, RequestInit, RequestMode, Type as RequestType};
|
||||
use net_traits::request::{CorsSettings, CredentialsMode, Destination, RequestInit, RequestMode};
|
||||
use network_listener::{NetworkListener, PreInvoke};
|
||||
use servo_atoms::Atom;
|
||||
use servo_config::opts;
|
||||
|
@ -238,7 +238,6 @@ fn fetch_a_classic_script(script: &HTMLScriptElement,
|
|||
// Step 1, 2.
|
||||
let request = RequestInit {
|
||||
url: url.clone(),
|
||||
type_: RequestType::Script,
|
||||
destination: Destination::Script,
|
||||
// https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request
|
||||
// Step 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue