Changeset 200506 in webkit
- Timestamp:
- May 5, 2016, 11:07:25 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebKitTestRunner/cocoa/CrashReporterInfo.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r200504 r200506 1 2016-05-05 Alexey Proskuryakov <ap@apple.com> 2 3 Partially revert http://trac.webkit.org/r200504 4 Improve HTTP test names in WebKitTestRunner's crash report information 5 https://bugs.webkit.org/show_bug.cgi?id=157389 6 7 * WebKitTestRunner/cocoa/CrashReporterInfo.mm: Turns out that we can't have URLs 8 in crash reporter information. 9 1 10 2016-05-05 Alexey Proskuryakov <ap@apple.com> 2 11 -
trunk/Tools/WebKitTestRunner/cocoa/CrashReporterInfo.mm
r200504 r200506 34 34 namespace WTR { 35 35 36 static String test Description(WKURLRef url)36 static String testPathFromURL(WKURLRef url) 37 37 { 38 38 RetainPtr<CFURLRef> cfURL = adoptCF(WKURLCopyCFURL(kCFAllocatorDefault, url)); … … 60 60 RetainPtr<CFStringRef> hostCFString = adoptCF(CFURLCopyHostName(cfURL.get())); 61 61 String hostString(hostCFString.get()); 62 if (hostString != "127.0.0.1")63 return String();62 if (hostString == "127.0.0.1") 63 return pathString; 64 64 65 return CFURLGetString(cfURL.get());65 return String(); 66 66 } 67 67 68 68 void setCrashReportApplicationSpecificInformationToURL(WKURLRef url) 69 69 { 70 String description = testDescription(url);71 if (! description.isNull()) {70 String testPath = testPathFromURL(url); 71 if (!testPath.isNull()) { 72 72 String message("CRASHING TEST: "); 73 message = message + description;73 message = message + testPath; 74 74 WKSetCrashReportApplicationSpecificInformation(message.createCFString().get()); 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.