| Index: chrome/browser/resources/net_internals/index.html
|
| ===================================================================
|
| --- chrome/browser/resources/net_internals/index.html (revision 93894)
|
| +++ chrome/browser/resources/net_internals/index.html (working copy)
|
| @@ -1,41 +1,20 @@
|
| <!DOCTYPE HTML>
|
| -<head i18n-values="dir:textdirection;">
|
| +<html>
|
| <!--
|
| Copyright (c) 2011 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>
|
| + <head i18n-values="dir:textdirection;">
|
| + <include src="../content_security_policy.html"/>
|
| <link rel="stylesheet" href="main.css">
|
| <link rel="stylesheet" href="tabswitcherview.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="hstsview.js"></script>
|
| - <script src="logdumputil.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="spdyview.js"></script>
|
| - <script src="serviceprovidersview.js"></script>
|
| - <script src="httpthrottlingview.js"></script>
|
| - <script src="logsview.js"></script>
|
| - <script src="prerenderview.js"></script>
|
| + <script src="chrome://resources/js/util.js"</script>
|
| + <script src="chrome://net-internals/index.js"></script>
|
| + <script src="chrome://net-internals/strings.js"></script>
|
| </head>
|
| - <body onload="onLoaded()" id=dataViewDropTarget>
|
| + <body id=dataViewDropTarget>
|
| +
|
| <!-- Tab switcher for main categories. -->
|
| <div id=categoryTabHandles>
|
| <ul>
|
| @@ -278,7 +257,7 @@
|
| Strip private information (cookies and credentials).
|
| </p>
|
| <p>
|
| - <a href="javascript:displayHelpForBugDump()">
|
| + <a href="chrome://net-internals/help.html" target="_blank">
|
| Help: How to get data for bug reports?
|
| </a>
|
| </p>
|
| @@ -305,7 +284,7 @@
|
| </p>
|
| <p>Once a log is loaded, this page will stop collecting data, and will
|
| only start gathering data again when
|
| - <a href="javascript:history.go(0);">reloaded</a>.
|
| + <a id="reloaded-link" href="#">reloaded</a>.
|
| </p>
|
| </div>
|
| </div>
|
| @@ -340,79 +319,11 @@
|
|
|
| </tr>
|
| </table>
|
| -
|
| +
|
| <iframe style="display: none" id=dataViewDownloadIframe></iframe>
|
|
|
| </div>
|
|
|
| -<!-- START OF HELP TEXT -->
|
| -<script>
|
| -function displayHelpForBugDump() {
|
| - // We can't access the popups loaded from WebUI 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 file</i> button in the <i>Data</i> tab.</li>
|
| -
|
| -<li>The log file will act like a normal download.</li>
|
| -
|
| -<li>Email the log file to the bug investigator,
|
| - <b>along with an explanation of what went wrong, including any relevant
|
| - URLs.</b>
|
| - You may want to compress the file before sending, as the log files can be
|
| - fairly large but compress well.
|
| -</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. If you choose do this, please make sure you can still
|
| - load the log file.</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
|
| @@ -516,7 +427,7 @@
|
| </div>
|
| <div id=detailsLogBox></div>
|
| <div id=detailsTimelineBox></div>
|
| -
|
| +
|
| <!-- ============================ Logs View ============================ -->
|
| <div id=logsTabContent style="display: none;">
|
| <h4>Network Log Data</h4>
|
| @@ -536,5 +447,8 @@
|
| </tbody>
|
| </table>
|
| </div>
|
| + <script src="chrome://resources/js/i18n_template.js"></script>
|
| + <script src="chrome://resources/js/i18n_process.js"></script>
|
| + <script src="chrome://resources/js/jstemplate_compiled.js"></script>
|
| </body>
|
| </html>
|
|
|