Skip to content

Commit

Permalink
Revert "Cherry-pick 9ff5a32. rdar://122995875"
Browse files Browse the repository at this point in the history
This reverts commit 72398f9.

Identifier: 272448.582@safari-7618.1.15.10-branch
  • Loading branch information
MyahCobbs committed Feb 21, 2024
1 parent 72398f9 commit 221c0e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ static void launchWithExtensionKit(ProcessLauncher& processLauncher, ProcessLaun
#if USE(EXTENSIONKIT)
auto handler = [](ThreadSafeWeakPtr<ProcessLauncher> weakProcessLauncher, _SEExtensionProcess* process, ASCIILiteral name, NSError* error)
{
if (!weakProcessLauncher.get()) {
process.invalidate();
RefPtr launcher = weakProcessLauncher.get();
if (!launcher) {
[process invalidate];
return;
}
if (error) {
Expand Down Expand Up @@ -210,9 +211,8 @@ static void launchWithExtensionKit(ProcessLauncher& processLauncher, ProcessLaun

callOnMainRunLoop([weakProcessLauncher, name, process = retainPtr(process), launchGrant = WTFMove(launchGrant)] () mutable {
RefPtr launcher = weakProcessLauncher.get();
// If m_client is null, the Process launcher has been invalidated, and we should not proceed with the launch.
if (!launcher || !launcher->m_client) {
process.invalidate();
if (!launcher) {
[process invalidate];
return;
}

Expand Down

0 comments on commit 221c0e5

Please sign in to comment.