зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 32aea59e702f (bug 659285) for bustage on a CLOSED TREE
This commit is contained in:
Родитель
9892d81601
Коммит
3d9b9475f3
|
@ -105,8 +105,6 @@ static PRLogModuleInfo* gMediaElementEventsLog;
|
|||
#include "nsIPermissionManager.h"
|
||||
#include "nsContentTypeParser.h"
|
||||
|
||||
#include "mozilla/EventStateManager.h"
|
||||
|
||||
using namespace mozilla::layers;
|
||||
using mozilla::net::nsMediaFragmentURIParser;
|
||||
|
||||
|
@ -2185,13 +2183,6 @@ HTMLMediaElement::ResetConnectionState()
|
|||
void
|
||||
HTMLMediaElement::Play(ErrorResult& aRv)
|
||||
{
|
||||
// Prevent media element from being auto-started by a script when
|
||||
// media.autoplay.enabled=false
|
||||
if (!IsAutoplayEnabled() && !EventStateManager::IsHandlingUserInput() && !nsContentUtils::IsCallerChrome()) {
|
||||
LOG(PR_LOG_WARN, ("%p Blocked attempt to autoplay media.", this));
|
||||
return;
|
||||
}
|
||||
|
||||
StopSuspendingAfterFirstFrame();
|
||||
SetPlayedOrSeeked(true);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче