Changeset 286615 in webkit
- Timestamp:
- Dec 7, 2021, 1:19:46 PM (5 years ago)
- Location:
- branches/safari-613.1.10-branch/Source/WebKit
- Files:
-
- 7 added
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Configurations/webpushtool.xcconfig (added)
-
Resources/webpushtool.entitlements (added)
-
WebKit.xcodeproj/project.pbxproj (modified) (17 diffs)
-
WebKit.xcodeproj/xcshareddata/xcschemes/webpushtool.xcscheme (added)
-
webpushd/webpushtool (added)
-
webpushd/webpushtool/WebPushToolConnection.h (added)
-
webpushd/webpushtool/WebPushToolConnection.mm (added)
-
webpushd/webpushtool/WebPushToolMain.mm (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613.1.10-branch/Source/WebKit/ChangeLog
r286614 r286615 1 2021-12-06 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r286533. rdar://problem/86052131 4 5 Add command line `webpushtool` for daemon development and debugging. 6 https://bugs.webkit.org/show_bug.cgi?id=233845 7 8 Reviewed by Tim Horton. 9 10 No behavior change. 11 12 This utility will eventually be quite fleshed out. 13 14 For now, it can act as a terminal that prints debug messages from webpushd. 15 16 * Configurations/webpushtool.xcconfig: Added. 17 * Resources/webpushtool.entitlements: Added. 18 * WebKit.xcodeproj/project.pbxproj: 19 * WebKit.xcodeproj/xcshareddata/xcschemes/webpushtool.xcscheme: Added. 20 21 * webpushd/webpushtool/WebPushToolConnection.h: Added. 22 * webpushd/webpushtool/WebPushToolConnection.mm: Added. 23 (WebPushTool::Connection::create): 24 (WebPushTool::maybeConnectToService): 25 (WebPushTool::Connection::Connection): 26 (WebPushTool::Connection::connectToService): 27 (WebPushTool::Connection::startAction): 28 (WebPushTool::Connection::startDebugStreamAction): 29 (WebPushTool::Connection::sendAuditToken): 30 (WebPushTool::Connection::connectionDropped): 31 (WebPushTool::Connection::messageReceived): 32 * webpushd/webpushtool/WebPushToolMain.mm: Added. 33 (printUsageAndTerminate): 34 (main): 35 36 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286533 268f45cc-cd09-0410-ab3c-d52691b4dbfc 37 38 2021-12-04 Brady Eidson <beidson@apple.com> 39 40 Add command line `webpushtool` for daemon development and debugging. 41 https://bugs.webkit.org/show_bug.cgi?id=233845 42 43 Reviewed by Tim Horton. 44 45 No behavior change. 46 47 This utility will eventually be quite fleshed out. 48 49 For now, it can act as a terminal that prints debug messages from webpushd. 50 51 * Configurations/webpushtool.xcconfig: Added. 52 * Resources/webpushtool.entitlements: Added. 53 * WebKit.xcodeproj/project.pbxproj: 54 * WebKit.xcodeproj/xcshareddata/xcschemes/webpushtool.xcscheme: Added. 55 56 * webpushd/webpushtool/WebPushToolConnection.h: Added. 57 * webpushd/webpushtool/WebPushToolConnection.mm: Added. 58 (WebPushTool::Connection::create): 59 (WebPushTool::maybeConnectToService): 60 (WebPushTool::Connection::Connection): 61 (WebPushTool::Connection::connectToService): 62 (WebPushTool::Connection::startAction): 63 (WebPushTool::Connection::startDebugStreamAction): 64 (WebPushTool::Connection::sendAuditToken): 65 (WebPushTool::Connection::connectionDropped): 66 (WebPushTool::Connection::messageReceived): 67 * webpushd/webpushtool/WebPushToolMain.mm: Added. 68 (printUsageAndTerminate): 69 (main): 70 1 71 2021-12-06 Russell Epstein <repstein@apple.com> 2 72 -
branches/safari-613.1.10-branch/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r286614 r286615 15 15 ); 16 16 dependencies = ( 17 517B5F6D275B07C3002DC22D /* PBXTargetDependency */, 17 18 5C1579DF27165E0800ED5280 /* PBXTargetDependency */, 18 19 5CAF7AA926F93F9F0003F19E /* PBXTargetDependency */, … … 1022 1023 517B5F2E2757382A002DC22D /* WebPushDaemonConnectionConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 517B5F2D2757382A002DC22D /* WebPushDaemonConnectionConfiguration.h */; }; 1023 1024 517B5F2F2757382B002DC22D /* WebPushDaemonConnectionConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 517B5F2D2757382A002DC22D /* WebPushDaemonConnectionConfiguration.h */; }; 1025 517B5F65275A8D7F002DC22D /* WebPushToolMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517B5F64275A8D7E002DC22D /* WebPushToolMain.mm */; }; 1026 517B5F68275A9A78002DC22D /* WebPushToolConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 517B5F67275A9A78002DC22D /* WebPushToolConnection.mm */; }; 1024 1027 517CF0E3163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 517CF0E1163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp */; }; 1025 1028 517CF0E3163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 517CF0E1163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp */; }; … … 2115 2118 remoteGlobalIDString = C0CE72851247E66800BC0EC4; 2116 2119 remoteInfo = "Derived Sources"; 2120 }; 2121 517B5F6C275B07C3002DC22D /* PBXContainerItemProxy */ = { 2122 isa = PBXContainerItemProxy; 2123 containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; 2124 proxyType = 1; 2125 remoteGlobalIDString = 517B5F5A275A8D3E002DC22D; 2126 remoteInfo = webpushtool; 2117 2127 }; 2118 2128 5742A2E72535613F00B7BA14 /* PBXContainerItemProxy */ = { … … 4321 4331 517A530E1F47A84300DCDC0A /* WebSWClientConnectionMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebSWClientConnectionMessageReceiver.cpp; path = DerivedSources/WebKit2/WebSWClientConnectionMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 4322 4332 517B5F2D2757382A002DC22D /* WebPushDaemonConnectionConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPushDaemonConnectionConfiguration.h; sourceTree = "<group>"; }; 4333 517B5F5B275A8D3E002DC22D /* webpushtool */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = webpushtool; sourceTree = BUILT_PRODUCTS_DIR; }; 4334 517B5F64275A8D7E002DC22D /* WebPushToolMain.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPushToolMain.mm; sourceTree = "<group>"; }; 4335 517B5F66275A9A78002DC22D /* WebPushToolConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPushToolConnection.h; sourceTree = "<group>"; }; 4336 517B5F67275A9A78002DC22D /* WebPushToolConnection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPushToolConnection.mm; sourceTree = "<group>"; }; 4337 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = webpushtool.xcconfig; sourceTree = "<group>"; }; 4338 517B5F6B275AE50B002DC22D /* webpushtool.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; name = webpushtool.entitlements; path = Resources/webpushtool.entitlements; sourceTree = "<group>"; }; 4323 4339 517CF0E1163A486C00C2950E /* NetworkProcessConnectionMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = NetworkProcessConnectionMessageReceiver.cpp; path = DerivedSources/WebKit2/NetworkProcessConnectionMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 4324 4340 517CF0E1163A486C00C2950F /* CacheStorageEngineConnectionMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CacheStorageEngineConnectionMessageReceiver.cpp; path = DerivedSources/WebKit2/CacheStorageEngineConnectionMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; … … 6373 6389 runOnlyForDeploymentPostprocessing = 0; 6374 6390 }; 6391 517B5F58275A8D3E002DC22D /* Frameworks */ = { 6392 isa = PBXFrameworksBuildPhase; 6393 buildActionMask = 2147483647; 6394 files = ( 6395 ); 6396 runOnlyForDeploymentPostprocessing = 0; 6397 }; 6375 6398 5742A2ED2535613F00B7BA14 /* Frameworks */ = { 6376 6399 isa = PBXFrameworksBuildPhase; … … 6458 6481 A16E66002581930800EE1749 /* MediaFormatReader.bundle */, 6459 6482 8DC2EF5B0486A6940098B216 /* WebKit.framework */, 6483 517B5F5B275A8D3E002DC22D /* webpushtool */, 6460 6484 ); 6461 6485 name = Products; … … 6700 6724 E1D26A4C1759634E0095BFD1 /* WebContentProcess.xib */, 6701 6725 E133FD891423DD7F00FC7BFB /* WebKit.icns */, 6726 517B5F6B275AE50B002DC22D /* webpushtool.entitlements */, 6702 6727 ); 6703 6728 name = Resources; … … 6850 6875 37119A7C20CCB64E002C6DC9 /* WebKitTargetConditionals.xcconfig */, 6851 6876 5C1579DD27165BE500ED5280 /* webpushd.xcconfig */, 6877 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */, 6852 6878 ); 6853 6879 path = Configurations; … … 9339 9365 sourceTree = "<group>"; 9340 9366 }; 9367 517B5F63275A8D5C002DC22D /* webpushtool */ = { 9368 isa = PBXGroup; 9369 children = ( 9370 517B5F66275A9A78002DC22D /* WebPushToolConnection.h */, 9371 517B5F67275A9A78002DC22D /* WebPushToolConnection.mm */, 9372 517B5F64275A8D7E002DC22D /* WebPushToolMain.mm */, 9373 ); 9374 path = webpushtool; 9375 sourceTree = "<group>"; 9376 }; 9341 9377 518E8EF116B208F000E91429 /* Authentication */ = { 9342 9378 isa = PBXGroup; … … 9818 9854 children = ( 9819 9855 5CBB6D4D271F67CC00FD1A5D /* com.apple.webkit.webpushd.plist */, 9856 517B5F63275A8D5C002DC22D /* webpushtool */, 9820 9857 5160E954274B887100567388 /* AppBundleRequest.h */, 9821 9858 5160E953274B887100567388 /* AppBundleRequest.mm */, … … 13869 13906 productType = "com.apple.product-type.xpc-service"; 13870 13907 }; 13908 517B5F5A275A8D3E002DC22D /* webpushtool */ = { 13909 isa = PBXNativeTarget; 13910 buildConfigurationList = 517B5F62275A8D3E002DC22D /* Build configuration list for PBXNativeTarget "webpushtool" */; 13911 buildPhases = ( 13912 517B5F57275A8D3E002DC22D /* Sources */, 13913 517B5F58275A8D3E002DC22D /* Frameworks */, 13914 ); 13915 buildRules = ( 13916 ); 13917 dependencies = ( 13918 ); 13919 name = webpushtool; 13920 productName = webpushtool; 13921 productReference = 517B5F5B275A8D3E002DC22D /* webpushtool */; 13922 productType = "com.apple.product-type.tool"; 13923 }; 13871 13924 5742A2E52535613F00B7BA14 /* WebAuthn */ = { 13872 13925 isa = PBXNativeTarget; … … 14065 14118 LastUpgradeCheck = 1140; 14066 14119 TargetAttributes = { 14120 517B5F5A275A8D3E002DC22D = { 14121 CreatedOnToolsVersion = 13.0; 14122 }; 14067 14123 5325BDCD21DFF47700A0DEE1 = { 14068 14124 CreatedOnToolsVersion = 10.1; … … 14121 14177 5CAF7A9926F93A750003F19E /* adattributiond */, 14122 14178 5C1579CC27165B2F00ED5280 /* webpushd */, 14179 517B5F5A275A8D3E002DC22D /* webpushtool */, 14123 14180 ); 14124 14181 }; … … 14845 14902 5CE912112293C278005BEC78 /* AuxiliaryProcessMain.cpp in Sources */, 14846 14903 5C9A9112228F69CC005C5B17 /* XPCServiceMain.mm in Sources */, 14904 ); 14905 runOnlyForDeploymentPostprocessing = 0; 14906 }; 14907 517B5F57275A8D3E002DC22D /* Sources */ = { 14908 isa = PBXSourcesBuildPhase; 14909 buildActionMask = 2147483647; 14910 files = ( 14911 517B5F68275A9A78002DC22D /* WebPushToolConnection.mm in Sources */, 14912 517B5F65275A8D7F002DC22D /* WebPushToolMain.mm in Sources */, 14847 14913 ); 14848 14914 runOnlyForDeploymentPostprocessing = 0; … … 15402 15468 targetProxy = 37F7407812721F740093869B /* PBXContainerItemProxy */; 15403 15469 }; 15470 517B5F6D275B07C3002DC22D /* PBXTargetDependency */ = { 15471 isa = PBXTargetDependency; 15472 target = 517B5F5A275A8D3E002DC22D /* webpushtool */; 15473 targetProxy = 517B5F6C275B07C3002DC22D /* PBXContainerItemProxy */; 15474 }; 15404 15475 5742A2E62535613F00B7BA14 /* PBXTargetDependency */ = { 15405 15476 isa = PBXTargetDependency; … … 15631 15702 name = Production; 15632 15703 }; 15704 517B5F5F275A8D3E002DC22D /* Debug */ = { 15705 isa = XCBuildConfiguration; 15706 baseConfigurationReference = 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */; 15707 buildSettings = { 15708 }; 15709 name = Debug; 15710 }; 15711 517B5F60275A8D3E002DC22D /* Release */ = { 15712 isa = XCBuildConfiguration; 15713 baseConfigurationReference = 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */; 15714 buildSettings = { 15715 }; 15716 name = Release; 15717 }; 15718 517B5F61275A8D3E002DC22D /* Production */ = { 15719 isa = XCBuildConfiguration; 15720 baseConfigurationReference = 517B5F6A275AA199002DC22D /* webpushtool.xcconfig */; 15721 buildSettings = { 15722 }; 15723 name = Production; 15724 }; 15633 15725 5325BDCE21DFF47800A0DEE1 /* Debug */ = { 15634 15726 isa = XCBuildConfiguration; … … 16024 16116 defaultConfigurationName = Production; 16025 16117 }; 16118 517B5F62275A8D3E002DC22D /* Build configuration list for PBXNativeTarget "webpushtool" */ = { 16119 isa = XCConfigurationList; 16120 buildConfigurations = ( 16121 517B5F5F275A8D3E002DC22D /* Debug */, 16122 517B5F60275A8D3E002DC22D /* Release */, 16123 517B5F61275A8D3E002DC22D /* Production */, 16124 ); 16125 defaultConfigurationIsVisible = 0; 16126 defaultConfigurationName = Production; 16127 }; 16026 16128 5325BDD121DFF47800A0DEE1 /* Build configuration list for PBXAggregateTarget "Apply Configuration to XCFileLists" */ = { 16027 16129 isa = XCConfigurationList;
Note:
See TracChangeset
for help on using the changeset viewer.