summaryrefslogtreecommitdiff
path: root/dom/html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-03-11 06:43:10 +0000
committerMoonchild <moonchild@palemoon.org>2021-03-11 06:43:10 +0000
commitcc8a7e3f7b7d40967d2dd537b6343c87ba9138c7 (patch)
treebe5418a62494a956557ac0e769773ed2d558fdde /dom/html
parentdce8a3300b191eeebee6f15f3f6e0f5a12a177b1 (diff)
downloaduxp-cc8a7e3f7b7d40967d2dd537b6343c87ba9138c7.tar.gz
Issue #1053 - Remove MOZ_WIDGET_ANDROID and IDB_MOBILE
Diffstat (limited to 'dom/html')
-rw-r--r--dom/html/HTMLMediaElement.cpp30
-rw-r--r--dom/html/nsIFormControl.h6
2 files changed, 1 insertions, 35 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;
}
diff --git a/dom/html/nsIFormControl.h b/dom/html/nsIFormControl.h
index 0a844a5671..067ac7cae8 100644
--- a/dom/html/nsIFormControl.h
+++ b/dom/html/nsIFormControl.h
@@ -265,12 +265,6 @@ nsIFormControl::IsSingleLineTextControl(bool aExcludePassword, uint32_t aType)
aType == NS_FORM_INPUT_SEARCH ||
aType == NS_FORM_INPUT_TEL ||
aType == NS_FORM_INPUT_URL ||
- // TODO: those are temporary until bug 773205 is fixed.
-#if defined(MOZ_WIDGET_ANDROID)
- // On Android, date/time input appears as a normal text box.
- aType == NS_FORM_INPUT_TIME ||
- aType == NS_FORM_INPUT_DATE ||
-#endif
aType == NS_FORM_INPUT_MONTH ||
aType == NS_FORM_INPUT_WEEK ||
aType == NS_FORM_INPUT_DATETIME_LOCAL ||