Changeset 200504 in webkit


Ignore:
Timestamp:
May 5, 2016 7:40:50 PM (8 years ago)
Author:
ap@apple.com
Message:

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

Reviewed by Alex Christensen.

  • WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm:

(WTR::InjectedBundlePage::platformDidStartProvisionalLoadForFrame): Added a FIXME.

  • WebKitTestRunner/cocoa/CrashReporterInfo.mm:

(WTR::testDescription): Don't bail out if the port is neither 8000 nor 8443; we
use other port numbers too. For http tests, return the complete URL string, not
just the path.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r200461 r200504  
     12016-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
    1162016-05-04  Alex Christensen  <achristensen@webkit.org>
    217
  • trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm

    r189958 r200504  
    4343        return;
    4444
     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.
    4547    setCrashReportApplicationSpecificInformationToURL(InjectedBundle::singleton().testRunner()->testURL());
    4648}
  • trunk/Tools/WebKitTestRunner/cocoa/CrashReporterInfo.mm

    r195743 r200504  
    3434namespace WTR {
    3535
    36 static String testPathFromURL(WKURLRef url)
     36static String testDescription(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"  && (CFURLGetPortNumber(cfURL.get()) == 8000 || CFURLGetPortNumber(cfURL.get()) == 8443))
    63         return pathString;
     62    if (hostString != "127.0.0.1")
     63        return String();
    6464
    65     return String();
     65    return CFURLGetString(cfURL.get());
    6666}
    6767
    6868void setCrashReportApplicationSpecificInformationToURL(WKURLRef url)
    6969{
    70     String testPath = testPathFromURL(url);
    71     if (!testPath.isNull()) {
     70    String description = testDescription(url);
     71    if (!description.isNull()) {
    7272        String message("CRASHING TEST: ");
    73         message = message + testPath;
     73        message = message + description;
    7474        WKSetCrashReportApplicationSpecificInformation(message.createCFString().get());
    7575    }
Note: See TracChangeset for help on using the changeset viewer.