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

Unified Diff: content/test/data/navigation_controller/remove_blank_iframe_on_load.html

Issue 2312243002: Avoid use-after-free if frame is deleted when stopping loading. (Closed)
Patch Set: Created 4 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 | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/navigation_controller/remove_blank_iframe_on_load.html
diff --git a/content/test/data/navigation_controller/remove_blank_iframe_on_load.html b/content/test/data/navigation_controller/remove_blank_iframe_on_load.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa29b3e50f3a33857e4e8b1f2f2c1c3cb5f9299d
--- /dev/null
+++ b/content/test/data/navigation_controller/remove_blank_iframe_on_load.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<script>
+function removeFrame() {
+ var f = document.getElementById("frame1");
+ document.body.removeChild(f);
+}
+</script>
+</head>
+<body onload="removeFrame()">
+ This page removes its blank iframe on load.<br>
+ <iframe id="frame1"></iframe>
+</body>
+</html>
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698