From d65f599f92e116974ce9f76a6cac3f6240ac5ea4 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Thu, 31 Jul 2025 12:44:28 +0200 Subject: [PATCH] LibWeb/EME: Add EncryptedMedia allowed allowed feature flag --- Libraries/LibWeb/DOM/Document.cpp | 1 + Libraries/LibWeb/DOM/Document.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index d9d6ec2a425..abf5cc2f8ac 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -4450,6 +4450,7 @@ bool Document::is_allowed_to_use_feature(PolicyControlledFeature feature) const return true; break; case PolicyControlledFeature::FocusWithoutUserActivation: + case PolicyControlledFeature::EncryptedMedia: // FIXME: Implement allowlist for this. return true; } diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.h index 9967bc68faa..54f21703f43 100644 --- a/Libraries/LibWeb/DOM/Document.h +++ b/Libraries/LibWeb/DOM/Document.h @@ -158,6 +158,7 @@ struct ElementCreationOptions { enum class PolicyControlledFeature : u8 { Autoplay, + EncryptedMedia, FocusWithoutUserActivation, };