mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03: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
Notes:
sideshowbarker
2024-07-16 21:01:20 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/aef36ce828 Pull-request: https://github.com/SerenityOS/serenity/pull/18496
@ -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…
Reference in New Issue
Block a user