Skip to content

Commit 0baee25

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

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<script type="text/javascript">
5+
6+
function boom()
7+
{
8+
var table = document.createElement("table");
9+
document.body.appendChild(table);
10+
table.contentEditable = "true";
11+
table.focus();
12+
try {
13+
// This will throw, since it's attempting to inject a list inside a table
14+
document.execCommand("insertunorderedlist", false, null);
15+
} catch (e) {}
16+
}
17+
18+
</script>
19+
</head>
20+
21+
<body onload="boom();"></body>
22+
</html>

0 commit comments

Comments
 (0)