Files
tubestation/testing/web-platform/tests/selection/selection-select-all-move-input-crash.html
Emilio Cobos Álvarez 9c0e4c25fc Bug 1626291 - Repaint selection when safe. r=masayuki
Note that we intentionally don't move the SetDisplaySelection stuff to the
runnables. It would probably be safe enough, but it's not required and it makes
reasoning about this code harder.

Differential Revision: https://phabricator.services.mozilla.com/D70183
2020-04-09 09:50:58 +00:00

11 lines
273 B
HTML

<script>
function start() {
document.execCommand('selectAll', false)
document.documentElement.appendChild(document.getElementById('input'))
}
</script>
<body onload="start()">
<input id="input" autofocus>
<canvas contenteditable="true" hidden></canvas>
</body>