diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 61f597468f8..16f414656e5 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -3669,13 +3669,12 @@ impl ScriptThread { /// argument until a notification is received that the fetch is complete. fn pre_page_load(&self, mut incomplete: InProgressLoad, load_data: LoadData) { let id = incomplete.pipeline_id.clone(); - let req_init = RequestBuilder::new(load_data.url.clone()) + let req_init = RequestBuilder::new(load_data.url.clone(), load_data.referrer) .method(load_data.method) .destination(Destination::Document) .credentials_mode(CredentialsMode::Include) .use_url_credentials(true) .pipeline_id(Some(id)) - .referrer(load_data.referrer) .referrer_policy(load_data.referrer_policy) .headers(load_data.headers) .body(load_data.data) |