Skip to content

Commit

Permalink
Bug 1709418 - Add a crashtest r=m_kato
Browse files Browse the repository at this point in the history
Depends on D123075

Differential Revision: https://phabricator.services.mozilla.com/D123311
  • Loading branch information
masayuki-nakano committed Aug 23, 2021
1 parent b0fa404 commit bcaf6a6
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<script>
window.addEventListener("load", () => {
const heading = document.getElementById("heading")
const input = document.createElementNS("http://www.w3.org/1999/xhtml", "input")
heading.appendChild(input)
const selection = window.getSelection()
const range = new Range()
range.setStartBefore(input)
heading.contentEditable = true
document.execCommand("selectAll", false, null)
document.designMode = "on"
selection.addRange(range)
range.setEndBefore(heading)
range.setEndAfter(heading)
document.execCommand("insertImage", false, "wss://:pass@[::1]$/")
})
</script>
</head>
<h4 id="heading"></h4>
<!-- COMMENT -->
</html>

0 comments on commit bcaf6a6

Please sign in to comment.