mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +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
|
|
@ -81,13 +81,6 @@ this.AppConstants = Object.freeze({
|
|||
false,
|
||||
#endif
|
||||
|
||||
MOZ_SANDBOX:
|
||||
#ifdef MOZ_SANDBOX
|
||||
true,
|
||||
#else
|
||||
false,
|
||||
#endif
|
||||
|
||||
MOZ_TELEMETRY_REPORTING:
|
||||
#ifdef MOZ_TELEMETRY_REPORTING
|
||||
true,
|
||||
|
|
|
|||
|
|
@ -530,23 +530,3 @@ var dataProviders = {
|
|||
}
|
||||
};
|
||||
|
||||
if (AppConstants.MOZ_SANDBOX) {
|
||||
dataProviders.sandbox = function sandbox(done) {
|
||||
let data = {};
|
||||
if (AppConstants.platform == "linux") {
|
||||
const keys = ["hasSeccompBPF", "hasSeccompTSync",
|
||||
"hasPrivilegedUserNamespaces", "hasUserNamespaces",
|
||||
"canSandboxContent", "canSandboxMedia"];
|
||||
|
||||
let sysInfo = Cc["@mozilla.org/system-info;1"].
|
||||
getService(Ci.nsIPropertyBag2);
|
||||
for (let key of keys) {
|
||||
if (sysInfo.hasKey(key)) {
|
||||
data[key] = sysInfo.getPropertyAsBool(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
done(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue