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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 255543009: Ensure that modal dialogs from subframes can be cleaned up correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't store a possibly deleted RFH Created 6 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index cc4f43502b0d9ee7419e13ba4d0953a1cfbc1711..604ff78c2487874571197bb65510993f84d8bd37 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -665,8 +665,11 @@ class CONTENT_EXPORT WebContentsImpl
// watching |web_contents|. No-op if there is no such observer.
void RemoveDestructionObserver(WebContentsImpl* web_contents);
- // Callback function when showing JavaScript dialogs.
- void OnDialogClosed(RenderFrameHost* rfh,
+ // Callback function when showing JavaScript dialogs. Takes in a routing ID
+ // pair to identify the RenderFrameHost that opened the dialog, because it's
+ // possible for the RenderFrameHost to be deleted by the time this is called.
+ void OnDialogClosed(int render_process_id,
+ int render_frame_id,
IPC::Message* reply_msg,
bool dialog_was_suppressed,
bool success,
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698