Bug 1412173 Part 2: Add a crashtest to check we can handle overlapping document open calls.
MozReview-Commit-ID: LjyQgFicwuO
new file mode 100644
--- /dev/null
+++ b/dom/html/crashtests/1412173.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<script>
+let f = document.createElement('frame');
+f.onload = function() {
+ let frameDocument = f.contentDocument;
+ frameDocument.body.onbeforeunload = function () { frameDocument.write('<p>beforeUnload</p>') };
+ frameDocument.write('<p>trigger unload</p>')
+ window.stop();
+ document.documentElement.className = '';
+};
+document.documentElement.appendChild(f);
+</script>
+</head>
+<body>
+</body>
+</html>
--- a/dom/html/crashtests/crashtests.list
+++ b/dom/html/crashtests/crashtests.list
@@ -79,9 +79,10 @@ load 1237633.html
load 1281972-1.html
load 1282894.html
load 1290904.html
load 1343886-1.html
load 1343886-2.xml
load 1343886-3.xml
load 1350972.html
load 1386905.html
-asserts(0-4) load 1401726.html
\ No newline at end of file
+asserts(0-4) load 1401726.html
+load 1412173.html