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

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

Issue 1849013004: Fix JavaScript alerts from frames with oopif on, after a cross-process click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alertfix
Patch Set: cleaner re swapped out Created 4 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/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 acef076ae2f1c4b7bc2b61fd40f5fc29ce772670..6f5e3bf1b22ff643991aab3dbcb3ea3138f2094c 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -559,6 +559,12 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// in a non-loading state.
void ResetLoadingState();
+ // Tells the renderer that this RenderFrame will soon be swapped out, and thus
+ // not to create any new modal dialogs until it happens. This must be done
+ // separately so that the PageGroupLoadDeferrers of any current dialogs are no
Charlie Reis 2016/04/08 17:27:39 nit: ScopedPageLoadDeferrer (throughout the CL)
Avi (use Gerrit) 2016/04/08 17:44:01 Done.
+ // longer on the stack when we attempt to swap it out.
+ void SuppressFurtherDialogs();
+
// PlzNavigate: returns the LoFi state of the last successful navigation that
// made a network request.
LoFiState last_navigation_lofi_state() const {

Powered by Google App Engine
This is Rietveld 408576698