Bug 1244768 part 10 - OpenUnsupportedMediaWithExtenalAppIfNeeded() should not check whether the element is paused or not; r?jwwang, alwu
If a element is fed with unsupported content, the element should be unable to play it and so should remain paused.
MozReview-Commit-ID: 1EuL7AUFILu
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -6555,21 +6555,16 @@ HTMLMediaElement::OpenUnsupportedMediaWi
if (!Preferences::GetBool("media.openUnsupportedTypeWithExternalApp")) {
return;
}
if (!HaveFailedWithSourceNotSupportedError()) {
return;
}
- // If media doesn't start playing, we don't need to open it.
- if (mPaused) {
- return;
- }
-
nsContentUtils::DispatchTrustedEvent(OwnerDoc(), static_cast<nsIContent*>(this),
NS_LITERAL_STRING("OpenMediaWithExternalApp"),
true,
true);
}
static const char* VisibilityString(Visibility aVisibility) {
switch(aVisibility) {