Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-3.html

Issue 1313443003: Fix crash when removing stylesheets from shadow tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review issues and added test. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698