Changeset 89658 in webkit


Ignore:
Timestamp:
Jun 24, 2011, 1:25:50 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-24 Vsevolod Vlasov <vsevik@chromium.org>

Reviewed by Darin Fisher.

Web Inspector: [Chromium] Successfully prefetched page shows up as an error in console
https://bugs.webkit.org/show_bug.cgi?id=62396

  • public/WebURLError.h: (WebKit::WebURLError::WebURLError):
  • src/WebURLError.cpp: (WebKit::WebURLError::operator=): (WebKit::WebURLError::operator ResourceError):
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r89652 r89658  
     12011-06-24  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Web Inspector: [Chromium] Successfully prefetched page shows up as an error in console
     6        https://bugs.webkit.org/show_bug.cgi?id=62396
     7
     8        * public/WebURLError.h:
     9        (WebKit::WebURLError::WebURLError):
     10        * src/WebURLError.cpp:
     11        (WebKit::WebURLError::operator=):
     12        (WebKit::WebURLError::operator ResourceError):
     13
    1142011-06-23  Yury Semikhatsky  <yurys@chromium.org>
    215
  • trunk/Source/WebKit/chromium/public/WebURLError.h

    r50682 r89658  
    5353    int reason;
    5454
     55    // A flag showing whether this error should be treated as a cancellation,
     56    // e.g. we do not show console errors for cancellations.
     57    bool isCancellation;
     58
    5559    // The url that failed to load.
    5660    WebURL unreachableURL;
    5761
    58     WebURLError() : reason(0) { }
     62    WebURLError() : reason(0), isCancellation(false) { }
    5963
    6064#if defined(WEBKIT_IMPLEMENTATION)
  • trunk/Source/WebKit/chromium/src/WebURLError.cpp

    r56825 r89658  
    5353        reason = error.errorCode();
    5454        unreachableURL = KURL(ParsedURLString, error.failingURL());
     55        isCancellation = error.isCancellation();
    5556    }
    5657    return *this;
     
    6263        return ResourceError();
    6364    CString spec = unreachableURL.spec();
    64     return ResourceError(domain, reason,
    65                          String::fromUTF8(spec.data(), spec.length()),
    66                          String());
     65    ResourceError resourceError = ResourceError(domain, reason,
     66                                                String::fromUTF8(spec.data(),
     67                                                spec.length()), String());
     68    resourceError.setIsCancellation(isCancellation);
     69    return resourceError;
    6770}
    6871
Note: See TracChangeset for help on using the changeset viewer.