Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <if expr="is_android"> | 5 <if expr="is_android"> |
| 6 <meta name="viewport" content="width=device-width"> | 6 <meta name="viewport" content="width=device-width"> |
| 7 </if> | 7 </if> |
| 8 | 8 |
| 9 <if expr="is_ios"> | 9 <if expr="is_ios"> |
| 10 <!-- TODO(crbug.com/487000): Remove this once injected by web. --> | 10 <!-- TODO(crbug.com/487000): Remove this once injected by web. --> |
| 11 <script src="chrome://resources/js/ios/web_ui.js"></script> | 11 <script src="chrome://resources/js/ios/web_ui.js"></script> |
| 12 </if> | 12 </if> |
| 13 | 13 |
| 14 <script src="chrome://resources/js/util.js"></script> | 14 <script src="chrome://resources/js/util.js"></script> |
| 15 <script src="chrome://resources/js/cr.js"></script> | 15 <script src="chrome://resources/js/cr.js"></script> |
| 16 <script src="chrome://net-export/net_export.js"></script> | 16 <script src="chrome://net-export/net_export.js"></script> |
| 17 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> | 17 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> |
| 18 <link rel="stylesheet" href="net_export.css"> | 18 <link rel="stylesheet" href="net_export.css"> |
| 19 <title>Network Log Export</title> | 19 <title>Network Log Export</title> |
| 20 </head> | 20 </head> |
| 21 <body> | 21 <body> |
| 22 <h2>Network Log Export</h2> | 22 <div id="export-view-state-uninitialized"> |
| 23 <div id="net-export-main"> | 23 <h2>Network Log Export</h2> |
| 24 <div> | 24 Loading... |
| 25 <button id="export-view-start-data" disabled> | 25 </div> |
| 26 <span class="export-view-logging-enabled">Start Logging to Disk</span> | 26 |
| 27 <span class="export-view-logging-disabled">Logging to Disk...</span> | 27 <div id="export-view-state-initial"> |
| 28 <if expr="is_ios or is_android"> | 28 <h2>Capture Network Log</h2> |
| 29 <div class="warning" id="export-view-mobile-deletes-log-text" hidden> | 29 <button id="export-view-start-logging">Start Logging to Disk</button> |
| 30 Deletes old log | 30 |
| 31 </div> | 31 <div class="section-container"> |
| 32 </if> | 32 Click the button to start logging future network activity to a file on dis k. |
| 33 </button> | |
| 34 </div> | 33 </div> |
| 35 <div> | |
| 36 <button id="export-view-stop-data" disabled>Stop Logging</button> | |
| 37 </div> | |
| 38 <div> | |
| 39 <if expr="is_ios or is_android"> | |
| 40 <button id="export-view-mobile-send-data" disabled> | |
| 41 Email Log | |
| 42 <div class="warning" id="export-view-mobile-private-data-text" hidden> | |
| 43 Log contains private information | |
| 44 </div> | |
| 45 <div class="warning" id="export-view-mobile-send-old-log-text" hidden> | |
| 46 Log file from previous session | |
| 47 </div> | |
| 48 </button> | |
| 49 </if> | |
| 50 </div> | |
| 51 <p> | |
| 52 <b>INSTRUCTIONS</b>: Start logging, reproduce the problem, | |
| 53 and then stop logging. | |
| 54 | |
| 55 <if expr="is_ios or is_android"> | |
| 56 Once logging has stopped, click the "Email Log" button to save the | |
| 57 file. Starting a new log will overwrite the old one. | |
| 58 </if> | |
| 59 | 34 |
| 60 <if expr="not(is_ios or is_android)"> | 35 <div class="outline-box"> |
| 61 Once logging has stopped, attach the log file to the bug report. | 36 <b>OPTIONS</b>: |
| 62 </if> | |
| 63 </p> | |
| 64 <p> | |
| 65 <!-- TODO(rayraymond): Change link to that of new standalone webapp. | |
| 66 See http://crbug.com/472699 --> | |
| 67 Log files can be loaded using | |
| 68 <a href="chrome://net-internals#import" target="_blank">net-internals</a>. | |
| 69 </p> | |
| 70 <p> | |
| 71 <b><span class="warning">WARNING</span></b>: Logs contain a list of sites | |
| 72 visited from when logging started to when logging stopped. They may also | |
| 73 contain general network configuration information, such as DNS and proxy | |
| 74 configuration. If private information is not stripped, the logs also | |
| 75 contain cookies and credentials. | |
| 76 </p> | |
| 77 <p> | |
| 78 <b>ADVANCED</b>: | |
| 79 <span class="warning">This section should normally be left alone.</span> | 37 <span class="warning">This section should normally be left alone.</span> |
| 80 <div class="radio-button-div"> | 38 <div class="radio-button-div"> |
| 81 <label> | 39 <label> |
| 82 <input id="export-view-strip-private-data-button" type="radio" | 40 <input id="export-view-strip-private-data-button" type="radio" |
| 83 name="log-mode" value="STRIP_PRIVATE_DATA" checked disabled> | 41 name="log-mode" value="STRIP_PRIVATE_DATA" checked> |
| 84 Strip private information | 42 Strip private information |
| 85 </label> | 43 </label> |
| 86 </div> | 44 </div> |
| 87 <div class="radio-button-div"> | 45 <div class="radio-button-div"> |
| 88 <label> | 46 <label> |
| 89 <input id="export-view-include-private-data-button" type="radio" | 47 <input id="export-view-include-private-data-button" type="radio" |
| 90 name="log-mode" value="NORMAL" disabled> | 48 name="log-mode" value="NORMAL"> |
| 91 Include cookies and credentials | 49 Include cookies and credentials |
| 92 </label> | 50 </label> |
| 93 </div> | 51 </div> |
| 94 <div class="radio-button-div"> | 52 <div class="radio-button-div"> |
| 95 <label> | 53 <label> |
| 96 <input id="export-view-log-bytes-button" type="radio" | 54 <input id="export-view-log-bytes-button" type="radio" |
| 97 name="log-mode" value="LOG_BYTES" disabled> | 55 name="log-mode" value="LOG_BYTES"> |
| 98 Include raw bytes (will include cookies and credentials) | 56 Include raw bytes (will include cookies and credentials) |
| 99 </label> | 57 </label> |
| 100 </div> | 58 </div> |
| 101 </p> | 59 </div> |
| 60 | |
| 102 </div> | 61 </div> |
| 103 <pre id="export-view-file-path-text"></pre> | 62 |
| 63 <div id="export-view-state-logging"> | |
| 64 <h2>Saving network events to disk...</h2> | |
| 65 | |
| 66 <button id="export-view-stop-logging">Stop Logging</button> | |
| 67 | |
| 68 <div class="section-container"> | |
| 69 <p>Reproduce the network problem now using another tab. When you are | |
| 70 done, return to this page and click the Stop button.</p> | |
| 71 | |
| 72 <p>All of your browser's networking activity will be written to the log | |
| 73 file until you either click the Stop button, or close this tab.</p> | |
| 74 </div> | |
| 75 | |
| 76 <div class="outline-box"> | |
| 77 <b>FILE:</b> <span id='export-view-file-path-logging'></span> <br/> | |
| 78 <b>OPTIONS:</b> <span id="export-view-capture-mode-logging"></span> | |
| 79 </div> | |
| 80 </div> | |
| 81 | |
| 82 <div id="export-view-state-stopped"> | |
| 83 <h2>Log file written</h2> | |
| 84 | |
| 85 <if expr="is_ios or is_android"> | |
| 86 <button id="export-view-mobile-email"> | |
| 87 Email Log | |
| 88 <div class="warning" id="export-view-mobile-private-data-text" hidden> | |
| 89 Log contains private information | |
| 90 </div> | |
| 91 | |
| 92 <div class="warning" id="export-view-mobile-send-old-log-text" hidden> | |
| 93 Log file from previous session | |
| 94 </div> | |
| 95 </button> | |
| 96 </if> | |
| 97 | |
| 98 <button id="export-view-startover"> | |
| 99 Start Over | |
| 100 </button> | |
| 101 | |
| 102 <div class="section-container"> | |
| 103 <if expr="is_ios or is_android"> | |
| 104 Share the log by emailing it, and you are done! | |
| 105 </if> | |
| 106 | |
| 107 <if expr="not(is_ios or is_android)"> | |
| 108 Attach the log file to your bug report, and you are done! | |
| 109 </if> | |
| 110 </div> | |
| 111 | |
| 112 <div class="outline-box"> | |
| 113 <b>FILE:</b> <span id='export-view-file-path-stopped'></span> <br/> | |
| 114 <b>OPTIONS:</b> <span id="export-view-capture-mode-stopped"></span> | |
| 115 </div> | |
| 116 | |
| 117 <div class="section-container"> | |
| 118 <!-- TODO(rayraymond): Change link to that of new standalone webapp. | |
| 119 See http://crbug.com/472699 --> | |
| 120 The log file can also be loaded using | |
| 121 <a href="chrome://net-internals#import" target="_blank">net-internals</a>. | |
| 122 </div> | |
| 123 | |
| 124 <div class="section-container"> | |
| 125 <b><span class="warning">PRIVACY</span></b>: Be aware when | |
| 126 sharing your network logs that they may contain private information. At | |
| 127 a minimum, they list the URLs and hostnames of sites visited while | |
| 128 logging was enabled. | |
| 129 <a href="#" id="export-view-privacy-read-more-link">Read more...</a> | |
| 130 | |
| 131 <div id="export-view-privacy-read-more"> | |
| 132 <ul> | |
| 133 <li>There be some cached hostnames/URLs from sites visited prior | |
|
xunjieli
2017/05/02 17:10:01
nit: There be -> There can be ?
eroman
2017/05/02 20:07:58
Done.
| |
| 134 to enabling logging.</li> | |
| 135 <li>Logs may contain information about your networking environment, | |
| 136 such as the proxy configuration used.</li> | |
| 137 <li>The default logging options do a <i>best-effort</i> stripping of | |
| 138 any cookies/credentials in the logged requests.</li> | |
| 139 </ul> | |
| 140 </div> | |
| 141 </div> | |
| 142 </div> | |
| 104 </body> | 143 </body> |
| 105 </html> | 144 </html> |
| OLD | NEW |