mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Convert SandboxingFlagSet into a enum class
Instead of having a nested enum within a struct, use the macro AK_ENUM_BITWISE_OPERATORS to add all the convienent has_flag free functions and such for ease of use.
This commit is contained in:
committed by
Alexander Kalenik
parent
967cb86c5b
commit
d97b09693e
@@ -1655,7 +1655,7 @@ bool HTMLMediaElement::is_eligible_for_autoplay() const
|
||||
has_attribute(HTML::AttributeNames::autoplay) &&
|
||||
|
||||
// Its node document's active sandboxing flag set does not have the sandboxed automatic features browsing context flag set.
|
||||
(document().active_sandboxing_flag_set().flags & SandboxingFlagSet::SandboxedAutomaticFeatures) == 0 &&
|
||||
!has_flag(document().active_sandboxing_flag_set(), SandboxingFlagSet::SandboxedAutomaticFeatures) &&
|
||||
|
||||
// Its node document is allowed to use the "autoplay" feature.
|
||||
document().is_allowed_to_use_feature(DOM::PolicyControlledFeature::Autoplay));
|
||||
|
||||
Reference in New Issue
Block a user