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 | |
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>
-rw-r--r-- | components/script/dom/request.rs | 2 | ||||
-rw-r--r-- | tests/wpt/meta/fetch/api/request/request-init-001.sub.html.ini | 3 |
2 files changed, 1 insertions, 4 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 diff --git a/tests/wpt/meta/fetch/api/request/request-init-001.sub.html.ini b/tests/wpt/meta/fetch/api/request/request-init-001.sub.html.ini deleted file mode 100644 index 4b5c8a37054..00000000000 --- a/tests/wpt/meta/fetch/api/request/request-init-001.sub.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[request-init-001.sub.html] - [Check referrerPolicy init value of and associated getter] - expected: FAIL |