Skip to content

Commit cc0f610

Browse files
masayuki-nakanomoz-wptsync-bot
authored andcommitted
part 10: Port editor/libeditor/crashtests/418923-1.html to WPT
Differential Revision: https://phabricator.services.mozilla.com/D124855 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1725850 gecko-commit: 044710dfd5d144f6f334cf4692108940aba3a215 gecko-reviewers: saschanaz
1 parent 0baee25 commit cc0f610

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<html><head><script type="text/javascript">
2+
3+
function boom()
4+
{
5+
var dE = document.documentElement;
6+
var head = document.getElementsByTagName("head")[0];
7+
dE.removeChild(document.body);
8+
dE.contentEditable = "true";
9+
dE.focus();
10+
dE.contentEditable = "false";
11+
head.focus();
12+
head.contentEditable = "true";
13+
try {
14+
document.execCommand("selectAll", false, "");
15+
} catch(e) {
16+
}
17+
}
18+
19+
</script></head><body onload="boom();"></body></html>

0 commit comments

Comments
 (0)