diff --git a/layout/generic/crashtests/397844-1.xhtml b/layout/generic/crashtests/397844-1.xhtml
new file mode 100644
index 000000000000..3ad9b8464b10
--- /dev/null
+++ b/layout/generic/crashtests/397844-1.xhtml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
abcd | ghi jklmnop 2 qrs tuvwxy
+
+
+
diff --git a/layout/generic/crashtests/397844-2.xhtml b/layout/generic/crashtests/397844-2.xhtml
new file mode 100644
index 000000000000..d97600812c23
--- /dev/null
+++ b/layout/generic/crashtests/397844-2.xhtml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
abcd | ghi jk 2
+
+
+
diff --git a/layout/generic/crashtests/crashtests.list b/layout/generic/crashtests/crashtests.list
index 3ec1d467f8d6..b0ad218d8e55 100644
--- a/layout/generic/crashtests/crashtests.list
+++ b/layout/generic/crashtests/crashtests.list
@@ -89,6 +89,8 @@ load 395316-1.html
load 395450-1.xhtml
load 397007-1.html
load 397187-1.html
+load 397844-1.xhtml
+load 397844-2.xhtml
load 397852-1.xhtml
load 398181-1.html
load 398181-2.html