Auto-play policy broken on browser reload
Reported by
mqu...@gmail.com,
Oct 27 2017
|
||||||
Issue descriptionChrome Version : 61.0.3163.100 OS Version: 10.0 URLs (if applicable) : https://www.pcworld.com/article/3159104/software/how-to-turn-off-chrome-notifications-and-stop-websites-from-bugging-you.html What steps will reproduce the problem? 1. Under chrome://flags/#autoplay-policy select "user activation is required" 2. Visit https://www.pcworld.com/article/3159104/software/how-to-turn-off-chrome-notifications-and-stop-websites-from-bugging-you.html The inline video does not autoplay 3. Refresh the page with ctrl+r What is the expected result? Upon page reload, the video does not play What happens instead of that? The video starts playing immediately after page reload Please provide any additional information below. Attach a screenshot if possible. UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
,
Nov 1 2017
Did you restart the browser after setting the policy?
,
Nov 1 2017
@brajkumar: I don't understand. You are confirming that the video IS playing automatically, but that is the *very* bug I am reporting! @mlamouri: Yes, otherwise the video would have autoplayed the first time around.
,
Nov 1 2017
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 1 2017
What's happening here is that when the user presses Ctrl+R, the page received user gesture, allowing autoplay. The refresh is seen as a same-origin navigation, therefore the page after the refresh is allowed to autoplay on load. This is quite an interesting edge case as we can't differentiate regular keyboard inputs and Ctrl+R for the user activation and it's a quite surprising side-effect for the user. One simple solution would be to reset the document user gesture on refresh. It could surprise users in a few cases but might be less painful.
,
Nov 1 2017
@mlamouri that's what I initially thought, but I don't think that's the bug. If instead of reloading the page you relaunch Chrome (for example, change a flag then choose "relaunch chrome now" or kill chrome and restore tabs) and have it configured such that the last-opened pages will be restored on relaunch, the video will also autoplay although no gesture was performed.
,
Nov 1 2017
I did not try with relauching but I tried the following: 1. reload from browser UI; 2. reload with F5; 3. reload with Ctrl+R. #2 and #3 both end up with the video playing. #1 does not.
,
Nov 6 2017
I tried with relaunching after changing Chrome flags on 64.0.3253.3 and the video did not play on relaunch.
,
Jan 19 2018
I started working on this. I think we will break "user activation" transmission when reloading. I think it would be a less bad experience to have to re-click play over having a website autoplay when reloading. Doing the right thing wouldn't be trivial so we have to go for the compromise in M65 :(
,
Jan 30 2018
Should be fixed by: https://chromium.googlesource.com/chromium/src.git/+/f7246b9e21cd0065f3b5eb4699c90c61b8e8008c
,
Jan 30 2018
Thank you very much, and I appreciate the effort put into identifying the "ideal" solution here. I believe there may be another bug where ctrl+(tab, tab, tab) i.e. holding down control and pressing tab or shift+tab to navigate causes a video to autoplay if its tab is momentarily switched to. I haven't tested this thoroughly, though. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by brajkumar@chromium.org
, Nov 1 2017Components: Internals>Media>Video
Labels: Needs-Feedback Needs_MileStone