mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
Remove sandbox ductwork conditional code.
This commit is contained in:
parent
aa9ae963f6
commit
c8462db202
44 changed files with 5 additions and 916 deletions
|
|
@ -66,10 +66,6 @@ NS_EXPORT int android_sdk_version;
|
|||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#if defined(XP_LINUX) && defined(MOZ_SANDBOX)
|
||||
#include "mozilla/SandboxInfo.h"
|
||||
#endif
|
||||
|
||||
// Slot for NS_InitXPCOM2 to pass information to nsSystemInfo::Init.
|
||||
// Only set to nonzero (potentially) if XP_UNIX. On such systems, the
|
||||
// system call to discover the appropriate value is not thread-safe,
|
||||
|
|
@ -789,29 +785,6 @@ nsSystemInfo::Init()
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(XP_LINUX) && defined(MOZ_SANDBOX)
|
||||
SandboxInfo sandInfo = SandboxInfo::Get();
|
||||
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("hasSeccompBPF"),
|
||||
sandInfo.Test(SandboxInfo::kHasSeccompBPF));
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("hasSeccompTSync"),
|
||||
sandInfo.Test(SandboxInfo::kHasSeccompTSync));
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("hasUserNamespaces"),
|
||||
sandInfo.Test(SandboxInfo::kHasUserNamespaces));
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("hasPrivilegedUserNamespaces"),
|
||||
sandInfo.Test(SandboxInfo::kHasPrivilegedUserNamespaces));
|
||||
|
||||
if (sandInfo.Test(SandboxInfo::kEnabledForContent)) {
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("canSandboxContent"),
|
||||
sandInfo.CanSandboxContent());
|
||||
}
|
||||
|
||||
if (sandInfo.Test(SandboxInfo::kEnabledForMedia)) {
|
||||
SetPropertyAsBool(NS_LITERAL_STRING("canSandboxMedia"),
|
||||
sandInfo.CanSandboxMedia());
|
||||
}
|
||||
#endif // XP_LINUX && MOZ_SANDBOX
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue