3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
11 function storeFunctionRefAndNavigateIFrame()
13 var frame
= document
.getElementById("myframe");
14 fooRef
= frame
.contentWindow
.foo
;
15 frame
.src
= "about:blank";
16 frame
.onload
= didNavigate
;
19 function didNavigate()
25 function didTakeHeapSnapshot(messageObject
)
27 InspectorTest
.log("SUCCESS: didTakeHeapSnapshot");
28 InspectorTest
.completeTest();
31 InspectorTest
.sendCommand("Profiler.takeHeapSnapshot", { "reportProgress": false }, didTakeHeapSnapshot
);
36 <p>Test that heap profiler doesn't crash while taking snapshot on a page where iframe was navigated to a new location after
37 storing a hold of a function from the previous page.
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=103076">Bug
103076.
</p>
38 <iframe id=
"myframe" src=
"resources/page-with-function.html" onload=
"storeFunctionRefAndNavigateIFrame()"></iframe>