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

Side by Side Diff: LayoutTests/fast/dom/frame-deleted-in-document-open.html

Issue 8028034: Merge 95667 - [Chromium] Protect the Frame in V8HTMLDocument::openCallback (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/frame-deleted-in-document-open-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.layoutTestController) 4 if (window.layoutTestController)
5 layoutTestController.dumpAsText(); 5 layoutTestController.dumpAsText();
6 6
7 window.onload = function() 7 window.onload = function()
8 { 8 {
9 frame = document.body.appendChild(document.createElement("iframe")); 9 frame = document.body.appendChild(document.createElement("iframe"));
10 10
11 frame.contentWindow.open = null; 11 frame.contentWindow.open = null;
12 frame.contentWindow.__defineGetter__("open", function() { 12 frame.contentWindow.__defineGetter__("open", function() {
13 document.body.removeChild(frame); 13 document.body.removeChild(frame);
14 return function() { }; 14 return function() { };
15 }); 15 });
16 frame.contentDocument.open(1, 1, 1, 1, 1); 16 frame.contentDocument.open(1, 1, 1, 1, 1);
17 } 17 }
18 </script> 18 </script>
19 </head> 19 </head>
20 <body> 20 <body>
21 This test passes if it doesn't crash. 21 This test passes if it doesn't crash.
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/frame-deleted-in-document-open-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698