mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
net: correct handling of the empty string referrer policy when provided in requestInit (#34518)
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
parent
68a27946bf
commit
651326dacb
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[request-init-001.sub.html]
|
||||
[Check referrerPolicy init value of and associated getter]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue