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

Unified Diff: LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash.html

Issue 23708025: Clear TemplateContentDocumentFragment::m_host when HTMLTemplateElement is destroyed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix double-gc Created 7 years, 3 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/HTMLTemplateElement/content-outlives-template-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash.html
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash.html b/LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..a1bdad9fa8a97731bec00ba52941fe1de6edd83b
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<div>Test passes if it does not crash</div>
+<script src="../../../resources/gc.js"></script>
+<script>
+if (window.testRunner) testRunner.dumpAsText();
+var template = document.createElement('template');
+var content = template.content;
+template = null;
+gc();
+content.appendChild(document.createElement('div'));
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/content-outlives-template-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698