Some Videos can Autoplay even when Firefox is set to Block Audio & Video
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: bugzilla, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Steps to reproduce:
- Make a new browser profile and in settings, set Autoplay to "Block Audio & Video".
- Visit a site like https://www.laptopmag.com/reviews/samsung-galaxy-book-3-pro-360
- Scroll down until you see the 'Recommended Videos For You' section and the video preview loads.
- Pretend to do other 'user activity' things like switching tabs, clicking on the page, scrolling the page, switching away from Firefox and back again. (I'm not sure exactly what triggers it yet but I've provided an example video.)
Actual results:
The video eventually autoplays.
Expected results:
Video should never have played.
Additional notes:
I'm not sure if this autoplay is happening after a certain amount of time has passed or when a trusted event such as mouse click has occurred. I'm also not entirely sure what the intended scope of autoplay blocking is supposed to be, so it would be nice for a dev to confirm that.
The framework used to play the video is called JWPlayer.
I was able to reproduce in 110.0 111.0b2.
| Reporter | ||
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•3 years ago
|
||
Hi BoffinBrain, thanks for the report! I can reproduce this on my MacBook Pro by:
- opening https://www.laptopmag.com/reviews/samsung-galaxy-book-3-pro-360
- switch to another tab
- click a blank space on https://www.laptopmag.com/reviews/samsung-galaxy-book-3-pro-360
- switch to another tab again
- switch back to https://www.laptopmag.com/reviews/samsung-galaxy-book-3-pro-360
Hey Alastor, can you take a look?
Comment 4•3 years ago
|
||
I've reproduced also the issue using the latest Nightly 112.0a1 and Firefox 110.0 on Windows 10 x64 and Ubuntu 22.04.
Setting as NEW.
Comment 5•3 years ago
|
||
In our default blocking autoplay policy, Firefox only blocks autoplay before a page get activated by user gestures (eg. click), which means after clicking on the page, Firefox won't block any autoplay then. See here for more details.
| Reporter | ||
Comment 6•3 years ago
|
||
OK, thanks for explaining the defined behaviour. That makes a lot more sense now.
Updated•3 years ago
|
Description
•