[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / scrollbars / hidden-iframe-scrollbar-crash.html
1 <style>
2 ::-webkit-scrollbar {
3   width: 16px;
4 }
5 </style>
6
7 <body>
8 <iframe id="iframe" width="1"></iframe>
9 <p>This tests to make sure that an iframe with custom scrollbars that is
10 hidden does not crash the browser when unloaded.  The test passes if it does
11 not crash.</p>
12 </body>
13
14 <script>
15 function runTest()
16 {
17     if (document.location.search == "?done") {
18         document.body.appendChild(document.createTextNode("PASSED"));
19         if (window.layoutTestController)
20             layoutTestController.notifyDone();
21         return;
22     }
23
24     if (window.layoutTestController) {
25         layoutTestController.waitUntilDone();
26         layoutTestController.dumpAsText();
27     }
28
29     setTimeout(function() {
30       document.getElementById("iframe").style.display = "none";
31
32       // Unload the page to see if the crash is triggered.
33       document.location.href = "?done";
34     }, 0);
35 }
36
37 runTest();
38 </script>