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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash.html

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing 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/HTMLScriptElement/append-child-style-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash.html b/LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..f1945bdc5fc9e3f3521778f1ef906287b26c6bf8
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<body>
+<script>
+function callback() {
+ style0.innerHTML = '';
+ script0.removeChild(style0);
+}
+
+style0=document.createElement('style');
+style0.innerHTML = 'span { color: blue; }';
+
+script0=document.createElement('script');
+script0.innerHTML = "callback();";
+script0.appendChild(style0);
+document.body.appendChild(script0);
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<p>PASS unless crash</p>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/append-child-style-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698