Changeset 286590 in webkit
- Timestamp:
- Dec 6, 2021 11:30:07 PM (2 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r286588 r286590 1 2021-12-06 Per Arne <pvollan@apple.com> 2 3 [iOS] Remove mach service extensions for the WebContent process 4 https://bugs.webkit.org/show_bug.cgi?id=232952 5 <rdar://problem/85259753> 6 7 Reviewed by Brent Fulgham. 8 9 Remove mach service extensions for the WebContent process, which we think are no longer needed, based on local testing. 10 11 * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in: 12 * Shared/WebProcessCreationParameters.cpp: 13 (WebKit::WebProcessCreationParameters::encode const): 14 (WebKit::WebProcessCreationParameters::decode): 15 * Shared/WebProcessCreationParameters.h: 16 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 17 (WebKit::WebProcessPool::platformInitializeWebProcess): 18 (WebKit::nonBrowserServices): Deleted. 19 * UIProcess/WebPageProxy.cpp: 20 (WebKit::attachmentElementServices): 21 * WebProcess/cocoa/WebProcessCocoa.mm: 22 (WebKit::WebProcess::platformInitializeWebProcess): 23 1 24 2021-12-06 Patrick Angle <pangle@apple.com> 2 25 -
trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in
r286557 r286590 1124 1124 (extension "com.apple.webkit.extension.mach") 1125 1125 (global-name 1126 "com.apple.PowerManagement.control"1127 "com.apple.frontboard.systemappservices"1128 1126 "com.apple.iconservices" 1129 "com.apple.lsd.open"1130 1127 ) 1131 1128 ) -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp
r286484 r286590 172 172 173 173 #if PLATFORM(IOS_FAMILY) 174 encoder << dynamicMachExtensionHandles;175 174 encoder << dynamicIOKitExtensionHandles; 176 175 #endif … … 486 485 487 486 #if PLATFORM(IOS_FAMILY) 488 std::optional<Vector<SandboxExtension::Handle>> dynamicMachExtensionHandles;489 decoder >> dynamicMachExtensionHandles;490 if (!dynamicMachExtensionHandles)491 return false;492 parameters.dynamicMachExtensionHandles = WTFMove(*dynamicMachExtensionHandles);493 494 487 std::optional<Vector<SandboxExtension::Handle>> dynamicIOKitExtensionHandles; 495 488 decoder >> dynamicIOKitExtensionHandles; -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.h
r286484 r286590 210 210 211 211 #if PLATFORM(IOS_FAMILY) 212 Vector<SandboxExtension::Handle> dynamicMachExtensionHandles;213 212 Vector<SandboxExtension::Handle> dynamicIOKitExtensionHandles; 214 213 #endif -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r286484 r286590 283 283 } 284 284 285 #if PLATFORM(IOS_FAMILY)286 static const Vector<ASCIILiteral>& nonBrowserServices()287 {288 ASSERT(isMainRunLoop());289 static const auto services = makeNeverDestroyed(Vector<ASCIILiteral> {290 "com.apple.lsd.open"_s,291 "com.apple.iconservices"_s,292 "com.apple.PowerManagement.control"_s,293 "com.apple.frontboard.systemappservices"_s294 });295 return services;296 }297 #endif298 299 285 static bool requiresContainerManagerAccess() 300 286 { … … 426 412 427 413 #if PLATFORM(IOS_FAMILY) 428 if (!WebCore::IOSApplication::isMobileSafari())429 parameters.dynamicMachExtensionHandles = SandboxExtension::createHandlesForMachLookup(nonBrowserServices(), std::nullopt);430 431 414 if (WebCore::deviceHasAGXCompilerService()) 432 415 parameters.dynamicIOKitExtensionHandles = SandboxExtension::createHandlesForIOKitClassExtensions(WebCore::agxCompilerClasses(), std::nullopt); -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r286557 r286590 8016 8016 { 8017 8017 static const auto services = makeNeverDestroyed(Vector<ASCIILiteral> { 8018 #if PLATFORM(IOS_FAMILY)8019 "com.apple.frontboard.systemappservices"_s,8020 #endif8021 8018 "com.apple.iconservices"_s, 8022 8019 #if PLATFORM(MAC) -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r286484 r286590 414 414 415 415 #if PLATFORM(IOS_FAMILY) 416 SandboxExtension::consumePermanently(parameters.dynamicMachExtensionHandles);417 416 SandboxExtension::consumePermanently(parameters.dynamicIOKitExtensionHandles); 418 417 #endif
Note: See TracChangeset
for help on using the changeset viewer.