Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / selection-drag-crash.html
blob42fd74016e22e4708b30526453604c38927d8cbb
1 <html>
2 <head>
3 <script>
4 function selectText() {
5 window.getSelection().selectAllChildren(document.body);
7 </script>
8 </head>
9 <body onload="selectText()">
10 <p>
11 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.
12 </p>
13 </body>
14 </html>