Changeset 252065 in webkit
- Timestamp:
- Nov 5, 2019 11:36:12 AM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r251963 r252065 1 2019-11-05 Tuomas Karkkainen <tuomas.webkit@apple.com> 2 3 move CrashReporterClientSPI.h and parts of WKCrashReporter to WTF so it can be used in JavaScriptCore 4 https://bugs.webkit.org/show_bug.cgi?id=203803 5 6 Reviewed by Saam Barati. 7 8 * WTF.xcodeproj/project.pbxproj: 9 * wtf/PlatformMac.cmake: 10 * wtf/cocoa/CrashReporter.cpp: Added. 11 (WTF::setCrashLogMessage): 12 * wtf/cocoa/CrashReporter.h: Added. 13 * wtf/spi/cocoa/CrashReporterClientSPI.h: Renamed from Source/WebKit/Platform/spi/Cocoa/CrashReporterClientSPI.h. 14 1 15 2019-11-02 Devin Rousso <drousso@apple.com> 2 16 -
trunk/Source/WTF/WTF.xcodeproj/project.pbxproj
r249808 r252065 159 159 C805EF39E5F14481A96D39FC /* ASCIILiteral.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6F050790D9C432A99085E75 /* ASCIILiteral.cpp */; }; 160 160 CD5497AC15857D0300B5BC30 /* MediaTime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CD5497AA15857D0300B5BC30 /* MediaTime.cpp */; }; 161 CEA072AA236FFBF70018839C /* CrashReporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CEA072A9236FFBF70018839C /* CrashReporter.cpp */; }; 161 162 DCEE22011CEA7551000C2396 /* BlockObjCExceptions.mm in Sources */ = {isa = PBXBuildFile; fileRef = DCEE21FD1CEA7551000C2396 /* BlockObjCExceptions.mm */; }; 162 163 E15556F518A0CC18006F48FB /* CryptographicUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E15556F318A0CC18006F48FB /* CryptographicUtilities.cpp */; }; … … 653 654 CDCC9BC422382FCE00FFB51C /* AggregateLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AggregateLogger.h; path = wtf/AggregateLogger.h; sourceTree = SOURCE_ROOT; }; 654 655 CE73E02419DCB7AB00580D5C /* XPCSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPCSPI.h; sourceTree = "<group>"; }; 656 CEA072A7236FFA160018839C /* CrashReporterClientSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CrashReporterClientSPI.h; sourceTree = "<group>"; }; 657 CEA072A8236FFBF70018839C /* CrashReporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CrashReporter.h; sourceTree = "<group>"; }; 658 CEA072A9236FFBF70018839C /* CrashReporter.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CrashReporter.cpp; sourceTree = "<group>"; }; 655 659 DCEE21FA1CEA7538000C2396 /* CFBundleSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CFBundleSPI.h; sourceTree = "<group>"; }; 656 660 DCEE21FC1CEA7551000C2396 /* BlockObjCExceptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BlockObjCExceptions.h; sourceTree = "<group>"; }; … … 1365 1369 isa = PBXGroup; 1366 1370 children = ( 1371 CEA072A7236FFA160018839C /* CrashReporterClientSPI.h */, 1367 1372 9384B73E20DEA284005B73B2 /* CFXPCBridgeSPI.h */, 1368 1373 E31BDE2822E913CC0029B105 /* MachVMSPI.h */, … … 1438 1443 5CC0EE862162BC2200A1A842 /* URLCocoa.mm */, 1439 1444 E4A0AD3C1A96253C00536DF6 /* WorkQueueCocoa.cpp */, 1445 CEA072A8236FFBF70018839C /* CrashReporter.h */, 1446 CEA072A9236FFBF70018839C /* CrashReporter.cpp */, 1440 1447 ); 1441 1448 path = cocoa; … … 1577 1584 7A6EBA3420746C34004F9C44 /* MachSendRight.cpp in Sources */, 1578 1585 A8A473E5151A825B004123FF /* MainThread.cpp in Sources */, 1586 CEA072AA236FFBF70018839C /* CrashReporter.cpp in Sources */, 1579 1587 A8A473E4151A825B004123FF /* MainThreadCocoa.mm in Sources */, 1580 1588 A8A473E9151A825B004123FF /* MD5.cpp in Sources */, -
trunk/Source/WTF/wtf/PlatformMac.cmake
r251831 r252065 14 14 cf/TypeCastsCF.h 15 15 16 cocoa/CrashReporter.h 16 17 cocoa/Entitlements.h 17 18 cocoa/NSURLExtras.h … … 24 25 25 26 spi/cocoa/CFXPCBridgeSPI.h 27 spi/cocoa/CrashReporterClientSPI.h 26 28 spi/cocoa/MachVMSPI.h 27 29 spi/cocoa/SecuritySPI.h … … 52 54 cocoa/AutodrainedPool.cpp 53 55 cocoa/CPUTimeCocoa.cpp 56 cocoa/CrashReporter.cpp 54 57 cocoa/Entitlements.mm 55 58 cocoa/FileSystemCocoa.mm -
trunk/Source/WTF/wtf/spi/cocoa/CrashReporterClientSPI.h
r252064 r252065 23 23 * THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 #pragma once 25 27 26 28 #if USE(APPLE_INTERNAL_SDK) -
trunk/Source/WebKit/ChangeLog
r252062 r252065 1 2019-11-05 Tuomas Karkkainen <tuomas.webkit@apple.com> 2 3 move CrashReporterClientSPI.h and parts of WKCrashReporter to WTF so it can be used in JavaScriptCore 4 https://bugs.webkit.org/show_bug.cgi?id=203803 5 6 Reviewed by Saam Barati. 7 8 No new tests added because functionality is not changing, code is only 9 moved from WebKit to WTF. 10 11 * Platform/cocoa/WKCrashReporter.mm: 12 (WebKit::setCrashReportApplicationSpecificInformation): 13 (WebKit::setCrashLogMessage): Deleted. 14 * WebKit.xcodeproj/project.pbxproj: 15 1 16 2019-11-05 Wenson Hsieh <wenson_hsieh@apple.com> 2 17 -
trunk/Source/WebKit/Platform/cocoa/WKCrashReporter.mm
r239294 r252065 26 26 #import "config.h" 27 27 #import "WKCrashReporter.h" 28 #import <wtf/cocoa/CrashReporter.h> 28 29 29 30 #import <cstdlib> 30 #import "CrashReporterClientSPI.h"31 32 // Avoid having to link with libCrashReporterClient.a33 CRASH_REPORTER_CLIENT_HIDDEN34 struct crashreporter_annotations_t gCRAnnotations35 __attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))36 = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0, 0 };37 31 38 32 namespace WebKit { 39 33 40 static void setCrashLogMessage(const char* message)41 {42 // We have to copy the string because CRSetCrashLogMessage doesn't.43 char* copiedMessage = message ? strdup(message) : nullptr;44 45 CRSetCrashLogMessage(copiedMessage);46 47 // Delete the message from last time, so we don't keep leaking messages.48 static char* previousCopiedCrashLogMessage;49 std::free(std::exchange(previousCopiedCrashLogMessage, copiedMessage));50 }51 52 34 void setCrashReportApplicationSpecificInformation(CFStringRef infoString) 53 35 { 54 setCrashLogMessage([(__bridge NSString *)infoString UTF8String]);36 WTF::setCrashLogMessage([(__bridge NSString *)infoString UTF8String]); 55 37 } 56 38 -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r251952 r252065 1369 1369 A1EA02401DAC31DB0096021F /* WebContextMenuListenerProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = A1EA023E1DAC31DB0096021F /* WebContextMenuListenerProxy.h */; }; 1370 1370 A1FB68241F6E518200C43F9F /* WKCrashReporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A1FB68221F6E518200C43F9F /* WKCrashReporter.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1371 A1FB68271F6E51C100C43F9F /* CrashReporterClientSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = A1FB68261F6E51C100C43F9F /* CrashReporterClientSPI.h */; };1372 1371 A513F5402154A5D700662841 /* WebPageInspectorController.h in Headers */ = {isa = PBXBuildFile; fileRef = A513F53E2154A5CC00662841 /* WebPageInspectorController.h */; }; 1373 1372 A518B5D21FE1D55B00F9FA28 /* WKInspectorWKWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = A518B5D01FE1D55B00F9FA28 /* WKInspectorWKWebView.h */; }; … … 4126 4125 A1FB68221F6E518200C43F9F /* WKCrashReporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKCrashReporter.h; sourceTree = "<group>"; }; 4127 4126 A1FB68231F6E518200C43F9F /* WKCrashReporter.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = WKCrashReporter.mm; sourceTree = "<group>"; }; 4128 A1FB68261F6E51C100C43F9F /* CrashReporterClientSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CrashReporterClientSPI.h; sourceTree = "<group>"; };4129 4127 A513F53E2154A5CC00662841 /* WebPageInspectorController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebPageInspectorController.h; sourceTree = "<group>"; }; 4130 4128 A513F53F2154A5CD00662841 /* WebPageInspectorController.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebPageInspectorController.cpp; sourceTree = "<group>"; }; … … 6280 6278 1A5705101BE410E500874AF1 /* BlockSPI.h */, 6281 6279 37C21CAD1E994C0C0029D5F9 /* CorePredictionSPI.h */, 6282 A1FB68261F6E51C100C43F9F /* CrashReporterClientSPI.h */,6283 6280 57DCEDAA214B9B430016B847 /* DeviceIdentitySPI.h */, 6284 6281 2DAADA8E2298C21000E36B0C /* DeviceManagementSPI.h */, … … 9500 9497 37C21CAE1E994C0C0029D5F9 /* CorePredictionSPI.h in Headers */, 9501 9498 B878B615133428DC006888E9 /* CorrectionPanel.h in Headers */, 9502 A1FB68271F6E51C100C43F9F /* CrashReporterClientSPI.h in Headers */,9503 9499 57597EBD218184900037F924 /* CtapAuthenticator.h in Headers */, 9504 9500 57597EB921811D9A0037F924 /* CtapHidDriver.h in Headers */,
Note: See TracChangeset
for help on using the changeset viewer.