LibWeb: Stub out "focus-without-user-activation" feature policy

For now this always returns that focus is allowed, as that matches our
previous behavior.

Corresponds to d7053d86ad
This commit is contained in:
Sam Atkins 2025-03-14 18:04:12 +00:00 committed by Tim Ledbetter
commit 70e3a48892
Notes: github-actions[bot] 2025-03-14 20:34:25 +00:00
5 changed files with 62 additions and 15 deletions

View file

@ -154,8 +154,9 @@ struct ElementCreationOptions {
Optional<String> is;
};
enum class PolicyControlledFeature {
enum class PolicyControlledFeature : u8 {
Autoplay,
FocusWithoutUserActivation,
};
class Document
@ -552,6 +553,8 @@ public:
bool has_focus() const;
bool allow_focus() const;
void set_parser(Badge<HTML::HTMLParser>, HTML::HTMLParser&);
void detach_parser(Badge<HTML::HTMLParser>);