about summary refs log tree commit diff
path: root/pkgs/aszlig/firefox/mute-by-default.patch
blob: 67e6bce45578853e011c9fd483a0255c4353f9f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/dom/media/autoplay/AutoplayPolicy.cpp b/dom/media/autoplay/AutoplayPolicy.cpp
index 77c53ce58acd..688af016a72c 100644
--- a/dom/media/autoplay/AutoplayPolicy.cpp
+++ b/dom/media/autoplay/AutoplayPolicy.cpp
@@ -78,15 +78,6 @@ static bool IsWindowAllowedToPlay(nsPIDOMWindowInner* aWindow) {
     return true;
   }
 
-  WindowContext* topContext =
-      aWindow->GetBrowsingContext()->GetTopWindowContext();
-  if (topContext && topContext->HasBeenUserGestureActivated()) {
-    AUTOPLAY_LOG(
-        "Allow autoplay as top-level context has been activated by user "
-        "gesture.");
-    return true;
-  }
-
   Document* currentDoc = aWindow->GetExtantDoc();
   if (!currentDoc) {
     return false;