commit de491d857f09cae95af53509792b1c05fd9e2727 parent 75ade8ec9d3610d8a6e0720e9b495dca47d1d812 Author: Masayuki Nakano <masayuki@d-toybox.com> Date: Wed, 17 Dec 2025 00:32:11 +0000 Bug 2005112 - Add the reported testcase r=m_kato The bug itself was fixed by the patch for bug 2003973. Differential Revision: https://phabricator.services.mozilla.com/D276584 Diffstat:
| A | testing/web-platform/tests/editing/crashtests/justifyfull-before-textarea-and-non-editable-invisible-br.html | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/editing/crashtests/justifyfull-before-textarea-and-non-editable-invisible-br.html b/testing/web-platform/tests/editing/crashtests/justifyfull-before-textarea-and-non-editable-invisible-br.html @@ -0,0 +1,20 @@ +<!doctype html> +<html> +<head> +<meta charset="utf-8"> +<script> +"use strict"; + +document.addEventListener("DOMContentLoaded", () => { + const dialog = document.querySelector("dialog"); + dialog.close(); + dialog.show(); + getSelection().collapse(dialog, 1); // After the <hr> + document.execCommand("justifyFull"); +}, {once: true}); +</script> +</head> +<body> +<dialog open contenteditable><hr><textarea> +</textarea> +<br contenteditable="false">