mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +00:00
LibWeb: Add HTMLAnchorElement.referrerPolicy property
This commit is contained in:
parent
0c19d3aa58
commit
88d64fcb55
7 changed files with 87 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace Web::ReferrerPolicy {
|
||||
|
||||
// https://w3c.github.io/webappsec-referrer-policy/#enumdef-referrerpolicy
|
||||
|
@ -24,4 +27,7 @@ enum class ReferrerPolicy {
|
|||
// The default referrer policy is "strict-origin-when-cross-origin".
|
||||
constexpr auto DEFAULT_REFERRER_POLICY = ReferrerPolicy::StrictOriginWhenCrossOrigin;
|
||||
|
||||
StringView to_string(ReferrerPolicy);
|
||||
Optional<ReferrerPolicy> from_string(StringView);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue