Web Inspector: Heap snapshot crashes on any page in MacOS Canary
authoryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 09:22:28 +0000 (09:22 +0000)
committeryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 09:22:28 +0000 (09:22 +0000)
commitbf7199e84078f96985a6fc580ae8416a52a99a24
tree3df0d279f8c35e35c5b173ce07b4c57d520c8ce1
parent308a51ff32dbc0edfdadcab10ee1f459593ae482
Web Inspector: Heap snapshot crashes on any page in MacOS Canary
https://bugs.webkit.org/show_bug.cgi?id=103076

Reviewed by Adam Barth.

Source/WebCore:

Provide global object name resolver to the heap profiler. The callback allows
to safely retrieve document URL to be used as a label for corresponding global
object in the heap snapshot.

Test: inspector-protocol/take-heap-snapshot.html

* bindings/v8/ScriptProfiler.cpp:
(WebCore):
(WebCore::ScriptProfiler::takeHeapSnapshot):

LayoutTests:

Test that heap profiler doesn't crash on pages that keep references to functions
from iframe that has already navigated to a different page.

* inspector-protocol/resources/page-with-function.html: Added.
* inspector-protocol/take-heap-snapshot-expected.txt: Added.
* inspector-protocol/take-heap-snapshot.html: Added.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector-protocol/resources/page-with-function.html [new file with mode: 0644]
LayoutTests/inspector-protocol/take-heap-snapshot-expected.txt [new file with mode: 0644]
LayoutTests/inspector-protocol/take-heap-snapshot.html [new file with mode: 0644]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/qt/TestExpectations
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/ScriptProfiler.cpp