| Index: Source/devtools/front_end/network/NetworkDataGridNode.js
|
| diff --git a/Source/devtools/front_end/network/NetworkDataGridNode.js b/Source/devtools/front_end/network/NetworkDataGridNode.js
|
| index d8ad7d13c2465650ad9d44614255ad07f3fa0492..06447db86695f2020840d0920e12a992cfb81220 100644
|
| --- a/Source/devtools/front_end/network/NetworkDataGridNode.js
|
| +++ b/Source/devtools/front_end/network/NetworkDataGridNode.js
|
| @@ -260,7 +260,7 @@ WebInspector.NetworkDataGridNode.prototype = {
|
| {
|
| cell.classList.toggle("network-dim-cell", !this._isFailed() && (this._request.cached() || !this._request.statusCode));
|
|
|
| - if (this._request.failed && !this._request.canceled && !this._request.blocked) {
|
| + if (this._request.failed && !this._request.canceled && !this._request.wasBlocked()) {
|
| var failText = WebInspector.UIString("(failed)");
|
| if (this._request.localizedFailDescription) {
|
| cell.createTextChild(failText);
|
| @@ -278,8 +278,26 @@ WebInspector.NetworkDataGridNode.prototype = {
|
| cell.setTextAndTitle(WebInspector.UIString("(data)"));
|
| } else if (this._request.canceled) {
|
| cell.setTextAndTitle(WebInspector.UIString("(canceled)"));
|
| - } else if (this._request.blocked) {
|
| - cell.setTextAndTitle(WebInspector.UIString("(blocked)"));
|
| + } else if (this._request.wasBlocked()) {
|
| + var reason = WebInspector.UIString("other");
|
| + switch (this._request.blockedReason()) {
|
| + case NetworkAgent.BlockedReason.Csp:
|
| + reason = WebInspector.UIString("csp");
|
| + break;
|
| + case NetworkAgent.BlockedReason.MixedContent:
|
| + reason = WebInspector.UIString("mixed-content");
|
| + break;
|
| + case NetworkAgent.BlockedReason.Origin:
|
| + reason = WebInspector.UIString("origin");
|
| + break;
|
| + case NetworkAgent.BlockedReason.Inspector:
|
| + reason = WebInspector.UIString("devtools");
|
| + break;
|
| + case NetworkAgent.BlockedReason.Other:
|
| + reason = WebInspector.UIString("other");
|
| + break;
|
| + }
|
| + cell.setTextAndTitle(WebInspector.UIString("(blocked:%s)", reason));
|
| } else if (this._request.finished) {
|
| cell.setTextAndTitle(WebInspector.UIString("Finished"));
|
| } else {
|
|
|