mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibWeb/EME: Add EncryptedMedia allowed allowed feature flag
This commit is contained in:
parent
b1c1e33bae
commit
d65f599f92
Notes:
github-actions[bot]
2025-08-27 07:59:43 +00:00
Author: https://github.com/stelar7
Commit: d65f599f92
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5665
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,6 +158,7 @@ struct ElementCreationOptions {
|
||||||
|
|
||||||
enum class PolicyControlledFeature : u8 {
|
enum class PolicyControlledFeature : u8 {
|
||||||
Autoplay,
|
Autoplay,
|
||||||
|
EncryptedMedia,
|
||||||
FocusWithoutUserActivation,
|
FocusWithoutUserActivation,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue