summaryrefslogtreecommitdiff
path: root/layout/base/crashtests
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-03-04 00:32:21 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-03-04 21:32:12 +0800
commit00c570d27bd89f61d6d93e0bd099d9ab02b3a320 (patch)
tree432b4846a09cd4e3ce23cc163068093ede4f4ff3 /layout/base/crashtests
parent2fbefbbc584d9380e5b1987a617bc916d29e1a57 (diff)
downloaduxp-00c570d27bd89f61d6d93e0bd099d9ab02b3a320.tar.gz
Issue #2135 - Bug 1453789: Remove Element.createShadowRoot
Diffstat (limited to 'layout/base/crashtests')
-rw-r--r--layout/base/crashtests/1261351-iframe.html2
-rw-r--r--layout/base/crashtests/1404789-1.html16
-rw-r--r--layout/base/crashtests/crashtests.list1
3 files changed, 1 insertions, 18 deletions
diff --git a/layout/base/crashtests/1261351-iframe.html b/layout/base/crashtests/1261351-iframe.html
index a0484f3325..3730e83fa4 100644
--- a/layout/base/crashtests/1261351-iframe.html
+++ b/layout/base/crashtests/1261351-iframe.html
@@ -10,7 +10,7 @@
}
connectedCallback() {
- let shadow = this.createShadowRoot();
+ let shadow = this.attachShadow({ mode: "open" });
if (this.template) {
let te = document.createElement('template');
te.innerHTML = this.template;
diff --git a/layout/base/crashtests/1404789-1.html b/layout/base/crashtests/1404789-1.html
deleted file mode 100644
index bd577ae24d..0000000000
--- a/layout/base/crashtests/1404789-1.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!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>
diff --git a/layout/base/crashtests/crashtests.list b/layout/base/crashtests/crashtests.list
index c0b0085493..dfd77497e5 100644
--- a/layout/base/crashtests/crashtests.list
+++ b/layout/base/crashtests/crashtests.list
@@ -484,6 +484,5 @@ load 1308793.svg
load 1308848-1.html
load 1308848-2.html
asserts(0-1) load 1343606.html # bug 1343948
-load 1404789-1.html
load 1404789-2.html
load 1419762.html