aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/methods.rs
diff options
context:
space:
mode:
authorMatthias Deiml <matthias@deiml.net>2020-06-15 18:44:59 +0200
committerMatthias Deiml <matthias@deiml.net>2020-06-17 19:07:14 +0200
commitfa18cf620f1c271bee8808026ab40ffbaa11aee6 (patch)
treeb5f1aa3518bf1c21dca0c43cf1299ee9e3ad7d4e /components/net/fetch/methods.rs
parent37394a892c79d6edbef868d6451710648669cc1c (diff)
downloadservo-fa18cf620f1c271bee8808026ab40ffbaa11aee6.tar.gz
servo-fa18cf620f1c271bee8808026ab40ffbaa11aee6.zip
Make url for "client" referrer mandatory
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r--components/net/fetch/methods.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index 1aabb545354..41b804fb7fc 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -239,13 +239,7 @@ pub fn main_fetch(
{
let referrer_url = match mem::replace(&mut request.referrer, Referrer::NoReferrer) {
Referrer::NoReferrer => None,
- Referrer::Client => {
- // FIXME(#14507): We should never get this value here; it should
- // already have been handled in the script thread.
- request.headers.remove(header::REFERER);
- None
- },
- Referrer::ReferrerUrl(url) => {
+ Referrer::ReferrerUrl(url) | Referrer::Client(url) => {
request.headers.remove(header::REFERER);
let current_url = request.current_url();
determine_request_referrer(