Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Commit 14d24b4

Browse files
committed
Remove redundant autoplay check
Auditors: @bridiver, @bbondy
1 parent 4de63b4 commit 14d24b4

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

patches/master_patch.patch

+3-14
Original file line numberDiff line numberDiff line change
@@ -1988,24 +1988,13 @@ index df954bc8f81850101676b1c20f688ba0ba6b4b09..4683b2853bb467ec9f58616ede207d45
19881988
readonly attribute DOMString name;
19891989
+ readonly attribute DOMString path;
19901990
readonly attribute long long lastModified;
1991-
1991+
19921992
// Non-standard APIs
19931993
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
1994-
index b80b134d9db6ebee55af88010de2718ed46d1860..a2776152333fcc877d6528b3e2a64023243beedf 100644
1994+
index b80b134d9db6ebee55af88010de2718ed46d1860..cd1a7d38170bc705f882ef824d24f070ca7c2255 100644
19951995
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
19961996
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
1997-
@@ -2142,6 +2142,10 @@ bool HTMLMediaElement::autoplay() const {
1998-
}
1999-
2000-
bool HTMLMediaElement::shouldAutoplay() {
2001-
+ // MUON(darkdh): check autoplay setting
2002-
+ if (!isAutoplayAllowedPerSettings()) {
2003-
+ return false;
2004-
+ }
2005-
if (document().isSandboxed(SandboxAutomaticFeatures))
2006-
return false;
2007-
return m_canAutoplay && m_paused && autoplay();
2008-
@@ -3905,6 +3909,10 @@ void HTMLMediaElement::unlockUserGesture() {
1997+
@@ -3905,6 +3905,10 @@ void HTMLMediaElement::unlockUserGesture() {
20091998
}
20101999

20112000
bool HTMLMediaElement::isGestureNeededForPlayback() const {

0 commit comments

Comments
 (0)