summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/net_internals/index.html
blob: 1ab90e63a80f4e4bfd35f2bb23e64e8579ed97a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<html>
<!--
Copyright (c) 2010 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
  <head>
    <link rel="stylesheet" href="main.css">
    <script src="util.js"></script>
    <script src="view.js"></script>
    <script src="tabswitcherview.js"></script>
    <script src="dataview.js"></script>
    <script src="httpcacheview.js"></script>
    <script src="testview.js"></script>
    <script src="main.js"></script>
    <script src="dnsview.js"></script>
    <script src="eventsview.js"></script>
    <script src="detailsview.js"></script>
    <script src="sourceentry.js"></script>
    <script src="resizableverticalsplitview.js"></script>
    <script src="topmidbottomview.js"></script>
    <script src="timelineviewpainter.js"></script>
    <script src="logviewpainter.js"></script>
    <script src="loggrouper.js"></script>
    <script src="proxyview.js"></script>
    <script src="socketpoolwrapper.js"></script>
    <script src="socketsview.js"></script>
    <script src="serviceprovidersview.js"></script>
  </head>
  <body onload="onLoaded()">
    <!-- Tab switcher for main categories. -->
    <div id=categoryTabHandles>
      <ul>
        <li><a href="#data" id=dataTab>Data</a></li>
        <li><a href="#proxy" id=proxyTab>Proxy</a></li>
        <li><a href="#events" id=eventsTab>Events</a></li>
        <li><a href="#dns" id=dnsTab>DNS</a></li>
        <li><a href="#sockets" id=socketsTab>Sockets</a></li>
        <li><a href="#httpCache" id=httpCacheTab>HTTP Cache</a></li>
        <!-- Tab is only shown on Windows -->
        <li><a href="#serviceProviders" id=serviceProvidersTab style="display: none;">SPIs</a></li>
        <li><a href="#tests" id=testTab>Tests</a></li>
      </ul>
      <div style="clear: both;"></div>
    </div>
    <!-- Proxy info -->
    <div id=proxyTabContent>
      <h4>
        Current proxy settings
        <input type=button value="Re-apply settings" id=proxyReloadSettings />
      </h4>

      <table><tr>

      <td valign=top>
      <h3>Effective settings</h3>
      <pre id=proxyEffectiveSettings></pre>
      </pre>
      </td>

      <td style='width: 30px'>&nbsp;</td>

      <td valign=top>
      <h3>Original settings</h3>
      <pre id=proxyOriginalSettings></pre>
      </td>

      </tr></table>

      <h4>
        Proxies which have failed recently, and are marked as bad
        <input type=button value="Clear bad proxies" id=clearBadProxies />
      </h4>
      <table class="styledTable">
        <thead>
          <tr>
            <th>Bad proxy server</th>
            <th>Time for next retry</th>
          </tr>
        </thead>
        <tbody id=badProxiesTableBody></tbody>
      </table>
    </div>
    <!-- Host resolver info -->
    <div id=dnsTabContent>
      <h4>Host resolver</h4>
      <ul>
        <li><a href='#events&q=type:HOST_RESOLVER_IMPL_REQUEST%20type:HOST_RESOLVER_IMPL_JOB%20is:active'>View pending lookups</a></li>
        <li>Default address family: <span id=hostResolverDefaultFamily></span>
          <span id=hostResolverIPv6Disabled class=warningText style="display: none;">
            (IPv6 disabled)
            <input type=button value="Enable IPv6" id=hostResolverEnableIPv6 />
          </span>
        </li>
      </ul>

      <h4>
        Host resolver cache
        <input type=button value="Clear host cache" id=clearHostResolverCache />
      </h4>
      <ul>
        <li>Capacity: <span id=hostResolverCacheCapacity></span></li>
        <li>Time to live (ms) for success entries:
            <span id=hostResolverCacheTTLSuccess></span></li>
        <li>Time to live (ms) for failure entries:
            <span id=hostResolverCacheTTLFailure></span></li>
      </ul>

      <table class="styledTable">
        <thead>
          <tr>
            <th>Hostname</th>
            <th>Family</th>
            <th>Addresses</th>
            <th>Expires</th>
          </tr>
        </thead>
        <tbody id=hostResolverCacheTbody>
        </tbody>
      </table>
    </div>
    <div id=socketsTabContent>
      <h4>Socket pools</h4>
      <a href='#events&q=type:SOCKET%20is:active'>View live sockets</a>
      <p>
        <div id=socketPoolDiv>
        </div>
      </p>
      <p>
        <div id=socketPoolGroupsDiv>
        </div>
      </p>
    </div>
    <div id=httpCacheTabContent>
      <h4>Entries</h4>
      <a href="chrome://view-http-cache" target=_blank>Explore cache entries</a>

      <h4>Statistics</h4>
      <div id=httpCacheStats>Nothing loaded yet.</div>
    </div>
    <!-- Only shown on Windows -->
    <div id=serviceProvidersTabContent style="display: none;">
      <h4>Layered Service Providers</h4>
      <table class="styledTable">
        <thead>
          <tr>
            <th>Name</th>
            <th>Version</th>
            <th>Type</th>
            <th>Socket Type</th>
            <th>Protocol</th>
            <th>Path</th>
          </tr>
        </thead>
        <tbody id=serviceProvidersTbody>
        </tbody>
      </table>
      <h4>Namespace Providers</h4>
      <table class="styledTable">
        <thead>
          <tr>
            <th>Name</th>
            <th>Version</th>
            <th>Namespace</th>
            <th>Active</th>
          </tr>
        </thead>
        <tbody id=namespaceProvidersTbody>
        </tbody>
      </table>
    </div>
    <!-- Import/Export data -->
    <div id=dataTabContent>

    <table width=100%>
    <tr>
    <td valign=top>
      <h2>Dump data</h2>
      <div style="margin: 8px">
        <p>
          <input id=securityStrippingCheckbox type=checkbox checked=yes>
          Strip private information (cookies and credentials).
        </p>
        <p>
          <a href="javascript:displayHelpForBugDump()">
            Help: How to get data for bug reports?
          </a>
        </p>
        <button id=exportToText class=bigButton>Dump to text</button>
      </div>
    </td>

    <td align=right valign=top>
      <div class="capturingBox">
        <b>Capturing all events...</b>
        <table style="margin: 8px">
          <tr>
            <td>Pasively captured:</td>
            <td align=right id=passivelyCapturedCount></td>
          </tr>
          <tr>
            <td>Actively captured:</td>
            <td align=right id=activelyCapturedCount></td>
          </tr>
        </table>
        <input type=button value="Delete all" id=dataViewDeleteAll />
      </div>
    </td>

    </tr>
    </table>

    <pre id=exportedDataText></pre>
    </div>

