Title: [291021] trunk/Source/WebKit
- Revision
- 291021
- Author
- commit-qu...@webkit.org
- Date
- 2022-03-08 16:52:43 -0800 (Tue, 08 Mar 2022)
Log Message
Enable CFPrefs direct mode in adattributiond
https://bugs.webkit.org/show_bug.cgi?id=237620
Patch by Alex Christensen <achristen...@webkit.org> on 2022-03-08
Reviewed by Per Arne Vollan.
This makes it not try to connect to cfprefsd, which is not allowed by the sandbox.
* Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm:
(WebKit::PCMDaemonMain):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (291020 => 291021)
--- trunk/Source/WebKit/ChangeLog 2022-03-09 00:15:14 UTC (rev 291020)
+++ trunk/Source/WebKit/ChangeLog 2022-03-09 00:52:43 UTC (rev 291021)
@@ -1,3 +1,15 @@
+2022-03-08 Alex Christensen <achristen...@webkit.org>
+
+ Enable CFPrefs direct mode in adattributiond
+ https://bugs.webkit.org/show_bug.cgi?id=237620
+
+ Reviewed by Per Arne Vollan.
+
+ This makes it not try to connect to cfprefsd, which is not allowed by the sandbox.
+
+ * Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm:
+ (WebKit::PCMDaemonMain):
+
2022-03-08 Diego Pino Garcia <dp...@igalia.com>
[macOS] Unreviewed, non-unified build fixes
Modified: trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm (291020 => 291021)
--- trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm 2022-03-09 00:15:14 UTC (rev 291020)
+++ trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm 2022-03-09 00:52:43 UTC (rev 291021)
@@ -33,6 +33,7 @@
#import "PrivateClickMeasurementManagerInterface.h"
#import "PrivateClickMeasurementXPCUtilities.h"
#import <Foundation/Foundation.h>
+#import <pal/spi/cf/CFUtilitiesSPI.h>
#import <wtf/CompletionHandler.h>
#import <wtf/FileSystem.h>
#import <wtf/HashSet.h>
@@ -130,6 +131,12 @@
bool startActivity = argc > 5 && !strcmp(argv[5], "--startActivity");
@autoreleasepool {
+#if ENABLE(CFPREFS_DIRECT_MODE)
+ _CFPrefsSetDirectModeEnabled(YES);
+#endif
+#if HAVE(CF_PREFS_SET_READ_ONLY)
+ _CFPrefsSetReadOnly(YES);
+#endif
enterSandbox();
startListeningForMachServiceConnections(machServiceName, "com.apple.private.webkit.adattributiond", connectionAdded, connectionRemoved, connectionEventHandler);
if (startActivity)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes