Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 29 Mar 2018 23:00:49 +1300
changeset 410710 b895a035f5e355a3380d5fb147d091be1e4808a5
parent 410709 eed14f951a09e36cd238c03b24511c8a0712bee6
child 410711 f49364d5ebad1bdc8db3c3b7ef785335feefadc8
push id33735
push usershindli@mozilla.com
push dateFri, 30 Mar 2018 09:55:46 +0000
treeherdermozilla-central@3f37287132bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1448841
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange MozReview-Commit-ID: LkiWFPk6dzV
layout/base/crashtests/1448841-1.html
layout/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/base/crashtests/1448841-1.html
@@ -0,0 +1,17 @@
+<html class="reftest-wait">
+<body>
+  <div style="width:500px; height:500px; overflow:scroll; border:1px black solid;">
+    <div id="change" style="width:100px; height:100px; background-color:green; position:relative; top:50px; left:50px"></div>
+    <div style="width:100px; height:100px; background-color:red; z-index:2; position:relative; left:200px"></div>
+    <div style="height:1000px"></div>
+  </div>
+  <div style="width:100px; height:100px; background-color:blue; z-index:1; position:relative; top:-400px"></div>
+</body>
+<script>
+  function doTest() {
+    document.getElementById("change").style.backgroundColor = "orange";
+    document.documentElement.removeAttribute("class");
+  }
+  document.addEventListener("MozReftestInvalidate", doTest);
+</script>
+</html>
--- a/layout/base/crashtests/crashtests.list
+++ b/layout/base/crashtests/crashtests.list
@@ -522,8 +522,9 @@ load 1425893.html
 load 1428353.html
 pref(dom.webcomponents.shadowdom.enabled,true) load 1429088.html
 load 1429961.html
 load 1435015.html
 load 1429962.html
 pref(dom.webcomponents.shadowdom.enabled,true) load 1439016.html
 load 1442506.html
 load 1437155.html
+load 1448841-1.html