Web Inspector: Stack traces in console incorrectly show "(anonymous function)" for...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Dec 2015 01:14:34 +0000 (01:14 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Dec 2015 01:14:34 +0000 (01:14 +0000)
commit1280d75c7c586eb0beee97057533f371a2343caa
treeba99d7029f330c12a1d3180c1b669bdfd3a81f43
parentd00864935d7427ca95f680bcea49bef8c1653238
Web Inspector: Stack traces in console incorrectly show "(anonymous function)" for global code
https://bugs.webkit.org/show_bug.cgi?id=152280

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-12-14
Reviewed by Brian Burg.

Source/WebInspectorUI:

* UserInterface/Images/Program.svg: Added.
* UserInterface/Images/gtk/Program.svg: Added.
Copied from TimelineRecordScriptEvaluated.svg.

* UserInterface/Models/CallFrame.js:
(WebInspector.CallFrame):
(WebInspector.CallFrame.prototype.get programCode):
Add a new property to check if this call frame is in program code.

(WebInspector.CallFrame.fromPayload):
Detect different sources of program code (global, eval, module).

* UserInterface/Views/CallFrameIcons.css:
(.program-icon .icon):
* UserInterface/Views/CallFrameView.js:
(WebInspector.CallFrameView.iconClassNameForCallFrame):
Give program code the [S] global script icon like in profiles.

LayoutTests:

* inspector/debugger/js-stacktrace-expected.txt:
* inspector/debugger/js-stacktrace.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@194083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/debugger/js-stacktrace-expected.txt
LayoutTests/inspector/debugger/js-stacktrace.html
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Images/Program.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Images/gtk/Program.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Models/CallFrame.js
Source/WebInspectorUI/UserInterface/Views/CallFrameIcons.css
Source/WebInspectorUI/UserInterface/Views/CallFrameView.js