summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/scrollbars/scrollbar-owning-renderer-crash.html
blob: 2f4381f7bc47e0b52367ab441c7cace032216010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html id="html1">
<head id="head1">
<style>
::-webkit-scrollbar { height: 50000; }
 </style>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function runTest() {
    child = document.getElementById('head1');
    child.parentNode.removeChild(child);
    document.body.offsetTop;
    child = document.getElementById('html1');
    child.parentNode.removeChild(child);
    document.open();
    document.write("WebKit bug 80610 - Crash due to owning renderer not removed from custom scrollbar. <br />");
    document.write("PASS. WebKit didn't crash.");
    document.close();
}

function finish() {
    if (window.eventSender)
        eventSender.mouseMoveTo(100, 100);
    if (window.testRunner)
        testRunner.notifyDone();
}

setTimeout("if (window.eventSender) eventSender.mouseMoveTo(0, 0);", 0);
setTimeout("runTest();", 10);
setTimeout("finish();", 11);
</script>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</head>
</html>