Index: LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash.html |
diff --git a/LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash.html b/LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bdee18faba4f7d041a86de5b2523674c2bd57e9 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<p>This test should not crash.</p> |
+<div id="outer"> |
+ <div id="host"></div> |
+</div> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+host.createShadowRoot().innerHTML = "<style>@import url(notfound.css);</style>"; |
+outer.removeChild(host); |
+</script> |