summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/selection-drag-crash.html
blob: 42fd74016e22e4708b30526453604c38927d8cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<script>
function selectText() {
    window.getSelection().selectAllChildren(document.body);
}
</script>
</head>
<body onload="selectText()">
<p>
Drag the selected text. It shouldn't crash, though it used to on Chromium Mac since createDragImageForSelection() didn't properly use the return value from dissolveDragImageToFraction(), which resulted in a race condition for the drag image's refcount. This issue can't be tested in an automated manner, due to the fact that the race condition is hard to trigger deterministically and that test_shell/DRT simply don't use the (potentially invalid) image parameter.
</p>
</body>
</html>