Open Bug 1931762 Opened 1 year ago Updated 1 year ago

Disallow volume changes via Javascript

Categories

(Core :: Audio/Video: Playback, enhancement)

Firefox 132
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: jengelh, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0

Steps to reproduce:

Using a Linux system with Pipewire, visit some video pages and start playback. Be sure to set the volume to 100% using the slider on the video. Now inspect the HTML5 <video> element, e.g. using the F12 Developer Console, for the actual volume level.

Now observe this:

for https://www.youtube.com/watch?v=WsaCXltg-K8 , the volume as the DOM knows it is: 0.6614545222535068
for https://www.youtube.com/watch?v=IskTIty19Tw , the volume is 0.7943282347242815
for https://www.youtube.com/watch?v=zppfjeculUs , the volume is
1.0

(The float values seem consistent within each video, irrespective of YT's "Stable volume" feature being turned on or off.) So, Youtube apparently sets a volume that is possibly lower than 1.

To get ahold of this behavior, I would like to see the introduction of some knob (possibly in about:config) to suppress volume changes issued by DOM element change events / Javascript entirely.

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.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.