Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 7e991d77bdd22a814d9bfd80fd792b90f9037cd8..8e452e822e71528ae5e01ee30031866c07315c3a 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -275,7 +275,7 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& docum |
, m_loadState(WaitingForSource) |
, m_webLayer(0) |
, m_opaque(false) |
- , m_restrictions(RequirePageConsentToLoadMediaRestriction) |
+ , m_restrictions(NoRestrictions) |
, m_preload(MediaPlayer::Auto) |
, m_displayMode(Unknown) |
, m_cachedTime(MediaPlayer::invalidTime()) |
@@ -712,11 +712,6 @@ void HTMLMediaElement::loadInternal() |
// trigger the event. |
ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
- // Once the page has allowed an element to load media, it is free to load at will. This allows a |
- // playlist that starts in a foreground tab to continue automatically if the tab is subsequently |
- // put in the the background. |
- removeBehaviorRestriction(RequirePageConsentToLoadMediaRestriction); |
- |
// HTMLMediaElement::textTracksAreReady will need "... the text tracks whose mode was not in the |
// disabled state when the element's resource selection algorithm last started". |
if (RuntimeEnabledFeatures::videoTrackEnabled()) { |