Skip to content

Commit

Permalink
Apply patch. rdar://124406329
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsin Qureshi committed Mar 15, 2024
1 parent 7fc9d0e commit d4764ae
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ bool AuxiliaryProcessProxy::dispatchSyncMessage(IPC::Connection& connection, IPC
return m_messageReceiverMap.dispatchSyncMessage(connection, decoder, replyEncoder);
}

void AuxiliaryProcessProxy::didFinishLaunching(ProcessLauncher*, IPC::Connection::Identifier connectionIdentifier)
void AuxiliaryProcessProxy::didFinishLaunching(ProcessLauncher* launcher, IPC::Connection::Identifier connectionIdentifier)
{
ASSERT(!m_connection);
ASSERT(isMainRunLoop());
Expand Down
6 changes: 6 additions & 0 deletions Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,12 @@ void GPUProcessProxy::didFinishLaunching(ProcessLauncher* launcher, IPC::Connect

#if USE(RUNNINGBOARD)
m_throttler.didConnectToProcess(*this);
#if USE(EXTENSIONKIT)
// FIXME: this should be moved to AuxiliaryProcessProxy::didFinishLaunching along with m_throttler.didConnectToProcess.
// This FIXME applies to all process proxy subclasses.
if (launcher)
launcher->releaseLaunchGrant();
#endif
#endif

#if PLATFORM(COCOA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static void launchWithExtensionKit(ProcessLauncher& processLauncher, ProcessLaun

launcher->m_xpcConnection = WTFMove(xpcConnection);
launcher->m_process = WTFMove(process);
launcher->m_launchGrant = WTFMove(launchGrant);
launcher->finishLaunchingProcess(name.characters());
});
};
Expand Down
4 changes: 4 additions & 0 deletions Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ void NetworkProcessProxy::didFinishLaunching(ProcessLauncher* launcher, IPC::Con

#if USE(RUNNINGBOARD)
m_throttler.didConnectToProcess(*this);
#if USE(EXTENSIONKIT)
if (launcher)
launcher->releaseLaunchGrant();
#endif
#endif
}

Expand Down
4 changes: 4 additions & 0 deletions Source/WebKit/UIProcess/WebProcessProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,10 @@ void WebProcessProxy::didFinishLaunching(ProcessLauncher* launcher, IPC::Connect

#if USE(RUNNINGBOARD)
m_throttler.didConnectToProcess(*this);
#if USE(EXTENSIONKIT)
if (launcher)
launcher->releaseLaunchGrant();
#endif
#if PLATFORM(MAC)
for (Ref page : pages()) {
if (page->preferences().backgroundWebContentRunningBoardThrottlingEnabled())
Expand Down

0 comments on commit d4764ae

Please sign in to comment.