diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 12:37:57 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 12:37:57 -0500 |
commit | 7c598437c237a3a6da4f74f611bc2f043c32abc7 (patch) | |
tree | d6352487c1d32b06928f43344d41ba1ca1b0fac7 /layout | |
parent | 87dabd4e0b724bb81db3eaeefa09cfd2c5545a36 (diff) | |
download | aura-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.cpp | 6 |
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 || |