mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use the correct fallback referrer policy for the empty string case (#34201)
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
parent
4da378a987
commit
5e2c7908d0
7 changed files with 5 additions and 189 deletions
|
@ -805,7 +805,7 @@ impl From<NetTraitsRequestMode> for RequestMode {
|
|||
impl From<ReferrerPolicy> for MsgReferrerPolicy {
|
||||
fn from(policy: ReferrerPolicy) -> Self {
|
||||
match policy {
|
||||
ReferrerPolicy::_empty => MsgReferrerPolicy::NoReferrer,
|
||||
ReferrerPolicy::_empty => MsgReferrerPolicy::default(),
|
||||
ReferrerPolicy::No_referrer => MsgReferrerPolicy::NoReferrer,
|
||||
ReferrerPolicy::No_referrer_when_downgrade => {
|
||||
MsgReferrerPolicy::NoReferrerWhenDowngrade
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue