mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #27104 - utsavoza:ugo/issue-27030/28-06-2020, r=gterzian
Update referrer computation The PR updates the request's referrer computation in consideration with the recent changes in [w3c/webappsec-referrer-policy#135](https://github.com/w3c/webappsec-referrer-policy/pull/135). --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27030 and fix #14505 - [x] There are tests for these changes
This commit is contained in:
commit
8800452e34
68 changed files with 153 additions and 2066 deletions
|
@ -2370,10 +2370,10 @@ impl GlobalScope {
|
|||
}
|
||||
|
||||
// Substep 3.1.4
|
||||
return Referrer::Client(url);
|
||||
Referrer::Client(url)
|
||||
} else {
|
||||
// Substep 3.2
|
||||
return Referrer::Client(self.get_url());
|
||||
Referrer::Client(self.get_url())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue