Changeset 84924 in webkit


Ignore:
Timestamp:
Apr 26, 2011 10:16:36 AM (13 years ago)
Author:
Adam Roben
Message:

Make DRT/win log loading errors the same way DRT/mac does

Fixes <http://webkit.org/b/59303> [Windows WebKit1 Tests]
http/tests/misc/will-send-request-returns-null-on-redirect.html failing since r84742

Reviewed by Alexey Proskuryakov.

  • DumpRenderTree/win/ResourceLoadDelegate.cpp:

(ResourceLoadDelegate::descriptionSuitableForTestResult): Removed the workaround for
<rdar://problem/5064234>, which has long since been fixed, and then made this function match
-[NSError(DRTExtras) _drt_descriptionSuitableForTestResult] more closely.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r84915 r84924  
     12011-04-26  Adam Roben  <aroben@apple.com>
     2
     3        Make DRT/win log loading errors the same way DRT/mac does
     4
     5        Fixes <http://webkit.org/b/59303> [Windows WebKit1 Tests]
     6        http/tests/misc/will-send-request-returns-null-on-redirect.html failing since r84742
     7
     8        Reviewed by Alexey Proskuryakov.
     9
     10        * DumpRenderTree/win/ResourceLoadDelegate.cpp:
     11        (ResourceLoadDelegate::descriptionSuitableForTestResult): Removed the workaround for
     12        <rdar://problem/5064234>, which has long since been fixed, and then made this function match
     13        -[NSError(DRTExtras) _drt_descriptionSuitableForTestResult] more closely.
     14
    1152011-04-26  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Tools/DumpRenderTree/win/ResourceLoadDelegate.cpp

    r71116 r84924  
    155155        return wstring();
    156156
    157     wstring failingURL;
    158    
    159     // If the error doesn't have a failing URL, we fake one by using the URL the resource had
    160     // at creation time. This seems to work fine for now.
    161     // See <rdar://problem/5064234> CFErrors should have failingURL key.
    162     if (failingURLSTR)
    163         failingURL = wstringFromBSTR(failingURLSTR);
    164     else
    165         failingURL = descriptionSuitableForTestResult(identifier);
    166 
    167     ::SysFreeString(failingURLSTR);
    168 
    169     result += L", failing URL \"" + urlSuitableForTestResult(failingURL) + L"\">";
     157    if (failingURLSTR) {
     158        result += L", failing URL \"" + urlSuitableForTestResult(wstringFromBSTR(failingURLSTR)) + L"\"";
     159        ::SysFreeString(failingURLSTR);
     160    }
     161
     162    result += L">";
    170163
    171164    return result;
Note: See TracChangeset for help on using the changeset viewer.