fune/testing/web-platform/tests/editing/crashtests/delete-after-justifyleft-in-closed-editable-dialog.html
Masayuki Nakano 31b7027bb9 Bug 1818339 - Make AutoRangeArray set mAnchorFocusRange correctly r=m_kato
There are some paths which do not set `mAnchorFocusRange` correctly.
Therefore, even if its `RangeCount()` returns 1 or larger,
`GetAnchorFocusRange()` may return `nullptr`.

Differential Revision: https://phabricator.services.mozilla.com/D171045
2023-02-28 00:46:17 +00:00

17 lines
337 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
const dialog = document.querySelector("dialog");
dialog.showModal();
dialog.close();
document.execCommand("justifyLeft");
document.execCommand("delete");
});
</script>
</head>
<body><dialog contenteditable>
</dialog></body>
</html>