LibWeb/EME: Add EncryptedMedia allowed allowed feature flag

This commit is contained in:
stelar7 2025-07-31 12:44:28 +02:00 committed by Jelle Raaijmakers
commit d65f599f92
Notes: github-actions[bot] 2025-08-27 07:59:43 +00:00
2 changed files with 2 additions and 0 deletions

View file

@ -4450,6 +4450,7 @@ bool Document::is_allowed_to_use_feature(PolicyControlledFeature feature) const
return true; return true;
break; break;
case PolicyControlledFeature::FocusWithoutUserActivation: case PolicyControlledFeature::FocusWithoutUserActivation:
case PolicyControlledFeature::EncryptedMedia:
// FIXME: Implement allowlist for this. // FIXME: Implement allowlist for this.
return true; return true;
} }

View file

@ -158,6 +158,7 @@ struct ElementCreationOptions {
enum class PolicyControlledFeature : u8 { enum class PolicyControlledFeature : u8 {
Autoplay, Autoplay,
EncryptedMedia,
FocusWithoutUserActivation, FocusWithoutUserActivation,
}; };