Bug 1406222 - Tests. r=heycam, a=ritu
authorBoris Zbarsky <bzbarsky@mit.edu>
Sat, 07 Oct 2017 10:10:18 +0200
changeset 432323 dcc4e8d773a4
parent 432322 f10c0a18896e
child 432324 7d76e5af1c2b
push id7930
push userryanvm@gmail.com
push date2017-10-09 19:21 +0000
treeherdermozilla-beta@b92b69f3503e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam, ritu
bugs1406222
milestone57.0
Bug 1406222 - Tests. r=heycam, a=ritu MozReview-Commit-ID: 6fNGlwC8ZwA
layout/style/crashtests/1406222-1.html
layout/style/crashtests/1406222-2.html
layout/style/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1406222-1.html
@@ -0,0 +1,25 @@
+<script>
+window.addEventListener("load", function(event) {
+  setTimeout(window.close, 1000);
+});
+</script>
+<!-- a -->
+<style id="s1">
+:not(video) { position: fixed; }
+a::first-line {}
+*, .class3 { columns: 0px; }
+</style>
+<script>
+function jsfuzzer() {
+try { s1.appendChild(htmlvar00009); } catch(e) { }
+try { htmlvar00001.scrollIntoView(true); } catch(e) { }
+try { htmlvar00003.href = undefined; } catch(e) { }
+try { document.createEvent("1"); } catch(e) { }
+}
+</script>
+<body onload=jsfuzzer()>
+<shadow id="htmlvar00001">
+<a id="htmlvar00003">
+</a>
+<a id="htmlvar00009">
+<!-- a -->
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1406222-2.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<style>
+a { display: block; }
+a { columns: 0px; }
+a::first-line {}
+</style>
+<script>
+onload = function() {
+  document.body.offsetWidth;
+  document.body.style.color = "green";
+  document.body.offsetWidth;
+  document.querySelector("a").href = "Something";
+}
+</script>
+<a>Some text</a>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -233,12 +233,14 @@ load 1402472.html
 load 1403028.html
 load 1403433.html
 load 1403465.html
 load 1403592.html
 load 1403615.html
 load 1403712.html
 load 1404180-1.html
 load 1404316.html
+load 1406222-1.html
+load 1406222-2.html
 asserts-if(stylo,1) load 1404324-1.html # bug 1405605
 load 1404324-2.html
 load 1404324-3.html
 load 1404057.html