Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: components/net_log/resources/net_export.html

Issue 2850253002: Change chrome://net-export/ UI flow. (Closed)
Patch Set: one more HTML comment for consistency Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/net_log/resources/net_export.css ('k') | components/net_log/resources/net_export.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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="main-container">
23 <div id="net-export-main"> 23 <!--
24 <div> 24 =========================================================================
25 <button id="export-view-start-data" disabled> 25 View for "unitialized" state.
26 <span class="export-view-logging-enabled">Start Logging to Disk</span> 26 * Only visible briefly, if at all
27 <span class="export-view-logging-disabled">Logging to Disk...</span> 27 =========================================================================
28 <if expr="is_ios or is_android"> 28 -->
29 <div class="warning" id="export-view-mobile-deletes-log-text" hidden> 29 <div id="state-uninitialized">
30 Deletes old log 30 <h2>Network Log Export</h2>
31 </div> 31 Loading...
32 </if> 32 </div>
33
34 <!--
35 =========================================================================
36 View for "initial" state.
37 * Has controls to start logging.
38 =========================================================================
39 -->
40 <div id="state-initial">
41 <h2>Capture Network Log</h2>
42 <button id="start-logging">Start Logging to Disk</button>
43
44 <div class="section-container">
45 Click the button to start logging future network activity to a file on
46 disk.
47 </div>
48
49 <div class="outline-box">
50 <b>OPTIONS</b>:
51 <span class="warning">This section should normally be left alone.</span>
52 <div class="radio-button-div">
53 <label>
54 <input id="strip-private-data-button" type="radio"
55 name="log-mode" value="STRIP_PRIVATE_DATA" checked>
56 Strip private information
57 </label>
58 </div>
59 <div class="radio-button-div">
60 <label>
61 <input id="include-private-data-button" type="radio"
62 name="log-mode" value="NORMAL">
63 Include cookies and credentials
64 </label>
65 </div>
66 <div class="radio-button-div">
67 <label>
68 <input id="log-bytes-button" type="radio"
69 name="log-mode" value="LOG_BYTES">
70 Include raw bytes (will include cookies and credentials)
71 </label>
72 </div>
73 </div>
74 </div>
75
76 <!--
77 =========================================================================
78 View for "logging" state.
79 * Shows that logging is in progress
80 * Has controls to stop logging
81 =========================================================================
82 -->
83 <div id="state-logging">
84 <h2>Saving network events to disk...</h2>
85
86 <button id="stop-logging">Stop Logging</button>
87
88 <div class="section-container">
89 <p>Reproduce the network problem now using another tab. When you are
90 done, return to this page and click the Stop button.</p>
91
92 <p>All of your browser's networking activity will be written to the log
93 file until you either click the Stop button, or close this tab.</p>
94 </div>
95
96 <div class="outline-box">
97 <b>FILE:</b> <span id='file-path-logging'></span> <br/>
98 <b>OPTIONS:</b> <span id="capture-mode-logging"></span>
99 </div>
100 </div>
101
102 <!--
103 =========================================================================
104 View for "stopped" state.
105 * Shows where the log file was saved to
106 * Has controls to email the log (mobile)
107 =========================================================================
108 -->
109 <div id="state-stopped">
110 <h2>Log file written</h2>
111
112 <if expr="is_ios or is_android">
113 <button id="mobile-email">
114 Email Log
115 <div class="warning" id="mobile-private-data-text" hidden>
116 Log contains private information
117 </div>
118
119 <div class="warning" id="mobile-send-old-log-text" hidden>
120 Log file from previous session
121 </div>
33 </button> 122 </button>
34 </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> 123 </if>
59 124
60 <if expr="not(is_ios or is_android)"> 125 <button id="startover">
61 Once logging has stopped, attach the log file to the bug report. 126 Start Over
62 </if> 127 </button>
63 </p> 128
64 <p> 129 <div class="section-container">
65 <!-- TODO(rayraymond): Change link to that of new standalone webapp. 130 <if expr="is_ios or is_android">
66 See http://crbug.com/472699 --> 131 Share the log by emailing it, and you are done!
67 Log files can be loaded using 132 </if>
68 <a href="chrome://net-internals#import" target="_blank">net-internals</a>. 133
69 </p> 134 <if expr="not(is_ios or is_android)">
70 <p> 135 Attach the log file to your bug report, and you are done!
71 <b><span class="warning">WARNING</span></b>: Logs contain a list of sites 136 </if>
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>
80 <div class="radio-button-div">
81 <label>
82 <input id="export-view-strip-private-data-button" type="radio"
83 name="log-mode" value="STRIP_PRIVATE_DATA" checked disabled>
84 Strip private information
85 </label>
86 </div> 137 </div>
87 <div class="radio-button-div"> 138
88 <label> 139 <div class="outline-box">
89 <input id="export-view-include-private-data-button" type="radio" 140 <b>FILE:</b> <span id='file-path-stopped'></span> <br/>
90 name="log-mode" value="NORMAL" disabled> 141 <b>OPTIONS:</b> <span id="capture-mode-stopped"></span>
91 Include cookies and credentials
92 </label>
93 </div> 142 </div>
94 <div class="radio-button-div"> 143
95 <label> 144 <div class="section-container">
96 <input id="export-view-log-bytes-button" type="radio" 145 <!-- TODO(rayraymond): Change link to that of new standalone webapp.
97 name="log-mode" value="LOG_BYTES" disabled> 146 See http://crbug.com/472699 -->
98 Include raw bytes (will include cookies and credentials) 147 The log file can also be loaded using
99 </label> 148 <a href="chrome://net-internals#import"
149 target="_blank">net-internals</a>.
100 </div> 150 </div>
101 </p> 151
152 <div class="section-container">
153 <b><span class="warning">PRIVACY</span></b>: Be aware when
154 sharing your network logs that they may contain private information. At
155 a minimum, they list the URLs and hostnames of sites visited while
156 logging was enabled.
157 <a href="#" id="privacy-read-more-link">Read more...</a>
158
159 <div id="privacy-read-more">
160 <ul>
161 <li>There may be some cached hostnames/URLs from sites visited prior
162 to enabling logging.</li>
163 <li>Logs may contain information about your networking environment,
164 such as the proxy configuration used.</li>
165 <li>The default logging options do a <i>best-effort</i> stripping of
166 any cookies/credentials in the logged requests.</li>
167 </ul>
168 </div>
169 </div>
170 </div>
102 </div> 171 </div>
103 <pre id="export-view-file-path-text"></pre>
104 </body> 172 </body>
105 </html> 173 </html>
OLDNEW
« no previous file with comments | « components/net_log/resources/net_export.css ('k') | components/net_log/resources/net_export.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698