Bug 1474978 - Add crashtest. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D46756

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Makoto Kato 2019-09-23 10:37:40 +00:00
parent b0e5901c93
commit 2c7f1d861c
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<script>
function go() {
document.getSelection().setPosition(b);
a.addEventListener("DOMNodeInserted", eh);
document.execCommand("insertImage", false, "#");
}
function eh() {
document.execCommand("selectAll", false);
document.execCommand("insertText", false, "");
}
</script>
<body onload=go()>
<dd id="a" contenteditable="true">
<template id="b"></template>

View File

@ -108,6 +108,7 @@ skip-if(Android) needs-focus load 1444630.html
load 1446451.html
asserts(0-2) load 1464251.html # assertion is that mutation event listener modifies content
pref(layout.accessiblecaret.enabled,true) load 1470926.html
asserts(0-1) load 1474978.html # assertion is that mutation event listener modifies content
load 1525481.html
load 1533913.html
load 1534394.html