mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
ba21db881e
commit
3b20d0d64b
28
editor/libeditor/crashtests/1655508.html
Normal file
28
editor/libeditor/crashtests/1655508.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user