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

Unified Diff: LayoutTests/svg/custom/tref-clone-crash.html

Issue 8041053: Revert 96034 - Merge 95791 - use after free in WebCore::SVGTRefElement::updateReferencedText (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 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/svg/custom/tref-clone-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/tref-clone-crash.html
===================================================================
--- LayoutTests/svg/custom/tref-clone-crash.html (revision 96047)
+++ LayoutTests/svg/custom/tref-clone-crash.html (working copy)
@@ -1,33 +0,0 @@
-<svg xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
- <defs>
- <style id="style"/>
- <text id="ref"></text>
- </defs>
- <g><use xlink:href="#ref"/></g>
- <g><text><tref id="tref" xlink:href="#ref"/></text></g>
- <script>
- function gc() {
- if (window.GCController)
- GCController.collect();
- else {
- for (var i = 0; i < 10000; ++i)
- new Object;
- }
- }
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
- }
- function runTest() {
- var tref = document.getElementById("tref");
- tref.cloneNode(true);
- gc();
- var elem = document.getElementById("style");
- var parent = elem.parentNode;
- parent.insertBefore(document.createElement("source"), elem);
- document.body.innerHTML = "PASS";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
- }
- </script>
-</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/tref-clone-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698