Index: chrome/browser/web_contents.cc |
=================================================================== |
--- chrome/browser/web_contents.cc (revision 4898) |
+++ chrome/browser/web_contents.cc (working copy) |
@@ -1067,7 +1067,8 @@ |
const std::wstring& message, |
const std::wstring& default_prompt, |
const int flags, |
- IPC::Message* reply_msg) { |
+ IPC::Message* reply_msg, |
+ bool* did_suppress_message) { |
// Suppress javascript messages when requested and when inside a constrained |
// popup window (because that activates them and breaks them out of the |
// constrained window jail). |
@@ -1075,6 +1076,8 @@ |
if (delegate()) |
suppress_this_message |= delegate()->IsPopup(this); |
+ *did_suppress_message = suppress_this_message; |
+ |
if (!suppress_this_message) { |
TimeDelta time_since_last_message( |
TimeTicks::Now() - last_javascript_message_dismissal_); |