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/fast/dom/beforeload/resources/object-beforeload-crash.html

Issue 14329005: UpdateWidget() can fire beforeload event synchronously blowing away RenderArena and its associated … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Incorporate Dominicc's comments Created 7 years, 8 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
Index: LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html
diff --git a/LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html b/LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html
new file mode 100755
index 0000000000000000000000000000000000000000..d7d76822553e13b6fd8b3f00049aae55e6c2ad88
--- /dev/null
+++ b/LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<script>
+var count = 0;
+function beforeLoadEventHandler() {
+ if (++count == 1)
+ parent1.addEventListener('DOMSubtreeModified', parent.finish, false);
+ else if (count == 2)
+ parent1.removeChild(frame1);
+ gc();
+}
+
+function documentLoaded() {
+ frame1 = window.frameElement;
+ parent1 = frame1.parentNode;
+ var object1 = document.createElement("object");
+ object1.addEventListener('beforeload', beforeLoadEventHandler, false);
+ document.body.appendChild(object1);
+}
+
+window.onload = documentLoaded;
+</script>
+</head>
+<body>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/dom/beforeload/object-beforeload-crash-main-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698