mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Make url for "client" referrer mandatory
This commit is contained in:
parent
37394a892c
commit
fa18cf620f
38 changed files with 410 additions and 213 deletions
|
@ -624,11 +624,14 @@ impl WorkletThread {
|
|||
// TODO: Fetch the script asynchronously?
|
||||
// TODO: Caching.
|
||||
let resource_fetcher = self.global_init.resource_threads.sender();
|
||||
let request = RequestBuilder::new(script_url)
|
||||
.destination(Destination::Script)
|
||||
.mode(RequestMode::CorsMode)
|
||||
.credentials_mode(credentials.into())
|
||||
.origin(origin);
|
||||
let request = RequestBuilder::new(
|
||||
script_url,
|
||||
global_scope.upcast::<GlobalScope>().get_referrer(),
|
||||
)
|
||||
.destination(Destination::Script)
|
||||
.mode(RequestMode::CorsMode)
|
||||
.credentials_mode(credentials.into())
|
||||
.origin(origin);
|
||||
|
||||
let script = load_whole_resource(
|
||||
request,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue