Skip to content
Permalink
Browse files

Fix `mode` and `credential-mode` for fetching classic worker script

  • Loading branch information...
CYBAI committed May 9, 2019
1 parent 81f750a commit ffdcd3aa7a23ef300118677a4bb90d6c9747f7b3
@@ -37,7 +37,7 @@ use js::jsapi::{JSAutoCompartment, JSContext};
use js::jsval::UndefinedValue;
use js::rust::HandleValue;
use msg::constellation_msg::{PipelineId, TopLevelBrowsingContextId};
use net_traits::request::{CredentialsMode, Destination, Referrer, RequestBuilder};
use net_traits::request::{CredentialsMode, Destination, Referrer, RequestBuilder, RequestMode};
use net_traits::IpcSend;
use script_traits::{TimerEvent, TimerSource, WorkerGlobalScopeInit, WorkerScriptLoadOrigin};
use servo_rand::random;
@@ -310,7 +310,8 @@ impl DedicatedWorkerGlobalScope {

let request = RequestBuilder::new(worker_url.clone())
.destination(Destination::Worker)
.credentials_mode(CredentialsMode::Include)
.mode(RequestMode::SameOrigin)
.credentials_mode(CredentialsMode::CredentialsSameOrigin)
.use_url_credentials(true)
.pipeline_id(pipeline_id)
.referrer(referrer)
@@ -1,3 +1,9 @@
[same-origin.html]
type: testharness
disabled: intermittent failures
expected: TIMEOUT
[unsupported_scheme]
expected: FAIL

[about_blank]
expected: TIMEOUT

0 comments on commit ffdcd3a

Please sign in to comment.
You can’t perform that action at this time.