editor/libeditor/html/crashtests/414178-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/414178-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<script type="text/javascript">
     1.8 +
     1.9 +function boom()
    1.10 +{
    1.11 +  var table = document.createElement("table");
    1.12 +  document.body.appendChild(table);
    1.13 +  table.contentEditable = "true";
    1.14 +  table.focus();
    1.15 +  try {
    1.16 +    // This will throw, since it's attempting to inject a list inside a table
    1.17 +    document.execCommand("insertunorderedlist", false, null);
    1.18 +  } catch (e) {}
    1.19 +}
    1.20 +
    1.21 +</script>
    1.22 +</head>
    1.23 +
    1.24 +<body onload="boom();"></body>
    1.25 +</html>

mercurial