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:
bors-servo 2020-07-03 11:39:07 -04:00 committed by GitHub
commit 8800452e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
68 changed files with 153 additions and 2066 deletions

View file

@ -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())
}
}