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

Side by Side Diff: chrome/browser/resources/crashes.js

Issue 10007040: Make crash reporting link creation easier to read (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 localStrings = new LocalStrings(); 5 localStrings = new LocalStrings();
6 6
7 /** 7 /**
8 * Requests the list of crashes from the backend. 8 * Requests the list of crashes from the backend.
9 */ 9 */
10 function requestCrashes() { 10 function requestCrashes() {
(...skipping 28 matching lines...) Expand all
39 var title = document.createElement('h3'); 39 var title = document.createElement('h3');
40 title.textContent = localStrings.getStringF('crashHeaderFormat', 40 title.textContent = localStrings.getStringF('crashHeaderFormat',
41 crash['id']); 41 crash['id']);
42 crashBlock.appendChild(title); 42 crashBlock.appendChild(title);
43 var date = document.createElement('p'); 43 var date = document.createElement('p');
44 date.textContent = localStrings.getStringF('crashTimeFormat', 44 date.textContent = localStrings.getStringF('crashTimeFormat',
45 crash['time']); 45 crash['time']);
46 crashBlock.appendChild(date); 46 crashBlock.appendChild(date);
47 var linkBlock = document.createElement('p'); 47 var linkBlock = document.createElement('p');
48 var link = document.createElement('a'); 48 var link = document.createElement('a');
49 link.href = 'http://code.google.com/p/chromium/issues/entry?' + 49 var params = {
50 'template=Crash%20Report&comment=' + 50 template: 'Crash Report',
51 'Chrome%20Version:%20' + version + '%0A' + 51 comment: 'Chrome Version: ' + version + '\n' +
Dan Beam 2012/04/06 20:40:08 probably easier to read if you: ['line', 'li
Tyler Breisacher (Chromium) 2012/04/30 21:38:23 Done.
52 'Operating%20System:%20e.g.,%20"Windows%207",%20' + 52 // TODO(tbreisacher): fill in the OS automatically?
53 '"Mac%20OS%20X%2010.6"%0A%0A' + 53 'Operating System: e.g., "Windows 7", "Mac OSX 10.6"\n\n' +
54 'URL%20(if%20applicable)%20where%20crash%20occurred:%20%0A%0A' + 54 'URL (if applicable) where crash occurred:\n\n' +
55 'Can%20you%20reproduce%20this%20crash?%0A%0A' + 55 'Can you reproduce this crash?\n\n' +
56 'What%20steps%20will%20reproduce%20this%20crash%20' + 56 'What steps will reproduce this crash? (or if it\'s not ' +
57 '(or%20if%20it\'s%20not%20reproducible,%20what%20were%20you%20doing' + 57 'reproducible, what were you doing just before the crash)?\n' +
58 '%20just%20before%20the%20crash)?%0A1.%0A2.%0A3.%0A%0A' + 58 '1.\n2.\n3.\n\n' +
59 '*Please%20note%20that%20issues%20filed%20with%20no%20information%20' + 59 '*Please note that issues filed with no information filled in ' +
60 'filled%20in%20above%20will%20be%20marked%20as%20WontFix*%0A%0A' + 60 'above will be marked as WontFix*\n\n' +
61 '****DO%20NOT%20CHANGE%20BELOW%20THIS%20LINE****%0Areport_id:' + 61 '****DO NOT CHANGE BELOW THIS LINE****\n' +
62 crash['id']; 62 'report_id:' + crash.id,
63 };
64 var href = 'http://code.google.com/p/chromium/issues/entry?';
65 for (var param in params) {
66 href += encodeURIComponent(param) + '=' +
67 encodeURIComponent(params[param]) + '&';
68 }
69 link.href = href;
63 link.target = '_blank'; 70 link.target = '_blank';
64 link.textContent = localStrings.getString('bugLinkText'); 71 link.textContent = localStrings.getString('bugLinkText');
65 linkBlock.appendChild(link); 72 linkBlock.appendChild(link);
66 crashBlock.appendChild(linkBlock); 73 crashBlock.appendChild(linkBlock);
67 crashSection.appendChild(crashBlock); 74 crashSection.appendChild(crashBlock);
68 } 75 }
69 76
70 $('noCrashes').hidden = crashes.length != 0; 77 $('noCrashes').hidden = crashes.length != 0;
71 } 78 }
72 79
73 document.addEventListener('DOMContentLoaded', requestCrashes); 80 document.addEventListener('DOMContentLoaded', requestCrashes);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698