Add reported crashtest to WPT
Making `white-space` handling better in editor (bug 1724650) fixed the reported
crashtest case. Therefore, this patch only adds it into WPT.
Depends on D125640
Differential Revision: https://phabricator.services.mozilla.com/D125641
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1699258
gecko-commit: c932a7dafab852d1908dbc58c9311f795135cda0
gecko-reviewers: m_kato
diff --git a/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html b/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html
new file mode 100644
index 0000000..d06157e
--- /dev/null
+++ b/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ * {
+ white-space: pre
+ }
+ </style>
+ <script>
+ document.addEventListener('DOMContentLoaded', () => {
+ const quote_0 = document.getElementById('id_0')
+ const quote_1 = document.createElement('blockquote')
+ const fieldset_1 = document.createElement('fieldset')
+ quote_1.appendChild(fieldset_1)
+ document.documentElement.appendChild(quote_1)
+ const selection = self.getSelection()
+ selection.collapse(fieldset_1, 0)
+ quote_0.contentEditable = false
+ document.documentElement.contentEditable = true
+ document.execCommand('insertHorizontalRule', false, null)
+ })
+ </script>
+</head>
+<blockquote id='id_0'></blockquote>
+</html>