| Index: LayoutTests/editing/selection/resources/deleteFromDocument-scoped-dispatch-event-crash-iframe.html
|
| diff --git a/LayoutTests/editing/selection/resources/deleteFromDocument-scoped-dispatch-event-crash-iframe.html b/LayoutTests/editing/selection/resources/deleteFromDocument-scoped-dispatch-event-crash-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..69cb999f8af1dfd33ceff30d1b2765aaa98e35be
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/selection/resources/deleteFromDocument-scoped-dispatch-event-crash-iframe.html
|
| @@ -0,0 +1,28 @@
|
| +<html>
|
| +<head>
|
| +<script>
|
| +var count = 0;
|
| +document.addEventListener("DOMNodeRemoved", function () {
|
| + count++;
|
| + if (count < 2) {
|
| + var src = event.srcElement;
|
| + document.designMode = "on";
|
| + src.parentNode.replaceChild(document.head, src);
|
| + }
|
| +}, false);
|
| +
|
| +window.onload = function () {
|
| + var selection = window.getSelection();
|
| + document.execCommand("SelectAll", false)
|
| + selection.deleteFromDocument();
|
| + window.parent.postMessage("FINISH", "*");
|
| +};
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<div>
|
| + A
|
| + <select></select>
|
| +</div>
|
| +</body>
|
| +</html>
|
|
|