Reproducible null deref under ScriptedAnimationController::createDisplayRefreshMonitor
[WebKit-https.git] / LayoutTests / fast / animation / request-animation-frame-unparented-iframe-crash.html
1 <script>
2 if (window.testRunner) {
3     testRunner.dumpAsText();
4     testRunner.waitUntilDone();
5 }
6
7 window.onload = function () {
8     var frame = document.getElementById("frame");
9     var frameWindow = frame.contentWindow;
10     var rAF = frameWindow.requestAnimationFrame;
11
12     frame.parentElement.removeChild(frame);
13     rAF.call(frameWindow, function () { });
14
15     if (window.testRunner)
16         testRunner.notifyDone();
17 };
18 </script>
19 <body>
20 <iframe id="frame"></iframe>
21 This test passes if it does not crash.
22 </body>