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

Unified Diff: LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html

Issue 203253006: Don't call ill-balanced removeStyleSheetCandidateNode() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
diff --git a/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html b/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b5d66f4359fccc6fee79cadaf4272287e7615e4
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<div></div>
+<script>
+myDiv = document.body.querySelector("div");
+
+newStyle = document.createElement("style");
+newStyle.onload = function() { document.body.appendChild(myDiv); }
+document.body.appendChild(newStyle);
+
+newDiv = document.createElement("div");
+// Inserting <iframe> into tree flushes the pending @onload event.
+newDiv.innerHTML = "<iframe></iframe><style></style>";
+myDiv.createShadowRoot().appendChild(newDiv);
+
+debug("PASS unless crash");
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698