summaryrefslogtreecommitdiff
path: root/dom/base/nsDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsDocument.cpp')
-rw-r--r--dom/base/nsDocument.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp
index 20fbf72983..9b7a8c2721 100644
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -4206,32 +4206,6 @@ nsDocument::SetScopeObject(nsIGlobalObject* aGlobal)
}
}
-#ifdef MOZ_EME
-static void
-CheckIfContainsEMEContent(nsISupports* aSupports, void* aContainsEME)
-{
- nsCOMPtr<nsIDOMHTMLMediaElement> domMediaElem(do_QueryInterface(aSupports));
- if (domMediaElem) {
- nsCOMPtr<nsIContent> content(do_QueryInterface(domMediaElem));
- MOZ_ASSERT(content, "aSupports is not a content");
- HTMLMediaElement* mediaElem = static_cast<HTMLMediaElement*>(content.get());
- bool* contains = static_cast<bool*>(aContainsEME);
- if (mediaElem->GetMediaKeys()) {
- *contains = true;
- }
- }
-}
-
-bool
-nsDocument::ContainsEMEContent()
-{
- bool containsEME = false;
- EnumerateActivityObservers(CheckIfContainsEMEContent,
- static_cast<void*>(&containsEME));
- return containsEME;
-}
-#endif // MOZ_EME
-
static void
CheckIfContainsMSEContent(nsISupports* aSupports, void* aContainsMSE)
{
@@ -8036,14 +8010,6 @@ nsDocument::CanSavePresentation(nsIRequest *aNewRequest)
}
#endif // MOZ_WEBRTC
-#ifdef MOZ_EME
- // Don't save presentations for documents containing EME content, so that
- // CDMs reliably shutdown upon user navigation.
- if (ContainsEMEContent()) {
- return false;
- }
-#endif
-
// Don't save presentations for documents containing MSE content, to
// reduce memory usage.
if (ContainsMSEContent()) {