mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Introduce parser metadata for request
This commit is contained in:
parent
ffdcd3aa7a
commit
261c8d9e0c
5 changed files with 29 additions and 3 deletions
|
@ -42,7 +42,9 @@ use js::jsval::UndefinedValue;
|
|||
use js::panic::maybe_resume_unwind;
|
||||
use js::rust::{HandleValue, ParentRuntime};
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use net_traits::request::{CredentialsMode, Destination, RequestBuilder as NetRequestInit};
|
||||
use net_traits::request::{
|
||||
CredentialsMode, Destination, ParserMetadata, RequestBuilder as NetRequestInit,
|
||||
};
|
||||
use net_traits::IpcSend;
|
||||
use script_traits::WorkerGlobalScopeInit;
|
||||
use script_traits::{TimerEvent, TimerEventId};
|
||||
|
@ -216,6 +218,7 @@ impl WorkerGlobalScopeMethods for WorkerGlobalScope {
|
|||
let request = NetRequestInit::new(url.clone())
|
||||
.destination(Destination::Script)
|
||||
.credentials_mode(CredentialsMode::Include)
|
||||
.parser_metadata(ParserMetadata::NotParserInserted)
|
||||
.use_url_credentials(true)
|
||||
.origin(global_scope.origin().immutable().clone())
|
||||
.pipeline_id(Some(self.upcast::<GlobalScope>().pipeline_id()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue