зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443612 - Pre-start cubeb before content sandboxing if not remoting audio. r=kinetik
MozReview-Commit-ID: HBtBH5gCKR4 --HG-- extra : rebase_source : f1c693aa6b3d42d3cfaef724a8bc3afea8a03ba0
This commit is contained in:
Родитель
526a016c05
Коммит
63e31ca86c
|
@ -94,6 +94,7 @@
|
|||
#elif defined(XP_LINUX)
|
||||
#include "mozilla/Sandbox.h"
|
||||
#include "mozilla/SandboxInfo.h"
|
||||
#include "CubebUtils.h"
|
||||
#elif defined(XP_MACOSX)
|
||||
#include "mozilla/Sandbox.h"
|
||||
#endif
|
||||
|
@ -1671,6 +1672,11 @@ ContentChild::RecvSetProcessSandbox(const MaybeFileDesc& aBroker)
|
|||
// On Linux, we have to support systems that can't use any sandboxing.
|
||||
if (!SandboxInfo::Get().CanSandboxContent()) {
|
||||
sandboxEnabled = false;
|
||||
} else {
|
||||
// Pre-start audio before sandboxing; see bug 1443612.
|
||||
if (!Preferences::GetBool("media.cubeb.sandbox")) {
|
||||
Unused << CubebUtils::GetCubebContext();
|
||||
}
|
||||
}
|
||||
|
||||
if (sandboxEnabled) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче