Restrict number of concurrent uses of an audio input device in a child process

RESOLVED FIXED in Firefox 64

Status

()

enhancement
P2
normal
Rank:
15
RESOLVED FIXED
11 months ago
9 months ago

People

(Reporter: pehrsons, Assigned: padenot)

Tracking

60 Branch
mozilla64
Unspecified
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox64 fixed)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Bug 1404977 made it possible to access an audio input device more than once per child process.

This has revealed issues (bug 1480348) with pulseaudio or our cubeb backend for pulseaudio or the combination thereof.

Try with [1]. The more open audio streams one has, the longer the next one takes to resolve, eventually busting pulseaudio.

For now we can try to relieve this issue by putting an artificial limit close to the old technical limit of 1 concurrent uses.

Note that it's always been possible to achieve the same symptoms by opening streams in different child processes. However with the possibility for an application to trigger this with windows and/or iframes the trigger surface has greatly increased.


[1] https://codepen.io/SingingTree/pen/BxWePB
If you are going to add a restriction here, you should add it just to Linux. This creates an inconsistency in how various versions of Fx behave, but that's less important than having an inconsistency with the spec.
Rank: 15
Priority: -- → P2
Assignee: nobody → padenot
Comment on attachment 9008080 [details]
Bug 1481152 - Restrict to a single input stream per process on Linux, when using PulseAudio and audio remoting is enabled. r?pehrsons

Andreas Pehrson [:pehrsons] has approved the revision.
Attachment #9008080 - Flags: review+
Attachment #9008080 - Attachment description: Bug 1481152 - Allow up to two audio input stream per process on Linux, when using PulseAudio. r?pehrsons → Bug 1481152 - Restrict to a single input stream per process on Linux, when using PulseAudio and audio remoting is enabled. r?pehrsons
Pushed by padenot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ae4bb7377de2
Restrict to a single input stream per process on Linux, when using PulseAudio and audio remoting is enabled. r=pehrsons
https://hg.mozilla.org/mozilla-central/rev/ae4bb7377de2
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Attachment #9005135 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.