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

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

Issue 2750483007: Only show a beforeunload dialog if a frame has been interacted with. (Closed)
Patch Set: rev Created 3 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 e9d29e4f59d5be984e8ca84c20350c91c00c7fbe..61a3cbe403686ea3e23b9e20f64d9d0c3456d2e6 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -851,6 +851,8 @@ class CONTENT_EXPORT WebContentsImpl
JavaScriptDialogsInMainAndSubframes);
FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest,
IframeBeforeUnloadParentHang);
+ FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest,
+ BeforeUnloadDialogRequiresGesture);
// So |find_request_manager_| can be accessed for testing.
friend class FindRequestManagerTest;

Powered by Google App Engine
This is Rietveld 408576698