Bug 1406222 tests. r=heycam
MozReview-Commit-ID: 6fNGlwC8ZwA
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
@@ -236,8 +236,10 @@ 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