Changeset 200504 in webkit
- Timestamp:
- May 5, 2016, 7:40:50 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r200461 r200504 1 2016-05-05 Alexey Proskuryakov <ap@apple.com> 2 3 Improve HTTP test names in WebKitTestRunner's crash report information 4 https://bugs.webkit.org/show_bug.cgi?id=157389 5 6 Reviewed by Alex Christensen. 7 8 * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm: 9 (WTR::InjectedBundlePage::platformDidStartProvisionalLoadForFrame): Added a FIXME. 10 11 * WebKitTestRunner/cocoa/CrashReporterInfo.mm: 12 (WTR::testDescription): Don't bail out if the port is neither 8000 nor 8443; we 13 use other port numbers too. For http tests, return the complete URL string, not 14 just the path. 15 1 16 2016-05-04 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm
r189958 r200504 43 43 return; 44 44 45 // FIXME: We should not be changing test URL every time the test navigates. The current URL could be 46 // aditional information, but it shouldn't replace the initial test URL. 45 47 setCrashReportApplicationSpecificInformationToURL(InjectedBundle::singleton().testRunner()->testURL()); 46 48 } -
trunk/Tools/WebKitTestRunner/cocoa/CrashReporterInfo.mm
r195743 r200504 34 34 namespace WTR { 35 35 36 static String test PathFromURL(WKURLRef url)36 static String testDescription(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" && (CFURLGetPortNumber(cfURL.get()) == 8000 || CFURLGetPortNumber(cfURL.get()) == 8443))63 return pathString;62 if (hostString != "127.0.0.1") 63 return String(); 64 64 65 return String();65 return CFURLGetString(cfURL.get()); 66 66 } 67 67 68 68 void setCrashReportApplicationSpecificInformationToURL(WKURLRef url) 69 69 { 70 String testPath = testPathFromURL(url);71 if (! testPath.isNull()) {70 String description = testDescription(url); 71 if (!description.isNull()) { 72 72 String message("CRASHING TEST: "); 73 message = message + testPath;73 message = message + description; 74 74 WKSetCrashReportApplicationSpecificInformation(message.createCFString().get()); 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.