Bug 1412173 Part 2: Add a crashtest to check we can handle overlapping document open calls. draft
authorBrad Werth <bwerth@mozilla.com>
Mon, 30 Oct 2017 15:35:47 -0700
changeset 694493 6e77a278ecc7cb6262fa2cdb347b3b7f5646dde1
parent 694492 201a79d365a82d6978af02c2e13c6eb34c314f45
child 694494 f88391261ad8b5694164012700916832aeb7d8fe
push id88137
push userbwerth@mozilla.com
push dateTue, 07 Nov 2017 20:45:08 +0000
bugs1412173
milestone58.0a1
Bug 1412173 Part 2: Add a crashtest to check we can handle overlapping document open calls. MozReview-Commit-ID: LjyQgFicwuO
dom/html/crashtests/1412173.html
dom/html/crashtests/crashtests.list
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