Closed Bug 1809211 Opened 2 years ago Closed 2 years ago

Always show the block autoplay permission in order to let user add specific sites to their setting list easier

Categories

(Firefox :: Site Permissions, enhancement)

Firefox 108
enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sopor, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0

Steps to reproduce:

  1. Block audio for Autoplay in Settings/Privacy & Security/Permissions.
  2. Go to a site that have a video that autoplay (use the link below).
  3. The autoplay permission button is not there.
  4. To fix this i need to go to Settings/Privacy & Security/Permissions and open Autoplay and block 'Audio and video'.
  5. Reload the page (with the video on) and now the autoplay button is visible and it will block audio and video.
  6. Now back to Settings/Privacy & Security/Permissions and Autoplay and change it to block audio (i don't want to block audio and video on all sites only this site).
  7. Reload the page (with the video on) and press the autoplay button that will now show block audio.
  8. Now i can change it to 'block audio and video' for that site and keep my 'block audio' as default for other sites.

Actual results:

I have 'Autoplay' set to 'Block audio' as default for all sites and that make the audio not play, but if i now want to block both audio and video for a specific site it isn't easy to do that because the autoplay permission button isn't visible.

Expected results:

The Autoplay permission should be visible whatever Autoplay is set to.
It shouldn't be that hard to change autoplay for a site.
When I have done this one time for a site it will then always show the autoplay button even if i remove the override default from Settings/Privacy & Security/Permissions/Autoplay. I don't know why i need to go through these steps every time a want to change autoplay for a specific site.

Here is one of the sites i have seen this issue on:
https://www.aftonbladet.se/nojesbladet/a/4qynPV/kollapsade-av-obotlig-sjukdom

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video
Product: Firefox → Core

Update:
I was wrong about the:
"When I have done this one time for a site it will then always show the autoplay button even if i remove the override default from Settings/Privacy & Security/Permissions/Autoplay. I don't know why i need to go through these steps every time a want to change autoplay for a specific site."

It seems that after restarting Firefox the Autoplay permission button will disappear if the site doesn't have a custom permission for the autoplay.

Type: defect → enhancement
Component: Audio/Video → Site Permissions
Product: Core → Firefox
Summary: autoplay set to 'block audio' as default make it very hard to add a site that block both audio and video → Always show the block autoplay permission in order to let user add specific sites to their setting list easier

The permission is set when the GloballyAutoplayBlocked event is dispatched here: https://searchfox.org/mozilla-central/rev/a156a65ced2dae5913ae35a68e9445b8ee7ca457/browser/base/content/tabbrowser.js#6065,6072
This causes the permission item to appear.
This means that the autoplay option only appears when we blocked autoplay. If a website plays a video without audio per our default setting we don't block that.

I don't think we should change this behavior because it would lead to us showing the permissions panel more frequently, even if autoplay wasn't actually blocked. The permissions panel isn't meant for managing all permissions for a site but rather revoking / adjusting custom permissions which have been set.
For faster site-specific adjustment you can use the permissions tab in the page info window. See this help article: https://support.mozilla.org/en-US/kb/block-autoplay

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.