Index: third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7cdc19dfcf2a4ab571f87a52a13fafee7076e88f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/move-shadow-host-to-child-iframe-crash.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<div id="host"> |
+ <iframe id="iframe"></iframe> |
+</div> |
+<script> |
+ test(() => { |
+ host.attachShadow({mode:"open"}).innerHTML = "<style></style>"; |
+ iframe.contentDocument.documentElement.appendChild(host); |
+ }, "Inserting a shadow host with an iframe child into that iframes document should not crash or assert."); |
+</script> |