2011-04-05 Vsevolod Vlasov <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: fix data url's status and timing the network panel.
        https://bugs.webkit.org/show_bug.cgi?id=53066

        Added data url support for status of network resources.

        * English.lproj/localizedStrings.js:
        * inspector/front-end/NetworkPanel.js:
        (WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.isDataURL):

git-svn-id: svn://svn.chromium.org/blink/trunk@82985 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6593745d
2011-04-05 Vsevolod Vlasov <vsevik@chromium.org>
Reviewed by Pavel Feldman.
Web Inspector: fix data url's status and timing the network panel.
https://bugs.webkit.org/show_bug.cgi?id=53066
Added data url support for status of network resources.
* English.lproj/localizedStrings.js:
* inspector/front-end/NetworkPanel.js:
(WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):
* inspector/front-end/Resource.js:
(WebInspector.Resource.prototype.isDataURL):
2011-04-04 Vitaly Repeshko <vitalyr@chromium.org> 2011-04-04 Vitaly Repeshko <vitalyr@chromium.org>
Reviewed by Adam Barth. Reviewed by Adam Barth.
Bvar localizedStrings = new Object; Bvar localizedStrings = new Object;
......
...@@ -1520,8 +1520,11 @@ WebInspector.NetworkDataGridNode.prototype = { ...@@ -1520,8 +1520,11 @@ WebInspector.NetworkDataGridNode.prototype = {
this._appendSubtitle(this._statusCell, this._resource.statusText); this._appendSubtitle(this._statusCell, this._resource.statusText);
this._statusCell.title = this._resource.statusCode + " " + this._resource.statusText; this._statusCell.title = this._resource.statusCode + " " + this._resource.statusText;
} else { } else {
if (this._resource.isDataURL() && this._resource.finished)
this._statusCell.textContent = WebInspector.UIString("(data url)");
else
this._statusCell.textContent = WebInspector.UIString("Pending");
this._statusCell.addStyleClass("network-dim-cell"); this._statusCell.addStyleClass("network-dim-cell");
this._statusCell.textContent = WebInspector.UIString("Pending");
} }
}, },
......
...@@ -716,6 +716,11 @@ WebInspector.Resource.prototype = { ...@@ -716,6 +716,11 @@ WebInspector.Resource.prototype = {
image.src = this.url; image.src = this.url;
}, },
isDataURL: function()
{
return this.url.match(/^data:/i);
},
_contentURL: function() _contentURL: function()
{ {
const maxDataUrlSize = 1024 * 1024; const maxDataUrlSize = 1024 * 1024;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment