Changeset 201502 in webkit
- Timestamp:
- May 30, 2016 1:26:25 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r201499 r201502 1 2016-05-30 Brian Burg <bburg@apple.com> 2 3 Web Inspector: Uncaught exception page should pre-populate the bug's URL with the inspected page URL 4 https://bugs.webkit.org/show_bug.cgi?id=158055 5 <rdar://problem/26516693> 6 7 Reviewed by Saam Barati. 8 9 * UserInterface/Debug/UncaughtExceptionReporter.js: 10 Include the encoded URL in the query string if it is not empty. 11 1 12 2016-05-30 Matt Baker <mattbaker@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js
r199031 r201502 148 148 } 149 149 150 let inspectedPageURL = "(unknown)";150 let inspectedPageURL = null; 151 151 try { 152 152 inspectedPageURL = WebInspector.frameResourceManager.mainFrame.url; … … 158 158 Auto-generated details: 159 159 160 Inspected URL: ${inspectedPageURL }160 Inspected URL: ${inspectedPageURL || "(unknown)"} 161 161 Loading completed: ${!!loadCompleted} 162 162 Frontend User Agent: ${window.navigator.userAgent} … … 173 173 `); 174 174 let encodedBugTitle = encodeURIComponent(`Uncaught Exception: ${firstException.message}`); 175 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`; 175 let encodedInspectedURL = encodeURIComponent(inspectedPageURL || "http://"); 176 let prefilledBugReportLink = `https://bugs.webkit.org/enter_bug.cgi?alias=&assigned_to=webkit-unassigned%40lists.webkit.org&attach_text=&blocked=&bug_file_loc=${encodedInspectedURL}&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`; 176 177 let detailsForHTML = formattedErrorDetails.map((line) => `<li>${insertWordBreakCharacters(line)}</li>`).join("\n"); 177 178
Note: See TracChangeset
for help on using the changeset viewer.