Bug 1384824 - Part 2: Crashtests. r=bholley, a=lizzard
authorCameron McCormack <cam@mcc.id.au>
Fri, 04 Aug 2017 19:26:04 +1000
changeset 423475 8e739b4451a0e0954ef93d4dd8d8924147dc8413
parent 423474 38f18620cfea2dba7c8189b05e3ced8e2755a77b
child 423476 37098c6bb11c28dccac6d87d1605f69571116409
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley, lizzard
bugs1384824
milestone56.0
Bug 1384824 - Part 2: Crashtests. r=bholley, a=lizzard MozReview-Commit-ID: B8MqVBlxEBx
layout/style/crashtests/1384824-1.html
layout/style/crashtests/1384824-2.html
layout/style/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1384824-1.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<style>
+  textarea {
+    min-height: 100px;
+  }
+</style>
+<div>
+  <iframe src="about:blank"></iframe>
+</div>
+<script>
+  let div = document.querySelector('div');
+  let iframe = document.querySelector('iframe');
+  iframe.onload = function() {
+    let doc = iframe.contentDocument;
+    let e = doc.createElement('textarea');
+    doc.body.appendChild(e);
+    setTimeout(function() {
+      getComputedStyle(e).minHeight;
+      div.style.display = 'none';
+      setTimeout(function() {
+        getComputedStyle(e).minHeight;
+        document.documentElement.className = "";
+      }, 0);
+    }, 0);
+  };
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1384824-2.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<style>
+  textarea {
+    min-height: 100px;
+  }
+</style>
+<div>
+  <iframe src="about:blank"></iframe>
+</div>
+<script>
+  let div = document.querySelector('div');
+  let iframe = document.querySelector('iframe');
+  iframe.onload = function() {
+    let doc = iframe.contentDocument;
+    let e = doc.createElement('textarea');
+    doc.body.appendChild(e);
+    setTimeout(function() {
+      var cs = getComputedStyle(e);
+      cs.minHeight;
+      div.style.display = 'none';
+      setTimeout(function() {
+        div.style.display = 'block';
+        setTimeout(function() {
+          cs.minHeight;
+          document.documentElement.className = "";
+        }, 0);
+      }, 0);
+    }, 0);
+  };
+</script>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -191,9 +191,11 @@ load border-image-visited-link.html
 load content-only-on-link-before.html
 load content-only-on-visited-before.html
 load font-face-truncated-src.html
 load large_border_image_width.html
 load link-transition-before.html
 load long-url-list-stack-overflow.html
 load 1383981.html
 load 1383981-2.html
+load 1384824-1.html
+load 1384824-2.html
 load 1387481-1.html