diff options
author | shanehandley <1322294+shanehandley@users.noreply.github.com> | 2024-12-07 16:35:11 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-07 05:35:11 +0000 |
commit | 651326dacb83a833eeabdbfb2a3e25cb4dc5987c (patch) | |
tree | 0c4ab6781506d92fc598ff39101d6e31c8ddd76a /components/script | |
parent | 68a27946bf0c2a1398df03930c163e40468d016d (diff) | |
download | servo-651326dacb83a833eeabdbfb2a3e25cb4dc5987c.tar.gz servo-651326dacb83a833eeabdbfb2a3e25cb4dc5987c.zip |
net: correct handling of the empty string referrer policy when provided in requestInit (#34518)
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/request.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/request.rs b/components/script/dom/request.rs index 31886e41a0c..4a39589afd6 100644 --- a/components/script/dom/request.rs +++ b/components/script/dom/request.rs @@ -801,7 +801,7 @@ impl From<NetTraitsRequestMode> for RequestMode { impl From<ReferrerPolicy> for MsgReferrerPolicy { fn from(policy: ReferrerPolicy) -> Self { match policy { - ReferrerPolicy::_empty => MsgReferrerPolicy::default(), + ReferrerPolicy::_empty => MsgReferrerPolicy::EmptyString, ReferrerPolicy::No_referrer => MsgReferrerPolicy::NoReferrer, ReferrerPolicy::No_referrer_when_downgrade => { MsgReferrerPolicy::NoReferrerWhenDowngrade |