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

Side by Side Diff: chrome/renderer/resources/neterror.html

Issue 20604002: Add Diagnose Errors button to navigation error page (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 4 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 | « chrome/common/localized_error.cc ('k') | no next file » | 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 i18n-values="dir:textdirection"> 2 <html i18n-values="dir:textdirection">
3 <head> 3 <head>
4 <meta name="viewport" content="width=device-width, initial-scale=1.0, 4 <meta name="viewport" content="width=device-width, initial-scale=1.0,
5 maximum-scale=1.0, user-scalable=no"> 5 maximum-scale=1.0, user-scalable=no">
6 <title i18n-content="title"> 6 <title i18n-content="title">
7 </title> 7 </title>
8 <style> 8 <style>
9 9
10 body { 10 body {
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 var helpBoxOuter = document.getElementById('help-box-outer'); 303 var helpBoxOuter = document.getElementById('help-box-outer');
304 helpBoxOuter.classList.toggle('hidden'); 304 helpBoxOuter.classList.toggle('hidden');
305 var moreLessButton = document.getElementById('more-less-button'); 305 var moreLessButton = document.getElementById('more-less-button');
306 if (helpBoxOuter.classList.contains('hidden')) { 306 if (helpBoxOuter.classList.contains('hidden')) {
307 moreLessButton.innerText = moreLessButton.moreText; 307 moreLessButton.innerText = moreLessButton.moreText;
308 } else { 308 } else {
309 moreLessButton.innerText = moreLessButton.lessText; 309 moreLessButton.innerText = moreLessButton.lessText;
310 } 310 }
311 } 311 }
312 312
313 function diagnoseErrors() {
314 location = "chrome-extension://kodldpbjkkmmnilagfdheibampofhaom/index.html";
315 }
316
313 // Subframes use a different layout but the same html file. This is to make it 317 // Subframes use a different layout but the same html file. This is to make it
314 // easier to support platforms that load the error page via different 318 // easier to support platforms that load the error page via different
315 // mechanisms (Currently just iOS). 319 // mechanisms (Currently just iOS).
316 if (window.top.location != window.location) 320 if (window.top.location != window.location)
317 document.documentElement.setAttribute('subframe', ''); 321 document.documentElement.setAttribute('subframe', '');
318 322
319 function updateForDnsProbe(strings) { 323 function updateForDnsProbe(strings) {
320 var context = new JsEvalContext(strings); 324 var context = new JsEvalContext(strings);
321 jstProcess(context, document.getElementById('help-box-outer')); 325 jstProcess(context, document.getElementById('help-box-outer'));
322 jstProcess(context, document.getElementById('details')); 326 jstProcess(context, document.getElementById('details'));
(...skipping 18 matching lines...) Expand all
341 <div id="help-box-outer" class="hidden"> 345 <div id="help-box-outer" class="hidden">
342 <div id="help-box-inner"> 346 <div id="help-box-inner">
343 <div jsselect="summary"> 347 <div jsselect="summary">
344 <span jsvalues=".innerHTML:msg"></span> 348 <span jsvalues=".innerHTML:msg"></span>
345 </div> 349 </div>
346 350
347 <div class="suggestions" jsselect="suggestions"> 351 <div class="suggestions" jsselect="suggestions">
348 <div class="suggestion-header" jsvalues=".innerHTML:header"></div> 352 <div class="suggestion-header" jsvalues=".innerHTML:header"></div>
349 <div class="suggestion-body" jsvalues=".innerHTML:body"></div> 353 <div class="suggestion-body" jsvalues=".innerHTML:body"></div>
350 </div> 354 </div>
355 <button id="diagnose-button" onclick="diagnoseErrors()"
356 jscontent="diagnose" jsdisplay="diagnose"></button>
351 <div class="error-code" jscontent="errorCode"></div> 357 <div class="error-code" jscontent="errorCode"></div>
352 </div> 358 </div>
353 </div> 359 </div>
354 </div> 360 </div>
355 </div> 361 </div>
356 <div id="sub-frame-error"> 362 <div id="sub-frame-error">
357 <!-- Show details when hovering over the icon, in case the details are 363 <!-- Show details when hovering over the icon, in case the details are
358 hidden because they're too large. --> 364 hidden because they're too large. -->
359 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro rDetails"> 365 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro rDetails">
360 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div> 366 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div>
361 </div> 367 </div>
362 </body> 368 </body>
363 </html> 369 </html>
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698