Bug 1439016: Crashtest. r?bholley
The crashtest will crash whenever the shell is destroyed, which is annoying,
but...
MozReview-Commit-ID: 1JkLy5K98bS
new file mode 100644
--- /dev/null
+++ b/layout/base/crashtests/1439016.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<div id="host">
+ <div slot="slot1">content</div>
+</div>
+<script>
+// NOTE(emilio): the failure mode for this crashtest is asserting whenever the
+// shell goes away.
+let shadowRoot = document.querySelector('#host').attachShadow({ mode: 'open' });
+shadowRoot.innerHTML = `
+ <div id="slot1-container">
+ <slot id="slot1" name="slot1"></slot>
+ <button id="button1">Click here</button>
+ </div>
+`;
+
+document.body.offsetTop;
+shadowRoot.querySelector('#slot1-container').remove();
+</script>
--- a/layout/base/crashtests/crashtests.list
+++ b/layout/base/crashtests/crashtests.list
@@ -519,8 +519,9 @@ load 1419762.html
load 1420533.html
load 1425959.html
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