diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-12-13 12:07:12 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-24 10:20:45 +0100 |
commit | 46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e (patch) | |
tree | bdb1316d0388f03c6b7e4171f56f5bac46c41d87 /dom/canvas/CanvasRenderingContext2D.cpp | |
parent | 55d03738f9f79e30bab6294b023176d1a65ab5c3 (diff) | |
download | UXP-46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e.tar UXP-46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e.tar.gz UXP-46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e.tar.lz UXP-46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e.tar.xz UXP-46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e.zip |
Don't build EME-specific subroutines without EME.
- Checks for restricted or encrypted content
- Dispatching 'encrypted' events
- Dispatching 'key needed' events
- HTML Media Element media keys system
- EME telemetry
- HTML Media Element EME API
This is the main bulk for #26, isolating EME-specific code.
Diffstat (limited to 'dom/canvas/CanvasRenderingContext2D.cpp')
-rw-r--r-- | dom/canvas/CanvasRenderingContext2D.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index b0a430fe4..35ea2cd1a 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -4977,10 +4977,12 @@ CanvasRenderingContext2D::DrawImage(const CanvasImageSource& aImage, return; } +#ifdef MOZ_EME if (video->ContainsRestrictedContent()) { aError.Throw(NS_ERROR_NOT_AVAILABLE); return; } +#endif uint16_t readyState; if (NS_SUCCEEDED(video->GetReadyState(&readyState)) && |