Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 542f135691710d4868e26b380af703b5943714bf
https://github.com/WebKit/WebKit/commit/542f135691710d4868e26b380af703b5943714bf
Author: Per Arne Vollan <[email protected]>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M Source/WebKit/NetworkProcess/NetworkProcess.cpp
M Source/WebKit/Shared/AuxiliaryProcess.h
M Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm
Log Message:
-----------
Crash under AuxiliaryProcess::getHomeDirectory
https://bugs.webkit.org/show_bug.cgi?id=320992
rdar://182146575
Reviewed by Chris Dumez and Sihui Liu.
The function getHomeDirectory can fail and release assert if the sandbox does
not allow access
to the Open Directory service. This can happen when the Open Directory cache is
invalidated,
and the WebContent process calls getHomeDirectory in response to the
invalidation. In this case
it is not critical that getHomeDirectory succeeds, since we will otherwise just
use the value
cached by the system. At the other call sites, it is important that the
function succeeds, so
we release assert at the call site if the function fails.
No new test, since getHomeDirectory normally also succeeds without sandbox
access to the
Open Directory service.
* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::addPathsBlockedForSandboxExtensions):
* Source/WebKit/Shared/AuxiliaryProcess.h:
* Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:
(WebKit::AuxiliaryProcess::getHomeDirectory):
(WebKit::populateSandboxInitializationParameters):
Canonical link: https://commits.webkit.org/318626@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications