2020-08-28 18:39:23 -04:00
|
|
|
diff --git sandbox/policy/win/sandbox_win.cc sandbox/policy/win/sandbox_win.cc
|
2020-12-02 17:31:49 -05:00
|
|
|
index eef1a60d348e..eabb92072c2c 100644
|
2020-08-28 18:39:23 -04:00
|
|
|
--- sandbox/policy/win/sandbox_win.cc
|
|
|
|
+++ sandbox/policy/win/sandbox_win.cc
|
2020-12-02 17:31:49 -05:00
|
|
|
@@ -1003,8 +1003,11 @@ ResultCode SandboxWin::StartSandboxedProcess(
|
2019-07-16 13:59:21 -04:00
|
|
|
}
|
|
|
|
// TODO(wfh): Relax strict handle checks for network process until root cause
|
|
|
|
// for this crash can be resolved. See https://crbug.com/939590.
|
2020-03-03 19:29:39 -05:00
|
|
|
- if (sandbox_type != SandboxType::kNetwork)
|
2019-07-16 13:59:21 -04:00
|
|
|
+ if (!launcher_process_command_line.HasSwitch("win-rt-app") &&
|
2020-03-03 19:29:39 -05:00
|
|
|
+ sandbox_type != SandboxType::kNetwork) {
|
2017-09-29 11:17:31 +02:00
|
|
|
+ // Don't enable this mitigation in WinRT apps. See issue #2274.
|
2020-08-28 18:39:23 -04:00
|
|
|
mitigations |= MITIGATION_STRICT_HANDLE_CHECKS;
|
2017-09-29 11:17:31 +02:00
|
|
|
+ }
|
2019-07-16 13:59:21 -04:00
|
|
|
|
|
|
|
result = policy->SetDelayedProcessMitigations(mitigations);
|
2020-08-28 18:39:23 -04:00
|
|
|
if (result != SBOX_ALL_OK)
|