⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 200506 in webkit


Ignore:
Timestamp:
May 5, 2016, 11:07:25 PM (10 years ago)
Author:
ap@apple.com
Message:

Partially revert ​http://trac.webkit.org/r200504
Improve HTTP test names in WebKitTestRunner's crash report information
​https://bugs.webkit.org/show_bug.cgi?id=157389

  • WebKitTestRunner/cocoa/CrashReporterInfo.mm: Turns out that we can't have URLs

in crash reporter information.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r200504 r200506  
     12016-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
    1102016-05-05  Alexey Proskuryakov  <ap@apple.com>
    211
  • trunk/Tools/WebKitTestRunner/cocoa/CrashReporterInfo.mm

    r200504 r200506  
    3434namespace WTR {
    3535
    36 static String testDescription(WKURLRef url)
     36static String testPathFromURL(WKURLRef url)
    3737{
    3838    RetainPtr<CFURLRef> cfURL = adoptCF(WKURLCopyCFURL(kCFAllocatorDefault, url));
    … …  
    6060    RetainPtr<CFStringRef> hostCFString = adoptCF(CFURLCopyHostName(cfURL.get()));
    6161    String hostString(hostCFString.get());
    62     if (hostString != "127.0.0.1")
    63         return String();
     62    if (hostString == "127.0.0.1")
     63        return pathString;
    6464
    65     return CFURLGetString(cfURL.get());
     65    return String();
    6666}
    6767
    6868void setCrashReportApplicationSpecificInformationToURL(WKURLRef url)
    6969{
    70     String description = testDescription(url);
    71     if (!description.isNull()) {
     70    String testPath = testPathFromURL(url);
     71    if (!testPath.isNull()) {
    7272        String message("CRASHING TEST: ");
    73         message = message + description;
     73        message = message + testPath;
    7474        WKSetCrashReportApplicationSpecificInformation(message.createCFString().get());
    7575    }
Note: See TracChangeset for help on using the changeset viewer.