about summary refs log tree commit diff
path: root/pkgs/aszlig/firefox/mute-by-default.patch
blob: 337ccf0f1508969b6ca214e0f4f6a37057088af6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/dom/media/autoplay/AutoplayPolicy.cpp b/dom/media/autoplay/AutoplayPolicy.cpp
index 8da0e60ead..90991bf1dc 100644
--- a/dom/media/autoplay/AutoplayPolicy.cpp
+++ b/dom/media/autoplay/AutoplayPolicy.cpp
@@ -69,18 +69,6 @@ static uint32_t SiteAutoplayPerm(nsPIDOMWindowInner* aWindow) {
 }
 
 static bool IsWindowAllowedToPlayByUserGesture(nsPIDOMWindowInner* aWindow) {
-  if (!aWindow) {
-    return false;
-  }
-
-  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;
-  }
   return false;
 }