Index: LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-3.html |
diff --git a/LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-3.html b/LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-3.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db0171edf75491444ee7d7e6a2d62394e7e046a9 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-3.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<style></style> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ onload = function() { |
+ var link = document.createElement("link"); |
+ link.setAttribute("rel", "stylesheet"); |
+ link.setAttribute("href", "file:notfound.css"); |
+ document.head.appendChild(link); |
+ var root = host.createShadowRoot(); |
+ root.innerHTML = "<span><style></style><style></style>"; |
+ root.innerHTML = ""; |
+ } |
+</script> |
+<p>PASS if no crash</p> |
+<div id="host"></div> |