Skip to content

Commit ada1961

Browse files
author
Daniel Herzog
committed
Fixed whitespace via normws
1 parent b3017ac commit ada1961

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/network/network_details_templates.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ templates.did_not_touch_network = function(entry)
9797
cls.ResourceManager["1.2"].UrlLoad.URLType.DATA
9898
];
9999
return (
100-
["tbody",
100+
["tbody",
101101
this._wrap_col_or_row(
102102
["p", local.contains(entry.urltype) ? ui_strings.S_NETWORK_NOT_REQUESTED
103103
: ui_strings.S_NETWORK_SERVED_FROM_CACHE])
@@ -128,7 +128,7 @@ templates._request = function(request, is_last_request, do_raw)
128128
// is not shown in network-details. It will mostly mean it was retried internally
129129
// and didn't go on the network.
130130
// That can't be determined only by looking at RequestRetry events, because a
131-
// request with for example a 401 Authorization Required response should still
131+
// request with for example a 401 Authorization Required response should still
132132
// be shown.
133133
if (!is_last_request && !request.was_responded_to)
134134
return [];
@@ -344,7 +344,7 @@ templates._request_body = function(req, do_raw)
344344
["th", ui_strings.S_LABEL_NETWORK_POST_DATA_NAME],
345345
["th", ui_strings.S_LABEL_NETWORK_POST_DATA_VALUE]
346346
]); // It's necesary to just push the outer array, because each entry will be wrapped in a row.
347-
347+
348348
ret.extend(parts.map(function(e) {
349349
e = e.replace(/\+/g, "%20").split("=");
350350
return [
@@ -406,7 +406,7 @@ templates._response_body = function(resp, do_raw, is_last_response)
406406
classname = "network_info";
407407
ret.push(ui_strings.S_NETWORK_REQUEST_DETAIL_BODY_UNFINISHED);
408408
}
409-
// else
409+
// else
410410
// We're in the middle of getting it via GetResource, or there is in fact no responsebody.
411411
}
412412
else
@@ -442,4 +442,4 @@ templates._response_body = function(resp, do_raw, is_last_response)
442442
return ["tbody", ret.map(this._wrap_col_or_row), "class", classname];
443443
};
444444

445-
})(window.templates.network);
445+
})(window.templates.network);

src/network/network_service.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ cls.NetworkLoggerService = function()
185185