<!-- START OF HELP TEXT -->
<script>
function displayHelpForBugDump() {
  // We can't access the popups loaded from DOMUI pages, so we instead populate
  // its contents using a data:URL. YUCK!
  // TODO(eroman): do something less hacky, like exposing a new URL.
  var helpContents =
      document.getElementById('howtoDumpForBugsHelpContent').innerHTML;
  window.open('data:text/html,' + encodeURIComponent(helpContents));
}
</script>
<div id=howtoDumpForBugsHelpContent style="display: none">
<h2>How to get data for bug reports</h2>

<ol>
<li>Reproduce the network problem.</li>
<li>Click the <i>Dump to text</i> button in the <i>Data</i> tab.</li>

<li>Copy-paste the resulting selected text to a file.</li>

<li>Email the text file to the bug investigator,
  <b>along with an explanation of what went wrong.</b>
</li>

</ol>


<ul>
<li>The network log <b>may contain personally identifying information</b> like
  IP addresses, URLs, and cookies.</li>
<ul>
<li>You can edit the log to obscure information if you like, but sometimes it
  is relevant to the bug.</li>
<li>If you choose not to have cookies removed from the log, you must toggle
  the checkbox before clicking the button.</li>
</ul>
<li>Ideally you would have the tool running <b>before</b> you reproduce the 
  bug.
  If that isn't possible (perhaps the bug happens unpredictably), then the
  next best thing is to load chrome://net-internals/ <b>as soon as you can
  after</b> the problem has occurred.</li>
</ul>

<h2>How it works</h2>

<ul>
  <li>While the net-internals page is open, it will capture the network events
  that are happening in Chrome. You can view that in real-time by going to
  the <i>Events</i> tab.</li>
  <li>Once you close the net-internals window, the data it had captured will be
  discarded.</li>
<li>Chrome keeps around a small buffer of the most recent network events
  even when the net-internals window is not open. That way if you open
  chrome://net-internals/ <b>shortly after</b> encountering a problem,
  you may still find the relevant data.
  These <i>passively captured</i> events are less accurate however, and will
  be prefixed in the log with <span style="font-family: monospace;">(P)</span>.
</li>
</ul>

<button onclick='window.close()'>Close this popup</button>
<!-- END OF HELP TEXT -->
</div>

    <!-- Connection tests -->
    <div id=testTabContent>
      <p>Input a URL which failed to load, and then click the button to run some
         tests for why it failed.</p>
      <form id=connectionTestsForm>
        URL: <input type=text id=testUrlInput />
        <input type=submit value="Start tests" />
      </form>
      <div id=testSummary></div>
    </div>

    <!-- ================= Events view =================== -->

    <!-- Filter Box: This the top bar which contains the search box.  -->
    <div id=filterBox>
      <table width=100%>
        <tr>
          <td width=1%>Filter:</td>
          <td width=98%><input type="search" incremental id=filterInput /></td>
          <td width=1% id=filterCount>(1 of 34)</td>
        </tr>
      </table>
    </div>
    <!-- Events Box: This the panel on the left which lists the sources -->
    <div id=eventsBox>
      <table id=eventsListTable cellspacing=0 cellpadding=0 width=100%>
        <thead>
          <tr>
            <td><input type=checkbox id=selectAll /></td>
            <td id=sortById>ID</td>
            <td id=sortBySource>Source</td>
            <td id=sortByDescription width=99%>Description</td>
          </tr>
        </thead>
        <!-- Events table body: This is where request rows go into -->
        <tbody id=eventsListTableBody></tbody>
      </table>
    </div>
    <!-- Action Box: This is a button bar along the bottom -->
    <div id=actionBox>
      <input type=button value="Delete selected" id=deleteSelected />
      <input type=button value="Delete all" id=deleteAll />
    </div>
    <!-- Splitter Box: This is a handle to resize the vertical divider -->
    <div id=splitterBox></div>
    <!-- Details box: This is the panel on the right which shows information -->
    <div id=detailsTabHandles>
      <table class=tabSwitcher cellspacing=0>
        <tr>
          <th id=detailsLogTab>Log</th>
          <td class=tabSwitcherSpacer>&nbsp;</td>
          <th id=detailsTimelineTab>Timeline</th>
        </tr>
      </table>
      <div class=tabSwitcherLine></div>
    </div>
    <div id=detailsLogBox></div>
    <div id=detailsTimelineBox></div>
  </body>
</html>