4 ms·
Why not just block the audio by default? I don't care about the video, because any hostile website could still generate video by using gifs, or by playing a se
by amelius 8y ago
Why not just block the audio by default?
I don't care about the video, because any hostile website could still generate video by using gifs, or by playing a sequence of image frames using JavaScript.
- maxaf 8y agoVideo tends to eat deeply into the metered data plans of many Internet users.
- woogley 8y agothe alternatives (gifs, frames advanced by JS) are even more bandwidth-heavy
- Marsymars 8y agoIf sites escalate to gifs or frames advanced by JS, I'll escalate to blocking gifs or JS. Autoplaying video is not acceptable.
- maxaf 8y agoI like what Slack does for GIFs: there's some (not sure if configurable) size threshold above which the GIF won't auto-expand. This is something browsers could do in general.
- cesarb 8y agoThat assumes the browser can know the image's content-length before loading the whole image, which unfortunately isn't always possible.
- maxaf 8y agoYeah, that's fair, but is likely a corner case. How often do you see a finitely sized resource that doesn't get returned with a Content-Length response header? If push came to shove, a browser could simply stop reading & close the connection after consuming a certain number of bytes. GIFs are sequential things anyway, aren't they? I don't remember that detail.
- peterlk 8y agoBecause breaking sites like Soundcloud and Youtube by default seems like an overreaction to the abuse of auto-playing sound
- falcor84 8y agoTo me it seems to be a very reasonable reaction to a terrible situation. As long as it's easy to whitelist a domain, I'm very happy about this development.
- danShumway 8y agoThis change will already do that; Firefox doesn't whitelist sites by default. My personal preference would have been to mute tabs by default rather than blocking autoplay: - Sites can't detect a muted tab with JS, so they can't use it for tracking or block services behind it. - Nothing would break. Firefox did a pretty good job of minimizing the potential breakage from this change, but there are still edge cases and some weird logic that's required to address them. A muted tab is no different than you unplugging the speakers from your computer. It'll never cause a Javascript error. - It's simpler from a user perspective. You can already mute a tab. Why do we need another control that's meant to fulfill the same purpose? The counter-argument is that blocking autoplay is actually about saving data, but in reality: - The restrictions are trivial to bypass, since you can just start playing after the first user gesture/action. - Muted videos are still allowed to autoplay. So if you're trying to save data, it would still be a lot better to just have an option to block audio/video entirely, not just of the autoplaying variety. As far as I can tell, Mozilla basically got kind of railroaded into this implementation because that's what Google did, and that set the general narrative. Mozilla ended up with a better implementation than Google, but this is still one of those restrictions where I feel like 2-3 years from now we're going to look back and say, "yeah, this wasn't really thought through all the way."
- deleted 8y ago[deleted]
- StavrosK 8y ago> Why not just block the audio by default? If the objective is to stop autoplaying sound, why solve a more general problem rather than solve the actual problem?
- MiddleEndian 8y agoThe auto mute extension for Firefox does that petty well. New tabs can be at to open muted by default and you only need to use the standard ctrl m shortcut to unmute them.