Skip to content

Commit

Permalink
part 30: Port editor/libeditor/crashtests/716456-1.html to WPT
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D129586

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1725850
gecko-commit: c974b2b8004c393c9195ab3837f2e84f716fba4e
gecko-reviewers: saschanaz
  • Loading branch information
masayuki-nakano authored and moz-wptsync-bot committed Nov 1, 2021
1 parent bccb18e commit 0b61dc7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html class="test-wait">
<head>
<meta charset="utf-8">
<title>Testcase for bug 716456 of Mozilla</title>
<script>
function boom() {
const div = document.querySelector("div");
div.contentEditable = "true";
div.focus();

const root = document.documentElement;
document.removeChild(root);
document.appendChild(root);

setTimeout(() => {
getSelection().collapse(div, 0);
document.execCommand("inserthtml", false, "a");
setTimeout(() => {
document.documentElement.removeAttribute("class");
}, 0);
}, 0);
}
</script>
</head>
<body onload="boom();"><div></div></body>
</html>
1 change: 1 addition & 0 deletions lint.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ CSS-COLLIDING-REF-NAME: css/css-break/background-image-001-ref.html

# Ported crashtests from Mozilla
SET TIMEOUT: editing/crashtests/backcolor-in-nested-editing-host-td-from-DOMAttrModified.html
SET TIMEOUT: editing/crashtests/inserthtml-after-temporarily-removing-document-element.html
SET TIMEOUT: editing/crashtests/inserthtml-in-text-adopted-to-other-document.html
SET TIMEOUT: editing/crashtests/insertorderedlist-in-text-adopted-to-other-document.html
SET TIMEOUT: editing/crashtests/make-editable-div-inline-and-set-contenteditable-of-input-to-false.html
Expand Down

0 comments on commit 0b61dc7

Please sign in to comment.