Closed Bug 1685284 Opened 3 years ago Closed 3 years ago

Snap builds installed with --dangerous does not get permission to play audio

Categories

(Firefox Build System :: Task Configuration, defect)

Desktop
Linux
defect

Tracking

(firefox86 affected)

RESOLVED INVALID
Tracking Status
firefox86 --- affected

People

(Reporter: dcicas, Unassigned)

References

(Blocks 1 open bug)

Details

Affected versions

  • Fx 84.0.2 snap
    Fx 78.6.1esr snap

Affected platforms

  • ubuntu 18.04

Steps to reproduce

  1. Download Firefox 84.0.2/78.6.1 snap from candidates directory
  2. Install Firefox snap using sudo snap install --dangerous firefox-84.0.2.snap.
  3. Run snap run firefox
  4. Open Firefox and reach youtube.com
  5. Open any video.

Expected result

  • Video starts with audio playback.

Actual result

  • Video start but no audio is heard.

Regression range
This issue only occurs for these 2 snap builds.

Additional notes

  • This issue occurred on 2 separate ubuntu desktop computers. The third one did not reproduce the issue.
  • After we did some digging, Firefox snap does not have permission to play audio. On the third Ubuntu no manual permission was given to play audio, but it was set to allow by default.
  • This issue was reproduced also on Fx 80.0 snap with this method.

AFAICT we're supposed to get audio playback permission through https://snapcraft.io/docs/pulseaudio-interface

Component: Installer → Task Configuration
Product: Firefox → Firefox Build System
Has STR: --- → yes

Mike, Mihai, do we have an owner for snap issues at the moment?

Flags: needinfo?(mtabara)
Flags: needinfo?(mozilla)
Blocks: snap

Mike, Mihai, do we have an owner for snap issues at the moment?

Unfortunately not, but we do have some community folks helping.

It's unclear if this is a regression?

Olivier, any thoughts on this one?

Flags: needinfo?(olivier)
Flags: needinfo?(mtabara)
Flags: needinfo?(mozilla)

I would think this isn't a regression, rather working as intended.
When using the --dangerous flag to install a local .snap file, the snap store isn't involved, and therefore assertions that allow auto-connection of certain interfaces (like the pulseaudio one) aren't available.
If this is the recommended way of testing snap candidates, you will need to add a few manual connections to the instructions to simulate a working installation from the store:

snap connect firefox:avahi-observe
snap connect firefox:browser-sandbox
snap connect firefox:camera
snap connect firefox:cups-control
snap connect firefox:pulseaudio
snap connect firefox:removable-media
snap connect firefox:u2f-devices

I guess we'll close this then.

Daniel: Can you update the Snap testing document with Olivier's comment?

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Flags: needinfo?(olivier)

Hello,

I update our testing instructions for snap, with the above comment.

You need to log in before you can comment on or make changes to this bug.