Changeset 194427 in webkit
- Timestamp:
- Dec 27, 2015, 7:01:04 PM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Debug/UncaughtExceptionReporter.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r194360 r194427 1 2015-12-27 Brian Burg <bburg@apple.com> 2 3 Web Inspector: improve pre-filled bugzilla link on Uncaught Exception reporter sheet 4 https://bugs.webkit.org/show_bug.cgi?id=152402 5 6 Reviewed by Joseph Pecoraro. 7 8 Include the UA string, inspected page URL, and a template that includes 9 steps to reproduce and notes. Other common headings (regression, expected, 10 results, summary) are omitted because they are unlikely to be known when 11 an uncaught exception occurs, or are obvious ("shouldn't throw exception"). 12 13 * UserInterface/Debug/UncaughtExceptionReporter.js: 14 1 15 2015-12-21 Nikita Vasilyev <nvasilyev@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js
r194148 r194427 137 137 } 138 138 139 let inspectedPageURL = "(unknown)"; 140 try { 141 inspectedPageURL = WebInspector.frameResourceManager.mainFrame.url; 142 } catch (e) { } 143 139 144 let formattedErrorDetails = window.__uncaughtExceptions.map((entry) => `${entry.message} (at ${entry.url}:${entry.lineNumber}:${entry.columnNumber})`); 140 145 let detailsForBugReport = formattedErrorDetails.map((line) => ` - ${line}`).join("\n"); 141 let encodedBugDescription = encodeURIComponent(`Loading completed: ${loadCompleted ? "true" : "false"}\nUncaught exceptions:\n${detailsForBugReport}`); 146 let encodedBugDescription = encodeURIComponent(`------- 147 Auto-generated details: 148 149 Inspected URL: ${inspectedPageURL} 150 Loading completed: ${!!loadCompleted} 151 Frontend User Agent: ${window.navigator.userAgent} 152 Uncaught exceptions: 153 ${detailsForBugReport} 154 ------- 155 156 * STEPS TO REPRODUCE 157 1. What were you doing? Include setup or other preparations to reproduce the exception. 158 2. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps. 159 160 * NOTES 161 Document any additional information that might be useful in resolving the problem, such as screen shots or other included attachments. 162 `); 142 163 let encodedBugTitle = encodeURIComponent(`Uncaught Exception: ${firstException.message}`); 143 164 let prefilledBugReportLink = `https://bugs.webkit.org/enter_bug.cgi?alias=&assigned_to=webkit-unassigned%40lists.webkit.org&attach_text=&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=Normal&bug_status=NEW&comment=${encodedBugDescription}&component=Web%20Inspector&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&flag_type-1=X&flag_type-3=X&form_name=enter_bug&keywords=&op_sys=All&priority=P2&product=WebKit&rep_platform=All&short_desc=${encodedBugTitle}&version=WebKit%20Nightly%20Build`;
Note:
See TracChangeset
for help on using the changeset viewer.