Title: [270284] trunk/Source
Revision
270284
Author
[email protected]
Date
2020-11-30 22:49:03 -0800 (Mon, 30 Nov 2020)

Log Message

[macOS] Adopt SPI to prevent establishing XPC connections to Launch Services
https://bugs.webkit.org/show_bug.cgi?id=219173
<rdar://problem/71595536>

Reviewed by Alex Christensen.

Source/WebCore/PAL:

Declare enum value to be used when adopting the SPI.

* pal/spi/cocoa/LaunchServicesSPI.h:

Source/WebKit:

Adopt SPI to prevent establishing XPC connections to Launch Services in the WebContent process on macOS.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (270283 => 270284)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-12-01 04:47:41 UTC (rev 270283)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-12-01 06:49:03 UTC (rev 270284)
@@ -1,3 +1,15 @@
+2020-11-30  Per Arne Vollan  <[email protected]>
+
+        [macOS] Adopt SPI to prevent establishing XPC connections to Launch Services
+        https://bugs.webkit.org/show_bug.cgi?id=219173
+        <rdar://problem/71595536>
+
+        Reviewed by Alex Christensen.
+
+        Declare enum value to be used when adopting the SPI.
+
+        * pal/spi/cocoa/LaunchServicesSPI.h:
+
 2020-11-28  Per Arne Vollan  <[email protected]>
 
         [macOS] Set application information in the Networking process on behalf of the WebContent process

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h (270283 => 270284)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h	2020-12-01 04:47:41 UTC (rev 270283)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h	2020-12-01 06:49:03 UTC (rev 270284)
@@ -75,6 +75,10 @@
 enum LSSessionID {
     kLSDefaultSessionID = -2,
 };
+
+enum {
+    kLSServerConnectionStatusDoNotConnectToServerMask = 0x1ULL,
+};
 #endif
 
 #if HAVE(LSDATABASECONTEXT)

Modified: trunk/Source/WebKit/ChangeLog (270283 => 270284)


--- trunk/Source/WebKit/ChangeLog	2020-12-01 04:47:41 UTC (rev 270283)
+++ trunk/Source/WebKit/ChangeLog	2020-12-01 06:49:03 UTC (rev 270284)
@@ -1,3 +1,16 @@
+2020-11-30  Per Arne Vollan  <[email protected]>
+
+        [macOS] Adopt SPI to prevent establishing XPC connections to Launch Services
+        https://bugs.webkit.org/show_bug.cgi?id=219173
+        <rdar://problem/71595536>
+
+        Reviewed by Alex Christensen.
+
+        Adopt SPI to prevent establishing XPC connections to Launch Services in the WebContent process on macOS.
+ 
+        * WebProcess/cocoa/WebProcessCocoa.mm:
+        (WebKit::WebProcess::platformInitializeWebProcess):
+
 2020-11-30  Tim Horton  <[email protected]>
 
         Unreviewed, reverting r270275.

Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (270283 => 270284)


--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2020-12-01 04:47:41 UTC (rev 270283)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2020-12-01 06:49:03 UTC (rev 270284)
@@ -384,6 +384,10 @@
     if (canLoad_HIServices__AXSetAuditTokenIsAuthenticatedCallback())
         softLink_HIServices__AXSetAuditTokenIsAuthenticatedCallback(isAXAuthenticatedCallback);
 #endif
+    
+#if ENABLE(SET_WEBCONTENT_PROCESS_INFORMATION_IN_NETWORK_PROCESS)
+    _LSSetApplicationLaunchServicesServerConnectionStatus(kLSServerConnectionStatusDoNotConnectToServerMask, nullptr);
+#endif
 }
 
 void WebProcess::platformSetWebsiteDataStoreParameters(WebProcessDataStoreParameters&& parameters)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to