Bug 1912481 p2: Give read access to the Windows system binary dir. r=handyman

This is to allow Windows DLLs that are not used in all content processes to load
later if they are required.

Differential Revision: https://phabricator.services.mozilla.com/D218964
This commit is contained in:
Bob Owen
2024-08-22 09:16:38 +00:00
parent a0cb3337af
commit 49b42b0c4d
2 changed files with 18 additions and 16 deletions

View File

@@ -1740,27 +1740,11 @@ mozilla::ipc::IPCResult ContentChild::RecvSetProcessSandbox(
::LoadLibraryW(L"mozavutil.dll");
if (GetEffectiveContentSandboxLevel() > 7) {
// Library required for timely audio processing.
::LoadLibraryW(L"avrt.dll");
// Libraries required by Network Security Services (NSS).
::LoadLibraryW(L"freebl3.dll");
::LoadLibraryW(L"softokn3.dll");
// Library required by DirectWrite in some fall-back scenarios.
::LoadLibraryW(L"textshaping.dll");
// Microsoft libraries that are required for WMF software encoding.
::LoadLibraryW(L"mfplat.dll");
::LoadLibraryW(L"mf.dll");
::LoadLibraryW(L"dxva2.dll");
::LoadLibraryW(L"evr.dll");
::LoadLibraryW(L"mfh264enc.dll");
// Cache value that is retrieved from a registry entry.
Unused << GetCpuFrequencyMHz();
# if defined(DEBUG)
// Library used in some debug testing.
::LoadLibraryW(L"dbghelp.dll");
// Required for WMF shutdown, not required for opt due to quick exit.
::LoadLibraryW(L"ole32.dll");
# endif
}
mozilla::SandboxTarget::Instance()->StartSandbox();
# elif defined(XP_MACOSX)