Title: [295452] trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Revision
295452
Author
pvol...@apple.com
Date
2022-06-10 08:11:58 -0700 (Fri, 10 Jun 2022)

Log Message

Disable URL scheme check in Data Detectors for all clients
https://bugs.webkit.org/show_bug.cgi?id=241273

Reviewed by Geoffrey Garen.

We are seeing telmetry where also Web browser clients are attempting to connect to Launch Services when data detection
is trying to find an application to handle a URL with a custom scheme. Since Launch Services is blocked in the sandbox,
the WebContent process will be unable to determine if there is an application that can open this URL, and the link will
not be clickable. This can be addressed by disabling the URL scheme check in Data Detectors for all clients.

* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

Canonical link: https://commits.webkit.org/251458@main

Modified Paths

Diff

Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (295451 => 295452)


--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2022-06-10 14:51:23 UTC (rev 295451)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2022-06-10 15:11:58 UTC (rev 295452)
@@ -431,8 +431,7 @@
 
     accessibilityPreferencesDidChange(parameters.accessibilityPreferences);
 
-    if (!isParentProcessAFullWebBrowser(*this))
-        disableURLSchemeCheckInDataDetectors();
+    disableURLSchemeCheckInDataDetectors();
 
     // Soft link frameworks related to Data Detection before we disconnect from launchd because these frameworks connect to
     // launchd temporarily at link time to register XPC services. See rdar://93598951 (my feature request to stop doing that)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to