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

Changeset 194066 in webkit


Ignore:
Timestamp:
Dec 14, 2015, 3:10:22 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Copy message from console with a stack trace does not include source code locations
https://bugs.webkit.org/show_bug.cgi?id=152270

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-12-14
Reviewed by Timothy Hatcher.

  • UserInterface/Views/ConsoleMessageView.js:

(WebInspector.ConsoleMessageView.prototype.toClipboardString):
When the the StackTrace was upgraded to a real collection of CallFrame
object's the CallFrame's got real SourceCodeLocation properties.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r194029 r194066  
     12015-12-14  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Copy message from console with a stack trace does not include source code locations
     4        https://bugs.webkit.org/show_bug.cgi?id=152270
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/ConsoleMessageView.js:
     9        (WebInspector.ConsoleMessageView.prototype.toClipboardString):
     10        When the the StackTrace was upgraded to a real collection of CallFrame
     11        object's the CallFrame's got real SourceCodeLocation properties.
     12
    1132015-12-13  Matt Baker  <mattbaker@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js

    r193956 r194066  
    197197            this._message.stackTrace.callFrames.forEach(function(frame) {
    198198                clipboardString += "\n\t" + (frame.functionName || WebInspector.UIString("(anonymous function)"));
    199                 if (frame.url)
    200                     clipboardString += " (" + WebInspector.displayNameForURL(frame.url) + ", line " + frame.lineNumber + ")";
     199                if (frame.sourceCodeLocation)
     200                    clipboardString += " (" + frame.sourceCodeLocation.originalLocationString() + ")";
    201201            });
    202202        } else {
Note: See TracChangeset for help on using the changeset viewer.