⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194427 in webkit


Ignore:
Timestamp:
Dec 27, 2015, 7:01:04 PM (11 years ago)
Author:
BJ Burg
Message:

Web Inspector: improve pre-filled bugzilla link on Uncaught Exception reporter sheet
https://bugs.webkit.org/show_bug.cgi?id=152402

Reviewed by Joseph Pecoraro.

Include the UA string, inspected page URL, and a template that includes
steps to reproduce and notes. Other common headings (regression, expected,
results, summary) are omitted because they are unlikely to be known when
an uncaught exception occurs, or are obvious ("shouldn't throw exception").

  • UserInterface/Debug/UncaughtExceptionReporter.js:
Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r194360 r194427  
     12015-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
    1152015-12-21  Nikita Vasilyev  <nvasilyev@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js

    r194148 r194427  
    137137    }
    138138
     139    let inspectedPageURL = "(unknown)";
     140    try {
     141        inspectedPageURL = WebInspector.frameResourceManager.mainFrame.url;
     142    } catch (e) { }
     143
    139144    let formattedErrorDetails = window.__uncaughtExceptions.map((entry) => `${entry.message} (at ${entry.url}:${entry.lineNumber}:${entry.columnNumber})`);
    140145    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(`-------
     147Auto-generated details:
     148
     149Inspected URL:        ${inspectedPageURL}
     150Loading completed:    ${!!loadCompleted}
     151Frontend User Agent:  ${window.navigator.userAgent}
     152Uncaught exceptions:
     153${detailsForBugReport}
     154-------
     155
     156* STEPS TO REPRODUCE
     1571. What were you doing? Include setup or other preparations to reproduce the exception.
     1582. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps.
     159
     160* NOTES
     161Document any additional information that might be useful in resolving the problem, such as screen shots or other included attachments.
     162`);
    142163    let encodedBugTitle = encodeURIComponent(`Uncaught Exception: ${firstException.message}`);
    143164    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.