Closed Bug 1427966 Opened 7 years ago Closed 5 years ago

Disabling autoplay on Youtube does not persist for subsequent videos

Categories

(Core :: Audio/Video: Playback, defect, P3)

57 Branch
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
platform-rel --- ?

People

(Reporter: manish.giri.me, Unassigned, NeedInfo)

Details

(Whiteboard: [platform-rel-youtube])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36 Steps to reproduce: 1. Played a video on Youtube 2. Disabled Autoplay while the video was playing 3. Clicked on another video after current video finished Actual results: When the next video loaded, Autoplay was again enabled. No matter how many times you disable it, it remains enabled for each new video clicked, or even on youtube opened in new tabs. Expected results: Once Autoplay is disabled, it should remain disabled, no matter if it's a new video on the same tab, or a new video on a new tab, etc, just like in Chrome.
OS: Linux debain 4.10.0-38-generic #42~16.04.1-Ubuntu x86_64 GNU/Linux Distribution: elementary OS 0.4.1 Loki Firefox version:Firefox 57.0.1 (64-bit) I tried this bug on my firefox version and this bug is not reproduced and its resolved. [bugday-20170108]
(In reply to Amit singh from comment #1) > OS: Linux debain 4.10.0-38-generic #42~16.04.1-Ubuntu x86_64 GNU/Linux > Distribution: elementary OS 0.4.1 Loki > Firefox version:Firefox 57.0.1 (64-bit) > I tried this bug on my firefox version and this bug is not reproduced and > its resolved. > [bugday-20170108] This bug is still occurring for me in 57.0.4, safe mode
(In reply to Colin from comment #2) > (In reply to Amit singh from comment #1) > > OS: Linux debain 4.10.0-38-generic #42~16.04.1-Ubuntu x86_64 GNU/Linux > > Distribution: elementary OS 0.4.1 Loki > > Firefox version:Firefox 57.0.1 (64-bit) > > I tried this bug on my firefox version and this bug is not reproduced and > > its resolved. > > [bugday-20170108] > > This bug is still occurring for me in 57.0.4, safe mode In which OS you are getting this problem
Tested on Mac OS X 10.13, Ubuntu 16.04 x64 and Windows 10 x64 using Firefox RC 57.0.4 and the latest Nightly 59.0a1 (2018-01-09) and could not reproduce the issue. I opened a new video in the same tab, in a new tab and a new window. Could you please retest this issue using a new clean Firefox profile (https://goo.gl/AR5o9d) and report back the results?
Flags: needinfo?(manish.giri.me)
(In reply to Amit singh from comment #3) > (In reply to Colin from comment #2) > > (In reply to Amit singh from comment #1) > > > OS: Linux debain 4.10.0-38-generic #42~16.04.1-Ubuntu x86_64 GNU/Linux > > > Distribution: elementary OS 0.4.1 Loki > > > Firefox version:Firefox 57.0.1 (64-bit) > > > I tried this bug on my firefox version and this bug is not reproduced and > > > its resolved. > > > [bugday-20170108] > > > > This bug is still occurring for me in 57.0.4, safe mode > > In which OS you are getting this problem I'm using Ubuntu, although, after re-reading the bug description, I think I may be experiencing a slightly different issue. Here's whats happening for me 1. Disable video autoplay 2. Open a youtube page with an embeded video. Video does not auto-play (as expected) 3. Play video 4. subsequent videos played automatically (via youtubes "autoplay" feature), even though it's a new page, new video, and video auto-play is disabled in about:config I can create a new bug since this seems to be a slightly different issue
(In reply to Colin from comment #5) > (In reply to Amit singh from comment #3) > > (In reply to Colin from comment #2) > > > (In reply to Amit singh from comment #1) > > > > OS: Linux debain 4.10.0-38-generic #42~16.04.1-Ubuntu x86_64 GNU/Linux > > > > Distribution: elementary OS 0.4.1 Loki > > > > Firefox version:Firefox 57.0.1 (64-bit) > > > > I tried this bug on my firefox version and this bug is not reproduced and > > > > its resolved. > > > > [bugday-20170108] > > > > > > This bug is still occurring for me in 57.0.4, safe mode > > > > In which OS you are getting this problem > > I'm using Ubuntu, although, after re-reading the bug description, I think I > may be experiencing a slightly different issue. Here's whats happening for me > > 1. Disable video autoplay > 2. Open a youtube page with an embeded video. Video does not auto-play (as > expected) > 3. Play video > 4. subsequent videos played automatically (via youtubes "autoplay" feature), > even though it's a new page, new video, and video auto-play is disabled in > about:config > > I can create a new bug since this seems to be a slightly different issue Actually it looks like i'm getting the exact same issue. videos play automatically when after following youtube links, but do not play automatically if i refresh the page
platform-rel: --- → ?
Whiteboard: [platform-rel-youtube]
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Thanks for the report. We're improving the autoplay blocking in Firefox, but the new implementation isn't complete yet. You may be seeing a side-effect of that. Can you please try Firefox Nightly (https://nightly.mozilla.org) with both media.autoplay.enabled = false, and media.autoplay.enabled.user-gestures-needed = true set in about:config and see if it still reproduces there?
Priority: -- → P3
(In reply to Ralph Giles (:rillian) | needinfo me from comment #7) > Thanks for the report. We're improving the autoplay blocking in Firefox, but > the new implementation isn't complete yet. You may be seeing a side-effect > of that. Can you please try Firefox Nightly (https://nightly.mozilla.org) > with both media.autoplay.enabled = false, and > media.autoplay.enabled.user-gestures-needed = true set in about:config and > see if it still reproduces there? Issue is still occurring for me with Firefox 60.0a1 (2018-02-22) (64-bit) when media.autoplay.enabled = false and media.autoplay.enabled.user-gestures-needed = true

I am providing precise directions for Fx 67, which consistently repro the problem, there should be no issue in confirming this, so please do, and fix.

  • Fx 67.0.0 x64, win7 sp1 x64, new profile
  • start Fx with a new profile
  • load a youtube video page directly via the urlbar
  • the urlbar shows the play-blocked icon and the video does not play
  • click on any video from the "up next"/related column
  • the urlbar still shows the play-blocked icon, but the new video plays

This has to do with the new youtube interface not doing full page reloads on video link clicks. Video pages are loaded in-place. So you need to make sure you are getting the new interface (has to look as it does in chrome). A full page reload (a video link click in the old interface or a page refresh in the new) will not repro this.

(In reply to bughit from comment #9)

I am providing precise directions for Fx 67, which consistently repro the problem, there should be no issue in confirming this, so please do, and fix.

  • Fx 67.0.0 x64, win7 sp1 x64, new profile
  • start Fx with a new profile
  • load a youtube video page directly via the urlbar
  • the urlbar shows the play-blocked icon and the video does not play
  • click on any video from the "up next"/related column
  • the urlbar still shows the play-blocked icon, but the new video plays

This has to do with the new youtube interface not doing full page reloads on video link clicks. Video pages are loaded in-place. So you need to make sure you are getting the new interface (has to look as it does in chrome). A full page reload (a video link click in the old interface or a page refresh in the new) will not repro this.

Do you consider this a different bug?

I have same problem. the autoplay (in youtube) is blocked ONLY when it is redirect from other web, e.g. google search. if we open videos directly from youtube website, either any video from the column, or search video, then it will autoplay although the block autoplay icon is there.

Please fix this bug.

We only block autoplay before site hasn't been activated by user gesture (eg. mouse click, keyboard press). If user has activated site, media is allowed to autoplay. If user would like to switch this default autoplay policy, which we call user-gesture-activation model, to click-to-play model, they can set the pref media.autoplay.enabled.user-gestures-needed to false. However, this feature is not compatible with all websites, and might break some sites.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX

We only block autoplay before site hasn't been activated by user gesture

  • This argument is a legalistic loophole that completely violates the spirit of this feature.
  • A youtube video click is not an activation gesture, it is effectively a navigation to a new page with a new url.
  • That this nav is done in-place is an implementation detail the user should not be expected to know or understand.
  • From the user perspective a new video page is being loaded, after which, the urlbar shows playback is blocked, the user expects playback to be blocked, but it's not, so a clear bug.

the pref media.autoplay.enabled.user-gestures-needed to false

This makes no difference on youtube.

How can you claim that firefox has an autoplay-blocking feature when it's completely broken on youtube (by far the largest video site)? Is it supposed to be demoware?

Every video click on youtube autoplays, this is precisely what this feature is supposed to prevent.

(In reply to bughit from comment #13)

This makes no difference on youtube.

How can you claim that firefox has an autoplay-blocking feature when it's completely broken on youtube (by far the largest video site)? Is it supposed to be demoware?

Every video click on youtube autoplays, this is precisely what this feature is supposed to prevent.

I'm pretty sure it works on youtube. But it seems there was something missing (or a regression) in Firefox 67, I have tried to use Beta68, Develop Edition68 and Nightly 69, none fo them have this issue.

Could you help me to check whether other versions firefox work for you?

Thanks.

Flags: needinfo?(bughit.github)

Could you help me to check whether other versions firefox work for you?

Why do you only make distribution zips available for candidate builds?

firefox-68.0b10 and current nightly have the same problem by default, but media.autoplay.enabled.user-gestures-needed does help.

However the default where every video click auto-plays should be considered broken.

Flags: needinfo?(bughit.github)
You need to log in before you can comment on or make changes to this bug.