From 55d03738f9f79e30bab6294b023176d1a65ab5c3 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 13 Dec 2017 00:26:07 +0100 Subject: Don't include MediaKeySystemAccess without EME. This also removes checks for EME content in documents. This removes practical use of EME by no longer having a keying system. (no-op) tag #26 --- dom/base/Navigator.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dom/base/Navigator.h') diff --git a/dom/base/Navigator.h b/dom/base/Navigator.h index 4b4ae6759..d47a80bc1 100644 --- a/dom/base/Navigator.h +++ b/dom/base/Navigator.h @@ -18,7 +18,9 @@ #include "nsString.h" #include "nsTArray.h" #include "nsWeakPtr.h" +#ifdef MOZ_EME #include "mozilla/dom/MediaKeySystemAccessManager.h" +#endif class nsPluginArray; class nsMimeTypeArray; @@ -258,12 +260,14 @@ public: // any, else null. static already_AddRefed GetWindowFromGlobal(JSObject* aGlobal); +#ifdef MOZ_EME already_AddRefed RequestMediaKeySystemAccess(const nsAString& aKeySystem, const Sequence& aConfig, ErrorResult& aRv); private: RefPtr mMediaKeySystemAccessManager; +#endif public: void NotifyVRDisplaysUpdated(); -- cgit v1.2.3