summaryrefslogtreecommitdiff
path: root/layout/base/crashtests/1404789-1.html
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 06:41:00 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 06:41:00 -0400
commited7faf3fde0000b139414648269d2ff82846bac1 (patch)
treead0bf172f0f3332bf42f09f7644f568924f48a3b /layout/base/crashtests/1404789-1.html
parent3758434680616e91edf696e546fe3cc3b1d4da9c (diff)
downloaduxp-ed7faf3fde0000b139414648269d2ff82846bac1.tar.gz
Bug 1404789 - Stop reconstructing frames for the whole shadow root each time content is inserted in a shadow tree
* Cleanup a bit the ShadowRoot code * Privatize ShadowRoot methods * When the shadow tree distribution changes, post a restyle + reframe * Simplify ShadowRoot::IsPooledNode * Be a bit better at detecting distribution changes Tag #1375
Diffstat (limited to 'layout/base/crashtests/1404789-1.html')
-rw-r--r--layout/base/crashtests/1404789-1.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layout/base/crashtests/1404789-1.html b/layout/base/crashtests/1404789-1.html
new file mode 100644
index 0000000000..bd577ae24d
--- /dev/null
+++ b/layout/base/crashtests/1404789-1.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<script>
+ // Test for content redistribution outside of the document.
+ // Passes if it doesn't assert.
+ let host = document.createElement('div');
+ host.innerHTML = "<div id='foo'></div>";
+
+ let shadowRoot = host.createShadowRoot();
+ shadowRoot.innerHTML = "<content select='#foo'></content>";
+
+ host.firstElementChild.removeAttribute('id');
+
+ // Move to the document, do the same.
+ document.documentElement.appendChild(host);
+ host.firstElementChild.setAttribute('id', 'foo');
+</script>