Changeset 201502 in webkit


Ignore:
Timestamp:
May 30, 2016 1:26:25 PM (8 years ago)
Author:
BJ Burg
Message:

Web Inspector: Uncaught exception page should pre-populate the bug's URL with the inspected page URL
https://bugs.webkit.org/show_bug.cgi?id=158055
<rdar://problem/26516693>

Reviewed by Saam Barati.

  • UserInterface/Debug/UncaughtExceptionReporter.js:

Include the encoded URL in the query string if it is not empty.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201499 r201502  
     12016-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
    1122016-05-30  Matt Baker  <mattbaker@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js

    r199031 r201502  
    148148    }
    149149
    150     let inspectedPageURL = "(unknown)";
     150    let inspectedPageURL = null;
    151151    try {
    152152        inspectedPageURL = WebInspector.frameResourceManager.mainFrame.url;
     
    158158Auto-generated details:
    159159
    160 Inspected URL:        ${inspectedPageURL}
     160Inspected URL:        ${inspectedPageURL || "(unknown)"}
    161161Loading completed:    ${!!loadCompleted}
    162162Frontend User Agent:  ${window.navigator.userAgent}
     
    173173`);
    174174    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`;
    176177    let detailsForHTML = formattedErrorDetails.map((line) => `<li>${insertWordBreakCharacters(line)}</li>`).join("\n");
    177178
Note: See TracChangeset for help on using the changeset viewer.