mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 771749 - Fix dangling pointer in nsEditor::RemoveContainer; r=ehsan
This commit is contained in:
parent
7579c29646
commit
aee28e1eec
21
editor/libeditor/base/crashtests/771749.html
Normal file
21
editor/libeditor/base/crashtests/771749.html
Normal 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>
|
@ -15,3 +15,4 @@ load 766360.html
|
||||
load 766413.html
|
||||
load 766845.xhtml
|
||||
load 768765.html
|
||||
needs-focus load 771749.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user