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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var count = 0;
5 function beforeLoadEventHandler() {
6 if (++count == 1)
7 parent1.addEventListener('DOMSubtreeModified', parent.finish, false);
8 else if (count == 2)
9 parent1.removeChild(frame1);
10 gc();
11 }
12
13 function documentLoaded() {
14 frame1 = window.frameElement;
15 parent1 = frame1.parentNode;
16 var object1 = document.createElement("object");
17 object1.addEventListener('beforeload', beforeLoadEventHandler, false);
18 document.body.appendChild(object1);
19 }
20
21 window.onload = documentLoaded;
22 </script>
23 </head>
24 <body>
25 </body>
26 </html>
OLDNEW
« 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