186186
this._on_setting_changed_bound = function(message)
187187
{
188-
if (message.id === "network_logger" &&
188+
if (message.id === "network_logger" &&
189189
message.key === "track-content")
190190
{
191191
this.setup_content_tracking_bound();
@@ -234,7 +234,7 @@ cls.NetworkLoggerService = function()
234234
this.get_resource_info = function(resource_id)
235235
{
236236
// Returns a ResourceInfo based on the most recent Entry with that resource_id.
237-
var entry = this._current_context &&
237+
var entry = this._current_context &&
238238
this._current_context.get_entries_with_res_id(resource_id).last;
239239
if (entry && entry.current_response && entry.current_response.responsebody)
240240
{
@@ -428,10 +428,10 @@ cls.RequestContextPrototype = function()
428428

429429
this._event_changes_req_id = function(event, current_entry)
430430
{
431-
/*
432-
Checks if the event's requestID is different from the one in current_entry.
433-
That should never be the case, since the "urlload" event initiates
434-
a new entry and that doesn't have a requestID. Note that current_entry is
431+
/*
432+
Checks if the event's requestID is different from the one in current_entry.
433+
That should never be the case, since the "urlload" event initiates
434+
a new entry and that doesn't have a requestID. Note that current_entry is
435435
the last entry we saw with the event's resourceID.
436436
*/
437437
return event.requestID &&
@@ -456,7 +456,7 @@ cls.RequestContextPrototype = function()
456456
return;
457457
}
458458

459-
// For responsebody, all entries with that resourceID need to be updated.
459+
// For responsebody, all entries with that resourceID need to be updated.
460460
// Others are callbacks that belongs to the current (and last) entry of that resourceID.
461461
if (eventname === "responsebody")
462462
{
@@ -482,7 +482,7 @@ cls.RequestContextPrototype = function()
482482
{
483483
opera.postError(ui_strings.S_DRAGONFLY_INFO_MESSAGE +
484484
" Unexpected change in requestID on " + eventname +
485-
": Change from " + logger_entry._requestID + " to " +
485+
": Change from " + logger_entry._requestID + " to " +
486486
event.requestID + ", URL: " + logger_entry.human_url);
487487
}
488488
}
@@ -603,7 +603,7 @@ cls.NetworkLoggerEntryPrototype = function()
603603
var CLASSNAME_RECEIVING = "receiving";
604604
var CLASSNAME_IRREGULAR = "irregular";
605605

606-
/* // gap_def format:
606+
/* // gap_def format:
607607
{
608608
classname: type of sequence,
609609
sequences: {
@@ -613,7 +613,7 @@ cls.NetworkLoggerEntryPrototype = function()
613613
]
614614
}
615615
} */
616-
616+
617617
var gap_defs = {
618618
"urlload": {
619619
"request": {
@@ -624,7 +624,7 @@ cls.NetworkLoggerEntryPrototype = function()
624624
title: ui_strings.S_HTTP_EVENT_SEQUENCE_INFO_READING_LOCAL_DATA,
625625
classname: CLASSNAME_BLOCKED
626626
},
627-
// The response-phase can be closed without ever seeing a response event, for
627+
// The response-phase can be closed without ever seeing a response event, for
628628
// example because the request was aborted. See CORE-43284.
629629
"responsefinished": {
630630
title: ui_strings.S_HTTP_EVENT_SEQUENCE_INFO_CLOSING_RESPONSE_PHASE,
@@ -706,10 +706,10 @@ cls.NetworkLoggerEntryPrototype = function()
706706
}
707707
};
708708

709-
// What is not defined as it's own case by the above, but it terminated by
709+
// What is not defined as it's own case by the above, but it terminated by
710710
// urlredirect, requestretry or urlfinished, will be defined regardless of the preceding event
711711

712-
/* // gap_def_to_phase format:
712+
/* // gap_def_to_phase format:
713713
{
714714
classname: type of sequence,
715715
sequences: {
@@ -834,7 +834,7 @@ cls.NetworkLoggerEntryPrototype = function()
834834

835835
this._update_event_requestretry = function(event)
836836
{
837-
// This means on the next request with event.toRequestID, we won't
837+
// This means on the next request with event.toRequestID, we won't
838838
// make a new entry, but a new NetworkLoggerRequest on the same entry.
839839
this._requestID = event.toRequestID;
840840
};

src/network/network_templates.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ templates.incomplete_warning = function(context, index, all_contexts)
104104
{
105105
return [];
106106
}
107-
107+
108108
// Only add the title if there's more than one context in total
109109
var title = "";
110110
if (all_contexts.length > 1)
@@ -197,8 +197,8 @@ templates.url_list_entry = function(selected, entry)
197197
],
198198
"handler", "select-network-request",
199199
"data-object-id", String(entry.id),
200-
"class", (selected === entry.id ? "selected" : "") +
201-
(error_in_current_response ? " " + ERROR_RESPONSE : "") +
200+
"class", (selected === entry.id ? "selected" : "") +
201+
(error_in_current_response ? " " + ERROR_RESPONSE : "") +
202202
(not_requested ? " " + NOT_REQUESTED : "")
203203
];
204204
};
@@ -230,7 +230,7 @@ templates.url_tooltip = function(entry)
230230
}
231231
else if (entry.error_in_current_response)
232232
{
233-
context_string = entry.current_responsecode +
233+
context_string = entry.current_responsecode +
234234
" (" + HTTP_STATUS_CODES[entry.current_responsecode] + ")";
235235
context_type = ERROR_RESPONSE;
236236
}
@@ -310,7 +310,7 @@ templates.timeline_row = function(width, stepsize, gridwidth)
310310
var unit = [1, "ms"];
311311
if (max_val > 1000)
312312
unit = [1000, "s"];
313-
313+
314314
while (stepsize && --cnt >= 0)
315315
{
316316
var left_val = gridwidth * cnt - TIMELINE_MARKER_WIDTH / 2;
@@ -463,7 +463,7 @@ templates.graph_tooltip = function(entry, mono_lineheight)
463463
return ["div",
464464
[
465465
(window.ini && ini.debug) ?
466-
["h2", "Requested " + entry.resource_id + " at " + entry.start_time_string] :
466+
["h2", "Requested " + entry.resource_id + " at " + entry.start_time_string] :
467467
["h2", ui_strings.S_HTTP_REQUESTED_HEADLINE.replace("%s", entry.start_time_string)],
468468
["div",
469469
["div",

0 commit comments

Comments
 (0)