editor/libeditor/crashtests/776323.html
author Lee Salzman <lsalzman@mozilla.com>
Sun, 20 Jul 2025 08:30:17 +0000 (18 hours ago)
changeset 797272 cfd0090968e11deee3db2fd88b291a9f16dd1fda
parent 199760 f05a36b5b90df34e0d5973641d160fdd7787df68
permissions -rw-r--r--
Bug 1978234 - Use simpler software downscale fallback. r=ahale Differential Revision: https://phabricator.services.mozilla.com/D257942
<!DOCTYPE html>
<html contenteditable="true">
<head>
<script>

function boom()
{
  document.execCommand("inserthtml", false, "b");
  var myrange = document.createRange();
  myrange.selectNodeContents(document.getElementsByTagName("img")[0]);
  window.getSelection().addRange(myrange);
  document.execCommand("strikethrough", false, null);
}

</script>
</head>
<body onload="boom();"><img></body>
</html>