Bug 1400936: Crashtests. r?bholley
MozReview-Commit-ID: 6Q07StWSog
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1400936-1.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<style>
+fieldset:invalid {
+ border: 10px solid red;
+}
+fieldset:valid {
+ border: 10px solid green;
+}
+input.foo {
+ color: green;
+}
+</style>
+<div>
+ <fieldset id="fieldset">
+ <div id="ancestor">
+ <input type="text" id="requiredInput" required>
+ <input type="text" id="other">
+ </div>
+ </fieldset>
+</div>
+<script>
+window.onload = function() {
+ other.classList.add('foo');
+ ancestor.remove();
+};
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1400936-2.html
@@ -0,0 +1,12 @@
+<script>
+document.addEventListener("DOMContentLoaded", function(){
+ document.getElementById('a').appendChild(document.createElement('rtc'));
+ let e = document.getElementById('b');
+ document.getElementById('c').appendChild(e.parentNode.removeChild(e));
+});
+</script>
+<body dir='auto'>
+<abbr id='b'>
+ޜ
+<meter id='c'>
+<keygen id='a'>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -220,8 +220,10 @@ load 1398479.html
load 1398581.html
load 1400035.html
load 1399546.html
load 1400325.html
load 1400926.html
load 1401256.html
load 1402419.html
load 1401706.html
+load 1400936-1.html
+load 1400936-2.html