Bug 1655508 - Add crashtest (the bug itself was fixed by bug 1517028) r=m_kato

Differential Revision: https://phabricator.services.mozilla.com/D106873
This commit is contained in:
Masayuki Nakano 2021-03-02 06:38:38 +00:00
parent ba21db881e
commit 3b20d0d64b
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
let node
const textarea = document.getElementById('id_14')
const abbr = document.getElementById('id_9')
document.addEventListener('DOMAttrModified', (e) => {
node = e.originalTarget.getRootNode({})
abbr.insertBefore(textarea, abbr.childNodes[0])
}, false)
abbr.contentEditable = false
node.normalize()
document.designMode = 'on'
document.execCommand('insertParagraph', false, null)
})
</script>
</head>
<body>
<dfn contenteditable='true'>
<abbr id='id_9'></abbr>
</dfn>
<h3>
<textarea id='id_14' autofocus></textarea>
<script></script>
</h3>
</body>
</html>

View File

@ -136,4 +136,5 @@ load 1645983-2.html
load 1648564.html
load 1659717.html
load 1663725.html # throws
load 1655508.html
pref(dom.document.exec_command.nested_calls_allowed,true) load 1666556.html