gecko-dev/dom/base/crashtests/1611853.html
Mirko Brodesser b58f8fa656 Bug 1611853: part 2) Add crashtest. r=smaug
Tests that selecting a contentEditable node with style `user-select:
none` via `execCommand` doesn't trigger an assertion.

Differential Revision: https://phabricator.services.mozilla.com/D61829

--HG--
extra : moz-landing-system : lando
2020-02-06 16:38:29 +00:00

20 lines
367 B
HTML

<html class="reftest-wait">
<head>
<style>
* {
user-select: none;
}
</style>
<script>
function start () {
document.execCommand('selectAll', false);
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="start()">
<div contentEditable="true"></div>
</body>
</html>