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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2384813002: Don't wait to close tabs waiting for JavaScript dialogs. (Closed)
Patch Set: fix Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 943b1cc920129c011fed4b6b27b1764749f8b030..0329469ac8727ed79bb0d6e2af91e4205f067871 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -936,6 +936,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
// PlzNavigate: all navigations require a beforeUnload ACK.
bool unload_ack_is_for_navigation_;
+ // True while a JavaScript dialog is shown.
+ bool is_within_javascript_dialog_ = false;
Charlie Reis 2016/10/05 22:00:59 Any chance the delegate knows if the dialog is sho
+
// Indicates whether this RenderFrameHost is in the process of loading a
// document or not.
bool is_loading_;

Powered by Google App Engine
This is Rietveld 408576698