Title: [292632] trunk/Source/WebKit
- Revision
- 292632
- Author
- [email protected]
- Date
- 2022-04-08 13:29:38 -0700 (Fri, 08 Apr 2022)
Log Message
Unreviewed, reverting r292429.
https://bugs.webkit.org/show_bug.cgi?id=239011
Introduced Data Detectors regression in Mail
Reverted changeset:
"Unreviewed, reverting r291821."
https://bugs.webkit.org/show_bug.cgi?id=238839
https://commits.webkit.org/r292429
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (292631 => 292632)
--- trunk/Source/WebKit/ChangeLog 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/ChangeLog 2022-04-08 20:29:38 UTC (rev 292632)
@@ -1,3 +1,16 @@
+2022-04-08 Commit Queue <[email protected]>
+
+ Unreviewed, reverting r292429.
+ https://bugs.webkit.org/show_bug.cgi?id=239011
+
+ Introduced Data Detectors regression in Mail
+
+ Reverted changeset:
+
+ "Unreviewed, reverting r291821."
+ https://bugs.webkit.org/show_bug.cgi?id=238839
+ https://commits.webkit.org/r292429
+
2022-04-08 Gavin Phillips <[email protected]>
Remove unneeded CoreIPC messages and corresponding handlers related to StorageManagerSet
Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in (292631 => 292632)
--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in 2022-04-08 20:29:38 UTC (rev 292632)
@@ -1132,6 +1132,7 @@
(extension "com.apple.webkit.extension.mach")
(global-name
"com.apple.iconservices"
+ "com.apple.lsd.open"
)
)
)
Modified: trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp (292631 => 292632)
--- trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp 2022-04-08 20:29:38 UTC (rev 292632)
@@ -167,6 +167,7 @@
#endif
#if PLATFORM(IOS_FAMILY)
+ encoder << dynamicMachExtensionHandles;
encoder << dynamicIOKitExtensionHandles;
#endif
@@ -454,6 +455,12 @@
#endif
#if PLATFORM(IOS_FAMILY)
+ std::optional<Vector<SandboxExtension::Handle>> dynamicMachExtensionHandles;
+ decoder >> dynamicMachExtensionHandles;
+ if (!dynamicMachExtensionHandles)
+ return false;
+ parameters.dynamicMachExtensionHandles = WTFMove(*dynamicMachExtensionHandles);
+
std::optional<Vector<SandboxExtension::Handle>> dynamicIOKitExtensionHandles;
decoder >> dynamicIOKitExtensionHandles;
if (!dynamicIOKitExtensionHandles)
Modified: trunk/Source/WebKit/Shared/WebProcessCreationParameters.h (292631 => 292632)
--- trunk/Source/WebKit/Shared/WebProcessCreationParameters.h 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/Shared/WebProcessCreationParameters.h 2022-04-08 20:29:38 UTC (rev 292632)
@@ -208,6 +208,7 @@
#endif
#if PLATFORM(IOS_FAMILY)
+ Vector<SandboxExtension::Handle> dynamicMachExtensionHandles;
Vector<SandboxExtension::Handle> dynamicIOKitExtensionHandles;
#endif
Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (292631 => 292632)
--- trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2022-04-08 20:29:38 UTC (rev 292632)
@@ -285,6 +285,17 @@
m_resolvedPaths.uiProcessBundleResourcePath = resolvePathForSandboxExtension(String { [[NSBundle mainBundle] resourcePath] });
}
+#if PLATFORM(IOS_FAMILY)
+static const Vector<ASCIILiteral>& nonBrowserServices()
+{
+ ASSERT(isMainRunLoop());
+ static NeverDestroyed services = Vector<ASCIILiteral> {
+ "com.apple.lsd.open"_s,
+ };
+ return services;
+}
+#endif
+
void WebProcessPool::platformInitializeWebProcess(const WebProcessProxy& process, WebProcessCreationParameters& parameters)
{
parameters.mediaMIMETypes = process.mediaMIMETypes();
@@ -385,6 +396,9 @@
#endif
#if PLATFORM(IOS_FAMILY)
+ if (!isFullWebBrowser())
+ parameters.dynamicMachExtensionHandles = SandboxExtension::createHandlesForMachLookup(nonBrowserServices(), std::nullopt);
+
if (WebCore::deviceHasAGXCompilerService())
parameters.dynamicIOKitExtensionHandles = SandboxExtension::createHandlesForIOKitClassExtensions(WebCore::agxCompilerClasses(), std::nullopt);
#endif
Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (292631 => 292632)
--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2022-04-08 20:27:03 UTC (rev 292631)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2022-04-08 20:29:38 UTC (rev 292632)
@@ -421,6 +421,7 @@
#endif
#if PLATFORM(IOS_FAMILY)
+ SandboxExtension::consumePermanently(parameters.dynamicMachExtensionHandles);
SandboxExtension::consumePermanently(parameters.dynamicIOKitExtensionHandles);
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes