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

Unified Diff: Source/core/page/Page.cpp

Issue 225853005: Add support for setting password value gated on user's gesture in a page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 8da4a2127f7cc412e59e4cf7beeb577c55b502c0..5730c0e0777754fd22c08e917aca2abfa4adc875 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -135,6 +135,7 @@ Page::Page(PageClients& pageClients)
#ifndef NDEBUG
, m_isPainting(false)
#endif
+ , m_userGestureSeenSinceLastNavigation(false)
, m_frameHost(FrameHost::create(*this))
{
ASSERT(m_editorClient);
@@ -513,6 +514,7 @@ void Page::didCommitLoad(LocalFrame* frame)
{
lifecycleNotifier().notifyDidCommitLoad(frame);
if (m_mainFrame == frame) {
+ m_userGestureSeenSinceLastNavigation = false;
useCounter().didCommitLoad();
m_inspectorController->didCommitLoadForMainFrame();
}
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698