Bug 771749 - Fix dangling pointer in nsEditor::RemoveContainer; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-07-09 11:41:47 +03:00
parent c595d9ad0f
commit acbe12b416
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
var root = document.documentElement;
root.contentEditable = "true";
document.removeChild(root);
document.appendChild(root);
document.execCommand("insertunorderedlist", false, null);
document.execCommand("inserthtml", false, "<span></span>");
document.execCommand("outdent", false, null);
}
</script>
</head>
<body onload="boom();"></body>
</html>

View File

@ -15,3 +15,4 @@ load 766360.html
load 766413.html
load 766845.xhtml
load 768765.html
needs-focus load 771749.html