Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index 013f8d56eca31777e282c120ae83f4b9465560df..2990710fcac09090d9fe2499d4c861242fc055f0 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -2067,6 +2067,8 @@ void TabContents::RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
!delegate_ || |
delegate_->ShouldSuppressDialogs(); |
if (suppress_this_message) { |
+ // TODO(creis): We need to send this reply to the RVH that sent the request, |
+ // even if it's not the current RVH. http;//crbug.com/109792. |
GetRenderViewHost()->JavaScriptDialogClosed(reply_msg, true, string16()); |
Matt Perry
2012/01/27 19:38:13
Isn't |rvh| the RVH that sent the request?
Charlie Reis
2012/01/27 20:11:30
Done.
|
return; |
} |
@@ -2264,6 +2266,8 @@ void TabContents::OnDialogClosed(IPC::Message* reply_msg, |
tab_close_start_time_ = base::TimeTicks(); |
} |
is_showing_before_unload_dialog_ = false; |
+ // TODO(creis): We need to send this reply to the RVH that sent the request, |
+ // even if it's not the current RVH. http;//crbug.com/109792. |
GetRenderViewHost()->JavaScriptDialogClosed(reply_msg, success, user_input); |
} |