Skip to content

Commit

Permalink
Implement referrer policy
Browse files Browse the repository at this point in the history
Fixes #26270
  • Loading branch information
Eijebong committed May 5, 2020
1 parent a237e41 commit c14ab25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/net/http_loader.rs
Expand Up @@ -817,7 +817,13 @@ pub fn http_redirect_fetch(
request.url_list.push(location_url);

// Step 14
// TODO implement referrer policy
if let Some(referrer_policy) = response
.actual_response()
.headers
.typed_get::<headers::ReferrerPolicy>()
{
request.referrer_policy = Some(referrer_policy.into());
}

// Step 15
let recursive_flag = request.redirect_mode != RedirectMode::Manual;
Expand Down

0 comments on commit c14ab25

Please sign in to comment.