Web Inspector: [CPU Profile] Taking profile crashes renderer.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Jan 2013 11:55:43 +0000 (11:55 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Jan 2013 11:55:43 +0000 (11:55 +0000)
commitdf6708190a7fecab2ce578ec737308131549f21b
tree4b1827b87593f793d7fb8261a895bc251d4864a7
parent7de1bb4132c747a3b987d8051e856c646836f7ea
Web Inspector: [CPU Profile] Taking profile crashes renderer.
https://bugs.webkit.org/show_bug.cgi?id=108072

Patch by Eugene Klyuchnikov <eustas@chromium.org> on 2013-01-29
Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/profiler/cpu-profiler-agent-crash-on-start.html

Fixed null-pointer access.

* bindings/v8/ScriptProfiler.cpp:
(WebCore::ScriptProfiler::start): Fixed null-pointer access.
(WebCore::ScriptProfiler::stop): Ditto.

LayoutTests:

Added test to check that ProfilerAgent start/stop doesn't crash.

* inspector/profiler/cpu-profiler-agent-crash-on-start-expected.txt: Added.
* inspector/profiler/cpu-profiler-agent-crash-on-start.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/profiler/cpu-profiler-agent-crash-on-start-expected.txt [new file with mode: 0644]
LayoutTests/inspector/profiler/cpu-profiler-agent-crash-on-start.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/ScriptProfiler.cpp