mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1215303 - Part 2 - automatically enable broker when in permissive mode r=jld
This commit is contained in:
parent
3e2ba29d41
commit
1abac3c923
@ -5,6 +5,7 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "SandboxBrokerPolicyFactory.h"
|
||||
#include "SandboxInfo.h"
|
||||
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
@ -29,6 +30,12 @@ SandboxBrokerPolicyFactory::IsSystemSupported() {
|
||||
if (length > 0 && strcmp(hardware, "goldfish") == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// When broker is running in permissive mode, we enable it
|
||||
// automatically regardless of the device.
|
||||
if (SandboxInfo::Get().Test(SandboxInfo::kPermissive)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user