mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -252,7 +252,7 @@ impl WorkerGlobalScopeMethods for WorkerGlobalScope {
|
|||
rooted!(in(self.runtime.borrow().as_ref().unwrap().cx()) let mut rval = UndefinedValue());
|
||||
for url in urls {
|
||||
let global_scope = self.upcast::<GlobalScope>();
|
||||
let request = NetRequestInit::new(url.clone())
|
||||
let request = NetRequestInit::new(url.clone(), global_scope.get_referrer())
|
||||
.destination(Destination::Script)
|
||||
.credentials_mode(CredentialsMode::Include)
|
||||
.parser_metadata(ParserMetadata::NotParserInserted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue