Changeset 115086 in webkit


Ignore:
Timestamp:
Apr 24, 2012 11:32:58 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Add a description field in WebURLError and show failure description in the inspector network tab.
https://bugs.webkit.org/show_bug.cgi?id=84566

Patch by Yuzhu Shen <yzshen@chromium.org> on 2012-04-24
Reviewed by Pavel Feldman.

Source/Platform:

  • chromium/public/WebURLError.h:

(WebURLError):

Source/WebCore:

  • inspector/front-end/NetworkPanel.js:

(WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):

  • platform/chromium/support/WebURLError.cpp:

(WebKit::WebURLError::operator=):
(WebKit::WebURLError::operator ResourceError):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r114983 r115086  
     12012-04-24  Yuzhu Shen  <yzshen@chromium.org>
     2
     3        [chromium] Add a description field in WebURLError and show failure description in the inspector network tab.
     4        https://bugs.webkit.org/show_bug.cgi?id=84566
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * chromium/public/WebURLError.h:
     9        (WebURLError):
     10
    1112012-04-18  James Robinson  <jamesr@chromium.org>
    212
  • trunk/Source/Platform/chromium/public/WebURLError.h

    r112501 r115086  
    6060    WebURL unreachableURL;
    6161
     62    // A description for the error.
     63    WebString localizedDescription;
     64
    6265    WebURLError() : reason(0), isCancellation(false) { }
    6366
  • trunk/Source/WebCore/ChangeLog

    r115085 r115086  
     12012-04-24  Yuzhu Shen  <yzshen@chromium.org>
     2
     3        [chromium] Add a description field in WebURLError and show failure description in the inspector network tab.
     4        https://bugs.webkit.org/show_bug.cgi?id=84566
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/NetworkPanel.js:
     9        (WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):
     10        * platform/chromium/support/WebURLError.cpp:
     11        (WebKit::WebURLError::operator=):
     12        (WebKit::WebURLError::operator ResourceError):
     13
    1142012-04-24  Rob Buis  <rbuis@rim.com>
    215
  • trunk/Source/WebCore/inspector/front-end/NetworkPanel.js

    r114504 r115086  
    18591859
    18601860        if (this._request.failed) {
    1861             if (this._request.canceled)
    1862                 this._statusCell.setTextAndTitle(WebInspector.UIString("(canceled)"));
    1863             else
    1864                 this._statusCell.setTextAndTitle(WebInspector.UIString("(failed)"));
     1861            var failText = this._request.canceled ? WebInspector.UIString("(canceled)") : WebInspector.UIString("(failed)");
     1862            if (this._request.localizedFailDescription) {
     1863                this._statusCell.appendChild(document.createTextNode(failText));
     1864                this._appendSubtitle(this._statusCell, this._request.localizedFailDescription);
     1865                this._statusCell.title = failText + " " + this._request.localizedFailDescription;
     1866            } else {
     1867                this._statusCell.setTextAndTitle(failText);
     1868            }
    18651869            this._statusCell.addStyleClass("network-dim-cell");
    18661870            this.element.addStyleClass("network-error-row");
  • trunk/Source/WebCore/platform/chromium/support/WebURLError.cpp

    r112754 r115086  
    5454        unreachableURL = KURL(ParsedURLString, error.failingURL());
    5555        isCancellation = error.isCancellation();
     56        localizedDescription = error.localizedDescription();
    5657    }
    5758    return *this;
     
    6566    ResourceError resourceError = ResourceError(domain, reason,
    6667                                                String::fromUTF8(spec.data(),
    67                                                 spec.length()), String());
     68                                                spec.length()),
     69                                                localizedDescription);
    6870    resourceError.setIsCancellation(isCancellation);
    6971    return resourceError;
Note: See TracChangeset for help on using the changeset viewer.