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/Element/normalize-crash2.html

Issue 398653003: Fix possible crash in Element::normalizeAttributes() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix fast/dom/normalize-attributes-mutation-event-crash.html failure Created 6 years, 5 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/Element/normalize-crash2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Element/normalize-crash2.html
diff --git a/LayoutTests/fast/dom/Element/normalize-crash2.html b/LayoutTests/fast/dom/Element/normalize-crash2.html
new file mode 100644
index 0000000000000000000000000000000000000000..32d9ce23ce1cebafdedd2408f73685046eea366c
--- /dev/null
+++ b/LayoutTests/fast/dom/Element/normalize-crash2.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div name="testDiv" id="testDiv"></div>
+<script>
+description("This test passes if it does not crash.");
+
+var testDiv = document.getElementById("testDiv");
+testDiv.attributes[0].appendChild(new Text("test"));
+testDiv.cloneNode(false);
+gc();
+testDiv.normalize();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/normalize-crash2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698