Closed
Bug 1443612
Opened 7 years ago
Closed 7 years ago
Pre-start cubeb before content sandboxing if media.cubeb.sandbox is false
Categories
(Core :: Audio/Video: cubeb, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla60
People
(Reporter: jld, Assigned: jld)
References
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
kinetik
:
review+
lizzard
:
approval-mozilla-release-
|
Details |
The cubeb preloading from bug 1259508, removed in bug bug 1405877, is still relevant if media.cubeb.sandbox is false; we should restore that code, conditional on the pref. See bug 1434392 comment #7 for a longer explanation.
There seems to be something else going on here, because there are reports of a regression between 57 and 58 with similar effects — when pulseaudio isn't already started, it fails to start and complains about fork(); see bug 1422073 comment #7 for an example. I haven't been able to find anything relevant that would have changed in 58.
(Also complicating things, there are systems where the PulseAudio client won't fork the daemon directly, but instead cause a service manager like systemd to do so; see bug 1434392 comment #9. So this may not be reproducible on arbitrary distros just with strategic use of `pulseaudio --kill`.)
But I think this should still be fixed.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8956611 [details]
Bug 1443612 - Pre-start cubeb before content sandboxing if not remoting audio.
https://reviewboard.mozilla.org/r/225540/#review231426
Thanks for fixing this!
Attachment #8956611 -
Flags: review?(kinetik) → review+
Pushed by jedavis@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/94db8d320385
Pre-start cubeb before content sandboxing if not remoting audio. r=kinetik
Comment 4•7 years ago
|
||
It'd be great to get this into beta if we can.
Comment 5•7 years ago
|
||
59 is already in the RC phase, so this would need a pretty compelling argument for uplift at this point.
status-firefox58:
--- → wontfix
status-firefox59:
--- → fix-optional
status-firefox60:
--- → affected
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
![]() |
||
Updated•7 years ago
|
Priority: -- → P1
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #5)
> 59 is already in the RC phase, so this would need a pretty compelling
> argument for uplift at this point.
This patch also isn't enough in most cases; see bug 1434392 comment #10. Uplifting this patch *and* backing out bug 1412464 and bug 1408497 should work; I can test that, in case it's worth trying to get this into a point release.
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Jed Davis [:jld] (⏰UTC-7) from comment #7)
> should work; I can test that
It works.
https://github.com/mozilla/gecko-dev/compare/release...jld:pulseaudio-for-59
Assignee | ||
Comment 9•7 years ago
|
||
Comment on attachment 8956611 [details]
Bug 1443612 - Pre-start cubeb before content sandboxing if not remoting audio.
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1412464 and bug 1405877.
[User impact if declined]: Audio won't work in some less common environments (where pulseaudio isn't started when logging in). This has been broken since the 58 release, but we did get several reports about it. There is a workaround, but it's not immediately obvious.
[Is this code covered by automated tests?]: I don't think we test this particular case (where the pulseaudio daemon isn't already running) but sandboxing and WebAudio have tests.
[Has the fix been verified in Nightly?]: Nightly has audio remoting preffed on so it's not affected, and this patch doesn't do anything there. I've manually verified the fix against mozilla-release (and against m-c with the pref flipped).
[Needs manual test from QE? If yes, steps to reproduce]: STR is to use a distribution that doesn't have systemd launch pulseaudio (I used Debian 8), run `pulseaudio --kill` if needed, and then start Firefox and try to use WebAudio.
[List of other uplifts needed for the feature/fix]: Back out bug 1412464 and bug 1408497. This part is properly bug 1434392, but the patch I wrote there won't backport easily to 59, and it's lower-risk to back out the regressing changes instead. The backouts may have merge conflicts; the GitHub link I posted in comment #8 shows how things should look. I could attach patches for the backouts to bug 1434392 and flag them separately if that would work better.
[Is the change risky?]: Low risk.
[Why is the change risky/not risky?]: The proposed changes restore how things worked in 58 (this patch) and 57 (the backouts to address bug 1434392).
[String changes made/needed]: None
If it's too late for 59.0, I'd like this to be considered for 59.0.1.
Attachment #8956611 -
Flags: approval-mozilla-release?
Comment 10•7 years ago
|
||
It's too late for 59.0, but we can keep this open for a potential dot release.
We could also describe the workaround, ideally in SUMO, and write a "known issue" release note. What do you think? Can you write the SUMO page and suggest wording?
tracking-firefox59:
--- → +
Flags: needinfo?(jld)
Comment 11•7 years ago
|
||
On re-reading this, it seems a bit too complex and not high impact enough for a dot release. I would prefer that we give a good description of the workaround for affected users.
Updated•7 years ago
|
Attachment #8956611 -
Flags: approval-mozilla-release? → approval-mozilla-release-
Assignee | ||
Comment 12•7 years ago
|
||
I've drafted a SUMO article, currently awaiting review: https://support.mozilla.org/en-US/kb/no-sound-firefox-59-linux
I tried to include some technical details for those who want them but still make the article readable otherwise, but it will probably need some editing.
Flags: needinfo?(jld)
Comment 13•7 years ago
|
||
(In reply to Jed Davis [:jld] (⏰UTC-6) from comment #12)
> I've drafted a SUMO article, currently awaiting review:
> https://support.mozilla.org/en-US/kb/no-sound-firefox-59-linux
>
> I tried to include some technical details for those who want them but still
> make the article readable otherwise, but it will probably need some editing.
I'll NeedInfo Joni Savage, the SUMO Content Manager.
Flags: needinfo?(jsavage)
Comment 14•7 years ago
|
||
Thanks for looping me in, Alice, and for writing the article, Jed. I've published it with some minor edits.
Flags: needinfo?(jsavage)
You need to log in
before you can comment on or make changes to this bug.
Description
•