mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
LibWeb: Add ReferrerPolicy::EmptyString
One of the valid enum values for "referrer policy" is the empty string. Since we're using an enum for this, just add it as an enum value.
This commit is contained in:
parent
4d8edf65b5
commit
aef36ce828
2 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,8 @@ namespace Web::ReferrerPolicy {
|
|||
StringView to_string(ReferrerPolicy referrer_policy)
|
||||
{
|
||||
switch (referrer_policy) {
|
||||
case ReferrerPolicy::EmptyString:
|
||||
return ""sv;
|
||||
case ReferrerPolicy::NoReferrer:
|
||||
return "no-referrer"sv;
|
||||
case ReferrerPolicy::NoReferrerWhenDowngrade:
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace Web::ReferrerPolicy {
|
|||
|
||||
// https://w3c.github.io/webappsec-referrer-policy/#enumdef-referrerpolicy
|
||||
enum class ReferrerPolicy {
|
||||
EmptyString,
|
||||
NoReferrer,
|
||||
NoReferrerWhenDowngrade,
|
||||
SameOrigin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue