Web Inspector: Don't throw exceptions when we don't have a callstack
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 07:05:40 +0000 (07:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 07:05:40 +0000 (07:05 +0000)
commit621b127f587d1a2d3d8d4d3faceee7d6681b98d8
tree6a52ebd2b9102bac28ae221f1ac42614285c5187
parentf56ab4e7367b74251249ec4ddae54f13e9ef0ed6
Web Inspector: Don't throw exceptions when we don't have a callstack
https://bugs.webkit.org/show_bug.cgi?id=104849

Patch by John J. Barton <johnjbarton@chromium.org> on 2013-01-09
Reviewed by Pavel Feldman.

Check array details.callFrames.length before accessing array;

No new tests, but this fix may help us find the cause of 'other' reasons.

* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype._debuggerPaused):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ScriptsPanel.js