Skip to content

Commit

Permalink
Unreviewed, reverting 270583@main.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264758

Introduced crash

Reverted changeset:

"Enable management of WebKit process as extensions by default"
https://bugs.webkit.org/show_bug.cgi?id=264316
https://commits.webkit.org/270583@main

Canonical link: https://commits.webkit.org/270668@main
  • Loading branch information
webkit-commit-queue authored and pvollan committed Nov 13, 2023
1 parent 6c526fb commit cfb0ad5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/Cocoa/ProcessAssertionCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ - (void)assertion:(RBSAssertion *)assertion didInvalidateWithError:(NSError *)er
, m_reason(reason)
{
#if USE(EXTENSIONKIT)
if (process.extensionProcess()) {
if (AuxiliaryProcessProxy::manageProcessesAsExtensions()) {
NSString *runningBoardAssertionName = runningBoardNameForAssertionType(m_assertionType);
NSString *runningBoardDomain = runningBoardDomainForAssertionType(m_assertionType);
m_capabilities = [get_SECapabilitiesClass() assertionWithDomain:runningBoardDomain name:runningBoardAssertionName];
Expand Down
3 changes: 1 addition & 2 deletions Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ static void logProcessPoolState(const WebProcessPool& pool)
});

#if USE(EXTENSIONKIT)
bool manageProcessesAsExtensions = !CFPreferencesGetAppBooleanValue(CFSTR("disableProcessesAsExtensions"), kCFPreferencesCurrentApplication, nullptr);
AuxiliaryProcessProxy::setManageProcessesAsExtensions(manageProcessesAsExtensions);
AuxiliaryProcessProxy::setManageProcessesAsExtensions(CFPreferencesGetAppBooleanValue(CFSTR("manageProcessesAsExtensions"), CFSTR("com.apple.WebKit"), nullptr));
#endif
}

Expand Down
5 changes: 0 additions & 5 deletions Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,6 @@ static void setVideoDecoderBehaviors(OptionSet<VideoDecoderBehavior> videoDecode
{
WEBPROCESS_RELEASE_LOG(Process, "WebProcess::platformInitializeWebProcess");

#if USE(EXTENSIONKIT)
// Workaround for crash seen when running tests. See rdar://118186487.
unsetenv("BSServiceDomains");
#endif

applyProcessCreationParameters(parameters.auxiliaryProcessParameters);

setQOS(parameters.latencyQOS, parameters.throughputQOS);
Expand Down

0 comments on commit cfb0ad5

Please sign in to comment.