-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert the removal of an option to block autoplay from Chrome #791
Comments
Removals in commit history: |
Those commits are about "muted autoplay", not autoplay as a whole. We need to look deeper into how and why this was changed. Related: https://www.theregister.com/2020/09/08/google_chrome_autoplay/ |
I think he's right, the only real change is here, chromium/chromium@f286512#diff-817bdb7b9f231d251a99cdb41048f4b4592efa614697f02b532c88bfc30aa3edL313 everything else is for options (and bringing them to the rendering process), as well as for testing.
i tried and it seems autoplay is off (tested with youtube and reloading page, the goal is perhaps to block all videos making user gesture mandatory?). |
Ok, so the commits mention "muted autoplay" but they are actually removing access to all of the autoplay settings. @uazo what I think we should restore is also the |
yes, but maybe we should wait for the refactoring of the content settings code (by the chromium team) to finish. |
Do you have an issue link for that refactoring? I am not aware. |
you're right, It's not a refactoring, but a revert of a revert! next time I research before writing wrong things. https://chromium-review.googlesource.com/c/chromium/src/+/2247730 if you agree I'll try to restore that option. |
This seems to be a replacement for PrefServiceBridge, it does not seem a big change.
We should get back the Media site setting to toggle autoplay, is that what you mean? |
yes, we can try to make a revert of #791 (comment) |
@uazo yes, that would be great |
@csagan5 at what point of the bromite-patch list would you like the new patch? |
@uazo you can always append them; I will put them before the automated domain substitution before release. |
@uazo Can it be possible to block autoplay for twitter videos &/or Gifs ? |
@uazo there is also in the code something called In the commit chromium/chromium@0403932 it says:
So this is independent from the other one, somehow. And it is more focused on sound. Can you look into |
https://www.twitter.com/UniverseIce/status/1324993628071108608 Edit:- |
Yes, seems related to sound context:
here some explanation (console warning):
Testing with https://uazo.github.io/bromite/autoplay.html I've the following error: (source https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/media/autoplay_policy.cc;l=318) seems fine, right? |
Fixed in |
It depends. This is the enum:
Is |
Yes sure. but "The document needs to have received a user activation" is the same behavior we did for autoplay videos (and at that point we should think about modifying that too). |
No, videos in Bromite need the play button to be clicked. That does not correspond to "document needs to have received a user activation" but rather to "a local user gesture on the element is required." Unless I am missing something here?
Then it will not play. What % of sites have audio without controls? I think it is a minority to ignore.
It is very easy to convert it to a flag, if there is not already one.
The maintenance of a rewritten content settings UI would take considerable effort over time, no? Would you commit to this type of maintenance? The current version still requires less maintenance than a rewrite. What do you mean by selective history? Storing history only for certain websites? Sounds interesting. |
I might be wrong, I do not think so. tomorrow I check the code but try to open a video on youtube and click on the privacy popup, the video starts and you did not click on it.
I refer to what you said (and that I agree with you), if there is a user who can complain it is necessary to foresee it.
I meant a content setting, so we can activate the ability to exclude broken sites
I don't know, we should try.
Of course.
I trust you, you have more experience, but I would like to try, let's see if I convince you, just have patience, I'd like to finish other things first
yes, just that. |
In this case they can change the flag and restore the audio autoplay. In that case it was different, our UI change was not giving the user any option to get back the upstream behaviour.
Try with Vimeo and others as well. I will open a new issue (#804) since this one is already fixed. |
@csagan5 @uazo two issues with this, one being a bug and the other is an opinion. Bug Opinion For the past few years, there's been a growing trend of to use "video wallpapers". Here's my employer's site with a "video wallpaper" for reference: https://brooklynfoundry.com. From a browsing experience, I don't mind these "video wallpapers" because they act as a design element -- but I loathe sites (e.g news sites) that have a fixed player and block the screen. Prior to iOS 10, this "video wallpaper" pattern was seldom used when a mobile device was detected. But once Google and Webkit's autoplay policies became aligned in 2016, we started implementing these more and more. I'm not a fan of them on devices that are only using mobile-data (it's inconsiderate to waste non-unlimited users money for "design"), but I'm not the one calling those types of shots. |
thanks for reporting, I had not noticed!
you can see it from another point of view: if it is a choice of the user, it must be respected, also thinking that autoplay may be an accessibility issue for people with disabilities. |
I see it no different than the permission for microphone access; in Bromite we are simply going to ignore the "media engagement index" and let the user explicitly decide. |
Is your feature request related to privacy?
Yes
Is there a patch available for this feature somewhere?
No, but I believe a quick search in chromium git will avail for a quick undoing of the change.
JS based solutions are available https://github.com/Eloston/disable-html5-autoplay
Describe the solution you would like
Revert to autoplay blocking the way it was done in chrome 7x.x, where autoplay block was blocking all videos.
Android Chrome 82.x+ will still play videos even if they are autoplay blocked if they pass some obscure "engagement score:" https://www.theregister.com/2020/09/08/google_chrome_autoplay/
Describe alternatives you have considered
Reverting to older versions works
The text was updated successfully, but these errors were encountered: