зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1366694 Part 1: Allow user handles in the content process job in DEBUG builds. r=jimm
This commit is contained in:
Родитель
1da6cd22e9
Коммит
ecbd6ca808
|
@ -278,8 +278,14 @@ SandboxBroker::SetSecurityLevelForContentProcess(int32_t aSandboxLevel,
|
|||
}
|
||||
}
|
||||
|
||||
sandbox::ResultCode result = mPolicy->SetJobLevel(jobLevel,
|
||||
0 /* ui_exceptions */);
|
||||
#if defined(DEBUG)
|
||||
// This is required for a MOZ_ASSERT check in WindowsMessageLoop.cpp
|
||||
// WinEventHook, see bug 1366694 for details.
|
||||
DWORD uiExceptions = JOB_OBJECT_UILIMIT_HANDLES;
|
||||
#else
|
||||
DWORD uiExceptions = 0;
|
||||
#endif
|
||||
sandbox::ResultCode result = mPolicy->SetJobLevel(jobLevel, uiExceptions);
|
||||
MOZ_RELEASE_ASSERT(sandbox::SBOX_ALL_OK == result,
|
||||
"Setting job level failed, have you set memory limit when jobLevel == JOB_NONE?");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче