Skip to content

Commit f214a62

Browse files
author
Daniel Herzog
committed
Removed unused properties; DFL-3614: 'Name' and 'Value' labels in network details should not have 'not-content' class
1 parent 74c6997 commit f214a62

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

src/network/network_details_templates.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ templates._request_headers = function(req, do_raw)
201201
return this._pre(this.headers_tonkenized(header_tokens, false));
202202
}
203203
return ["span", ui_strings.S_NETWORK_REQUEST_NO_HEADERS_LABEL,
204-
"class", templates.UI_CLASSNAMES];
204+
"class", templates.UI_CLASSNAME];
205205
}
206206

207207
var ret = [];
208208
if (!req.request_headers)
209209
{
210210
ret.push(["span", ui_strings.S_NETWORK_REQUEST_NO_HEADERS_LABEL,
211-
"class", templates.UI_CLASSNAMES]);
211+
"class", templates.UI_CLASSNAME]);
212212
}
213213
else
214214
{
@@ -286,7 +286,7 @@ templates._response_headers = function(resp, do_raw)
286286
return this._pre(this.headers_tonkenized(header_tokens, true));
287287
}
288288
return ["span", ui_strings.S_NETWORK_REQUEST_NO_HEADERS_LABEL,
289-
"class", templates.UI_CLASSNAMES];
289+
"class", templates.UI_CLASSNAME];
290290
}
291291

292292
var ret = resp.response_headers && resp.response_headers.map(this._headers_pseudo_raw);
@@ -302,7 +302,7 @@ templates._response_headers = function(resp, do_raw)
302302
if (!ret)
303303
{
304304
ret = ["span", ui_strings.S_NETWORK_REQUEST_NO_HEADERS_LABEL,
305-
"class", templates.UI_CLASSNAMES];
305+
"class", templates.UI_CLASSNAME];
306306
}
307307
return templates._pre(ret);
308308
};
@@ -364,7 +364,7 @@ templates._request_body = function(req, do_raw)
364364
ret.push(part.content.stringData);
365365
else
366366
ret.push(["span", ui_strings.S_NETWORK_N_BYTE_BODY.replace("%s", part.contentLength),
367-
"class", templates.UI_CLASSNAMES]);
367+
"class", templates.UI_CLASSNAME]);
368368

369369
if (use_raw_boundary && part === req.request_body.partList.last)
370370
raw_boundary += "--";
@@ -388,8 +388,8 @@ templates._request_body = function(req, do_raw)
388388
var rows = [];
389389
rows.push([
390390
"tr",
391-
["th", ["span", ui_strings.S_LABEL_NETWORK_POST_DATA_NAME, "class", templates.UI_CLASSNAMES]],
392-
["th", ["span", ui_strings.S_LABEL_NETWORK_POST_DATA_VALUE, "class", templates.UI_CLASSNAMES]]
391+
["th", ["span", ui_strings.S_LABEL_NETWORK_POST_DATA_NAME, "class", templates.UI_CLASSNAME]],
392+
["th", ["span", ui_strings.S_LABEL_NETWORK_POST_DATA_VALUE, "class", templates.UI_CLASSNAME]]
393393
]
394394
);
395395
rows.extend(parts.map(this.param_cells));
@@ -411,12 +411,12 @@ templates._request_body = function(req, do_raw)
411411
if (req.request_body.mimeType)
412412
{
413413
ret = ["span", ui_strings.S_NETWORK_CANT_DISPLAY_TYPE.replace("%s", req.request_body.mimeType),
414-
"class", templates.UI_CLASSNAMES];
414+
"class", templates.UI_CLASSNAME];
415415
}
416416
else
417417
{
418418
ret = ["span", ui_strings.S_NETWORK_UNKNOWN_MIME_TYPE,
419-
"class", templates.UI_CLASSNAMES];
419+
"class", templates.UI_CLASSNAME];
420420
}
421421
}
422422
}
@@ -470,7 +470,7 @@ templates._response_body = function(resp, do_raw, is_last_response)
470470
{
471471
ret.push(
472472
["span", ui_strings.S_NETWORK_REQUEST_DETAIL_UNDISPLAYABLE_BODY_LABEL.replace("%s", resp.logger_entry_mime),
473-
"class", templates.UI_CLASSNAMES]
473+
"class", templates.UI_CLASSNAME]
474474
);
475475
}
476476
}

src/network/network_service.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,6 @@ cls.NetworkLoggerRequest = function(entry)
990990
this.request_body = null;
991991
this.boundary = "";
992992
this.was_responded_to = false;
993-
// Set from template code, when first needed:
994-
this.header_tokens = null;
995993
};
996994

997995
cls.NetworkLoggerRequestPrototype = function()
@@ -1044,7 +1042,6 @@ cls.NetworkLoggerResponse = function(entry)
10441042
this.response_headers = null;
10451043
this.response_headers_raw = null;
10461044
this.responsebody = null;
1047-
this.header_tokens = null; // This is set from template code, when it's first needed
10481045
this.is_response = true; // Simpler for recognizing than dealing with comparing the constructor
10491046
this.saw_responsefinished = false;
10501047

src/network/network_style.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,6 @@
356356
white-space: nowrap;
357357
}
358358

359-
.network-detail-overlay .not-content
360-
{
361-
padding: 0;
362-
color: #808080;
363-
cursor: default;
364-
font-weight: normal;
365-
}
366-
367359
.network-detail-overlay th:first-child,
368360
.network-detail-overlay td:first-child
369361
{

src/network/network_templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var GRAPH_PADDING = (TIMELINE_MARKER_WIDTH / 2) + MIN_BAR_WIDTH + SECTIONS_HITAR
1313
var UNREFERENCED = templates.UNREFERENCED = "unreferenced";
1414
var ERROR_RESPONSE = templates.ERROR_RESPONSE = "error_response";
1515
var NOT_REQUESTED = templates.NOT_REQUESTED = "not_requested";
16-
var UI_CLASSNAMES = templates.UI_CLASSNAMES = "not-content ui-font";
16+
var UI_CLASSNAME = templates.UI_CLASSNAME = "ui-font";
1717

1818
templates.options_main = function(nocaching, tracking, headers, overrides)
1919
{

0 commit comments

Comments
 (0)