summaryrefslogtreecommitdiff
path: root/dom/html/HTMLMediaElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/HTMLMediaElement.cpp')
-rw-r--r--dom/html/HTMLMediaElement.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp
index 1ff1fd7a45..a483198655 100644
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -846,28 +846,7 @@ private:
bool CanOwnerPlayUnsupportedTypeMedia() const
{
-#if defined(MOZ_WIDGET_ANDROID)
- // On Fennec, we will user an external app to open unsupported media types.
- if (!Preferences::GetBool("media.openUnsupportedTypeWithExternalApp")) {
- return false;
- }
-
- if (!mError) {
- return false;
- }
-
- uint16_t errorCode = mError->Code();
- if (errorCode != MEDIA_ERR_SRC_NOT_SUPPORTED) {
- return false;
- }
-
- // If media doesn't start playing, we don't need to open it.
- if (mOwner->Paused()) {
- return false;
- }
-
- return true;
-#endif
+ // This was only something to check on Android. Stubbed now.
return false;
}
@@ -6204,13 +6183,6 @@ HTMLMediaElement::IsAllowedToPlay()
if (!mHasUserInteraction &&
!IsAutoplayEnabled() &&
!EventStateManager::IsHandlingUserInput()) {
-#if defined(MOZ_WIDGET_ANDROID)
- nsContentUtils::DispatchTrustedEvent(OwnerDoc(),
- static_cast<nsIContent*>(this),
- NS_LITERAL_STRING("MozAutoplayMediaBlocked"),
- false,
- false);
-#endif
return false;
}