Changeset 284055 in webkit
- Timestamp:
- Oct 12, 2021 4:16:41 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r284051 r284055 1 2021-10-12 Alex Christensen <achristensen@webkit.org> 2 3 Rename AdAttributionDaemon to adattributiond 4 https://bugs.webkit.org/show_bug.cgi?id=231620 5 6 Reviewed by Kate Cheney. 7 8 adattributiond is its approved name in rdar://80701098 and we already used it in some places. 9 Use it consistently. 10 11 * Configurations/adattributiond.xcconfig: Renamed from Source/WebKit/Configurations/AdAttributionDaemon.xcconfig. 12 * Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb: Renamed from Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.AdAttributionDaemon.sb. 13 * Scripts/process-entitlements.sh: 14 * Shared/EntryPointUtilities/Cocoa/Daemon/adattributiond.c: Renamed from Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/AdAttributionDaemon.c. 15 * WebKit.xcodeproj/project.pbxproj: 16 1 17 2021-10-12 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebKit/Scripts/process-entitlements.sh
r283977 r284055 120 120 plistbuddy Add :com.apple.rootless.storage.WebKitNetworkingSandbox bool YES 121 121 plistbuddy Add :com.apple.symptom_analytics.configure bool YES 122 plistbuddy Add :com.apple.private.webkit.adattributiond aemonbool YES122 plistbuddy Add :com.apple.private.webkit.adattributiond bool YES 123 123 fi 124 124 } … … 375 375 { 376 376 plistbuddy Add :seatbelt-profiles array 377 plistbuddy Add :seatbelt-profiles:0 string com.apple. WebKit.AdAttributionDaemon377 plistbuddy Add :seatbelt-profiles:0 string com.apple.webkit.adattributiond 378 378 } 379 379 380 380 function ios_family_process_network_entitlements() 381 381 { 382 plistbuddy Add :com.apple.private.webkit.adattributiond aemonbool YES382 plistbuddy Add :com.apple.private.webkit.adattributiond bool YES 383 383 plistbuddy Add :com.apple.multitasking.systemappassertions bool YES 384 384 plistbuddy Add :com.apple.payment.all-access bool YES … … 415 415 if [[ "${WK_PLATFORM_NAME}" =~ .*simulator ]] 416 416 then 417 if [[ "${PRODUCT_NAME}" != AdAttributionDaemon]]; then417 if [[ "${PRODUCT_NAME}" != adattributiond ]]; then 418 418 cp "${CODE_SIGN_ENTITLEMENTS}" "${WK_PROCESSED_XCENT_FILE}" 419 419 fi … … 451 451 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.GPU ]]; then ios_family_process_gpu_entitlements 452 452 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.WebAuthn ]]; then ios_family_process_webauthn_entitlements 453 elif [[ "${PRODUCT_NAME}" == AdAttributionDaemon]]; then453 elif [[ "${PRODUCT_NAME}" == adattributiond ]]; then 454 454 ios_family_process_adattributiond_entitlements 455 455 else echo "Unsupported/unknown product: ${PRODUCT_NAME}" -
trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm
r283930 r284055 82 82 83 83 #if USE(APPLE_INTERNAL_SDK) 84 if (!WTF::hasEntitlement(peer, "com.apple.private.webkit.adattributiond aemon")) {84 if (!WTF::hasEntitlement(peer, "com.apple.private.webkit.adattributiond")) { 85 85 NSLog(@"Connection attempted without required entitlement"); 86 86 xpc_connection_cancel(peer); -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r284049 r284055 1288 1288 5CABDC8722C40FED001EDE8E /* APIMessageListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CABDC8322C40FA7001EDE8E /* APIMessageListener.h */; }; 1289 1289 5CADDE05215046BD0067D309 /* WKWebProcess.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C74300E21500492004BFA17 /* WKWebProcess.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1290 5CAF7AA726F93AB00003F19E /* AdAttributionDaemon.c in Sources */ = {isa = PBXBuildFile; fileRef = 5CAF7AA526F93A950003F19E /* AdAttributionDaemon.c */; };1290 5CAF7AA726F93AB00003F19E /* adattributiond.c in Sources */ = {isa = PBXBuildFile; fileRef = 5CAF7AA526F93A950003F19E /* adattributiond.c */; }; 1291 1291 5CAFDE452130846300B1F7E1 /* _WKInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CAFDE422130843500B1F7E1 /* _WKInspector.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1292 1292 5CAFDE472130846A00B1F7E1 /* _WKInspectorInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CAFDE442130843600B1F7E1 /* _WKInspectorInternal.h */; }; … … 4510 4510 5C1427151C23F8B000D41183 /* LegacyCustomProtocolManager.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LegacyCustomProtocolManager.messages.in; sourceTree = "<group>"; }; 4511 4511 5C14271B1C23F8CC00D41183 /* LegacyCustomProtocolManagerCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = LegacyCustomProtocolManagerCocoa.mm; sourceTree = "<group>"; }; 4512 5C1578E5270E0DBC00ED5280 /* com.apple.WebKit. AdAttributionDaemon.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.apple.WebKit.AdAttributionDaemon.sb; sourceTree = "<group>"; };4512 5C1578E5270E0DBC00ED5280 /* com.apple.WebKit.adattributiond.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.apple.WebKit.adattributiond.sb; sourceTree = "<group>"; }; 4513 4513 5C19A51E1FD0B14600EEA323 /* URLSchemeTaskParameters.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = URLSchemeTaskParameters.cpp; sourceTree = "<group>"; }; 4514 4514 5C19A51F1FD0B14700EEA323 /* URLSchemeTaskParameters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = URLSchemeTaskParameters.h; sourceTree = "<group>"; }; … … 4591 4591 5CABDC8522C40FCC001EDE8E /* WKMessageListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKMessageListener.h; sourceTree = "<group>"; }; 4592 4592 5CADDE0D2151AA010067D309 /* AuthenticationChallengeDisposition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationChallengeDisposition.h; sourceTree = "<group>"; }; 4593 5CAF7AA426F93A750003F19E /* AdAttributionDaemon */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = AdAttributionDaemon; sourceTree = BUILT_PRODUCTS_DIR; };4594 5CAF7AA526F93A950003F19E /* AdAttributionDaemon.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = AdAttributionDaemon.c; sourceTree = "<group>"; };4595 5CAF7AA626F93AA50003F19E /* AdAttributionDaemon.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AdAttributionDaemon.xcconfig; sourceTree = "<group>"; };4593 5CAF7AA426F93A750003F19E /* adattributiond */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = adattributiond; sourceTree = BUILT_PRODUCTS_DIR; }; 4594 5CAF7AA526F93A950003F19E /* adattributiond.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = adattributiond.c; sourceTree = "<group>"; }; 4595 5CAF7AA626F93AA50003F19E /* adattributiond.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = adattributiond.xcconfig; sourceTree = "<group>"; }; 4596 4596 5CAFDE422130843500B1F7E1 /* _WKInspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _WKInspector.h; sourceTree = "<group>"; }; 4597 4597 5CAFDE432130843600B1F7E1 /* _WKInspector.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = _WKInspector.mm; sourceTree = "<group>"; }; … … 6287 6287 isa = PBXGroup; 6288 6288 children = ( 6289 5CAF7AA426F93A750003F19E /* AdAttributionDaemon*/,6289 5CAF7AA426F93A750003F19E /* adattributiond */, 6290 6290 2D9FB228237523830049F936 /* com.apple.WebKit.GPU.xpc */, 6291 6291 BC8283B116B4BF7700A278FE /* com.apple.WebKit.Networking.xpc */, … … 6723 6723 isa = PBXGroup; 6724 6724 children = ( 6725 5CAF7AA626F93AA50003F19E /* AdAttributionDaemon.xcconfig */,6725 5CAF7AA626F93AA50003F19E /* adattributiond.xcconfig */, 6726 6726 A1EDD2D91884ACE000BBFE98 /* All.xcconfig */, 6727 6727 1A4F976A100E7B6600637A18 /* Base.xcconfig */, … … 9506 9506 isa = PBXGroup; 9507 9507 children = ( 9508 5CAF7AA526F93A950003F19E /* AdAttributionDaemon.c */,9508 5CAF7AA526F93A950003F19E /* adattributiond.c */, 9509 9509 5C6289A827068EC000CF5EC6 /* PCMDaemonConnectionSet.h */, 9510 9510 5C6289A927068EC000CF5EC6 /* PCMDaemonConnectionSet.mm */, … … 10014 10014 isa = PBXGroup; 10015 10015 children = ( 10016 5C1578E5270E0DBC00ED5280 /* com.apple.WebKit. AdAttributionDaemon.sb */,10016 5C1578E5270E0DBC00ED5280 /* com.apple.WebKit.adattributiond.sb */, 10017 10017 2DB96052239886B900102791 /* com.apple.WebKit.GPU.sb */, 10018 10018 A78CCDD8193AC9E3005ECC25 /* com.apple.WebKit.Networking.sb */, … … 13525 13525 productType = "com.apple.product-type.xpc-service"; 13526 13526 }; 13527 5CAF7A9926F93A750003F19E /* AdAttributionDaemon*/ = {13527 5CAF7A9926F93A750003F19E /* adattributiond */ = { 13528 13528 isa = PBXNativeTarget; 13529 buildConfigurationList = 5CAF7AA026F93A750003F19E /* Build configuration list for PBXNativeTarget " AdAttributionDaemon" */;13529 buildConfigurationList = 5CAF7AA026F93A750003F19E /* Build configuration list for PBXNativeTarget "adattributiond" */; 13530 13530 buildPhases = ( 13531 13531 5CAF7A9C26F93A750003F19E /* Headers */, 13532 13532 5CAF7A9D26F93A750003F19E /* Sources */, 13533 13533 5CAF7A9F26F93A750003F19E /* Frameworks */, 13534 5C1578E6270E129400ED5280 /* Process AdAttributionDaemonEntitlements */,13534 5C1578E6270E129400ED5280 /* Process adattributiond Entitlements */, 13535 13535 ); 13536 13536 buildRules = ( … … 13540 13540 5CAF7A9A26F93A750003F19E /* PBXTargetDependency */, 13541 13541 ); 13542 name = AdAttributionDaemon;13542 name = adattributiond; 13543 13543 productName = PluginProcessShim; 13544 productReference = 5CAF7AA426F93A750003F19E /* AdAttributionDaemon*/;13544 productReference = 5CAF7AA426F93A750003F19E /* adattributiond */; 13545 13545 productType = "com.apple.product-type.tool"; 13546 13546 }; … … 13755 13755 5325BDCD21DFF47700A0DEE1 /* Apply Configuration to XCFileLists */, 13756 13756 942DB232257EE6D4009BD80A /* EmptyDSTROOT */, 13757 5CAF7A9926F93A750003F19E /* AdAttributionDaemon*/,13757 5CAF7A9926F93A750003F19E /* adattributiond */, 13758 13758 ); 13759 13759 }; … … 14039 14039 "$(SRCROOT)/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb", 14040 14040 "$(SRCROOT)/Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb", 14041 "$(SRCROOT)/Resources/SandboxProfiles/ios/com.apple.WebKit. AdAttributionDaemon.sb",14041 "$(SRCROOT)/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb", 14042 14042 ); 14043 14043 name = "Copy iOS Sandbox Profiles for Manual Sandboxing"; … … 14161 14161 shellScript = "Scripts/process-entitlements.sh\n"; 14162 14162 }; 14163 5C1578E6270E129400ED5280 /* Process AdAttributionDaemonEntitlements */ = {14163 5C1578E6270E129400ED5280 /* Process adattributiond Entitlements */ = { 14164 14164 isa = PBXShellScriptBuildPhase; 14165 14165 buildActionMask = 2147483647; … … 14171 14171 "$(SRCROOT)/Scripts/process-entitlements.sh", 14172 14172 ); 14173 name = "Process AdAttributionDaemonEntitlements";14173 name = "Process adattributiond Entitlements"; 14174 14174 outputFileListPaths = ( 14175 14175 ); … … 14456 14456 buildActionMask = 2147483647; 14457 14457 files = ( 14458 5CAF7AA726F93AB00003F19E /* AdAttributionDaemon.c in Sources */,14458 5CAF7AA726F93AB00003F19E /* adattributiond.c in Sources */, 14459 14459 ); 14460 14460 runOnlyForDeploymentPostprocessing = 0; … … 15037 15037 5CAF7AA926F93F9F0003F19E /* PBXTargetDependency */ = { 15038 15038 isa = PBXTargetDependency; 15039 target = 5CAF7A9926F93A750003F19E /* AdAttributionDaemon*/;15039 target = 5CAF7A9926F93A750003F19E /* adattributiond */; 15040 15040 targetProxy = 5CAF7AA826F93F9F0003F19E /* PBXContainerItemProxy */; 15041 15041 }; … … 15321 15321 5CAF7AA126F93A750003F19E /* Debug */ = { 15322 15322 isa = XCBuildConfiguration; 15323 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* AdAttributionDaemon.xcconfig */;15323 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* adattributiond.xcconfig */; 15324 15324 buildSettings = { 15325 15325 OTHER_LDFLAGS = "$(OTHER_LDFLAGS)"; … … 15330 15330 5CAF7AA226F93A750003F19E /* Release */ = { 15331 15331 isa = XCBuildConfiguration; 15332 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* AdAttributionDaemon.xcconfig */;15332 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* adattributiond.xcconfig */; 15333 15333 buildSettings = { 15334 15334 OTHER_LDFLAGS = "$(OTHER_LDFLAGS)"; … … 15339 15339 5CAF7AA326F93A750003F19E /* Production */ = { 15340 15340 isa = XCBuildConfiguration; 15341 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* AdAttributionDaemon.xcconfig */;15341 baseConfigurationReference = 5CAF7AA626F93AA50003F19E /* adattributiond.xcconfig */; 15342 15342 buildSettings = { 15343 15343 OTHER_LDFLAGS = "$(OTHER_LDFLAGS)"; … … 15688 15688 defaultConfigurationName = Production; 15689 15689 }; 15690 5CAF7AA026F93A750003F19E /* Build configuration list for PBXNativeTarget " AdAttributionDaemon" */ = {15690 5CAF7AA026F93A750003F19E /* Build configuration list for PBXNativeTarget "adattributiond" */ = { 15691 15691 isa = XCConfigurationList; 15692 15692 buildConfigurations = ( -
trunk/Tools/ChangeLog
r284048 r284055 1 2021-10-12 Alex Christensen <achristensen@webkit.org> 2 3 Rename AdAttributionDaemon to adattributiond 4 https://bugs.webkit.org/show_bug.cgi?id=231620 5 6 Reviewed by Kate Cheney. 7 8 * TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm: 9 (TestWebKitAPI::testPCMDaemonLocation): 10 (TestWebKitAPI::cleanUpDaemon): 11 1 12 2021-10-12 Myles C. Maxfield <mmaxfield@apple.com> 2 13 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm
r283586 r284055 401 401 static RetainPtr<NSURL> testPCMDaemonLocation() 402 402 { 403 return [currentExecutableDirectory() URLByAppendingPathComponent:@" AdAttributionDaemon" isDirectory:NO];403 return [currentExecutableDirectory() URLByAppendingPathComponent:@"adattributiond" isDirectory:NO]; 404 404 } 405 405 … … 468 468 EXPECT_NULL(error); 469 469 470 system("killall AdAttributionDaemon-9 2> /dev/null");470 system("killall adattributiond -9 2> /dev/null"); 471 471 472 472 auto plist = testDaemonPList(tempDir); … … 495 495 static void cleanUpDaemon(NSURL *tempDir) 496 496 { 497 system("killall AdAttributionDaemon-9");497 system("killall adattributiond -9"); 498 498 499 499 EXPECT_TRUE([[NSFileManager defaultManager] fileExistsAtPath:tempDir.path]);
Note: See TracChangeset
for help on using the changeset viewer.