Frame flattening: Hit-testing an iframe could end up destroying the associated inline...
[WebKit-https.git] / LayoutTests / fast / frames / flattening / hittest-iframe-while-style-changes-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that hittesting an iframe when frame flattening is on does not crash.</title>
5 <script>
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8     testRunner.waitUntilDone();
9 }
10
11 if (window.internals)
12     internals.settings.setFrameFlatteningEnabled(true);
13
14 function runTest() {
15     setTimeout(function() {
16         document.getElementById('clickonthis').contentDocument.getElementById('foo').style.display = "none";
17         if (window.internals)
18             internals.nodesFromRect(document, 100, 100, 0, 0, 0, 0, false, false, true);
19         if (window.testRunner)
20             testRunner.notifyDone();
21     }, 0);
22 }
23 </script>
24 <body>
25 Pass if no crash or assert in debug.
26 <iframe onload="runTest()" id=clickonthis src="data:text/html,<div id=foo>foobar</div>">
27 </body>