mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Move ReferrerPolicy to net_traits.
This commit is contained in:
@@ -305,15 +305,3 @@ pub enum FrameType {
|
||||
IFrame,
|
||||
MozBrowserIFrame,
|
||||
}
|
||||
|
||||
/// [Policies](https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-states)
|
||||
/// for providing a referrer header for a request
|
||||
#[derive(Clone, Copy, Debug, Deserialize, HeapSizeOf, Serialize)]
|
||||
pub enum ReferrerPolicy {
|
||||
NoReferrer,
|
||||
NoReferrerWhenDowngrade,
|
||||
Origin,
|
||||
SameOrigin,
|
||||
OriginWhenCrossOrigin,
|
||||
UnsafeUrl,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user