summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-20 12:37:57 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-20 12:37:57 -0500
commit7c598437c237a3a6da4f74f611bc2f043c32abc7 (patch)
treed6352487c1d32b06928f43344d41ba1ca1b0fac7 /layout
parent87dabd4e0b724bb81db3eaeefa09cfd2c5545a36 (diff)
downloadaura-central-7c598437c237a3a6da4f74f611bc2f043c32abc7.tar.gz
Issue #1 - Restore EME (but not the configure logic to enable it)
Diffstat (limited to 'layout')
-rw-r--r--layout/base/nsLayoutUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp
index 732068ac2..ae66219cf 100644
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -7217,6 +7217,12 @@ nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,
(aSurfaceFlags & SFE_PREFER_NO_PREMULTIPLY_ALPHA) == 0,
"We can't support non-premultiplied alpha for video!");
+#ifdef MOZ_EME
+ if (aElement->ContainsRestrictedContent()) {
+ return result;
+ }
+#endif
+
uint16_t readyState;
if (NS_SUCCEEDED(aElement->GetReadyState(&readyState)) &&
(readyState == nsIDOMHTMLMediaElement::HAVE_NOTHING ||