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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 2721423003: Reset Frame::m_hasReceivedUserGesture for main frames on navigation (Closed)
Patch Set: One bit, reset for main frames on commit Created 3 years, 9 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 | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index 59df86f0c71e8dce1b85eb387ee2e9d37f4e6b41..8b56364cd549f6fe134d0be8e19cb1059789eb4e 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -110,7 +110,7 @@ bool WebFrame::swap(WebFrame* frame) {
uniqueName);
}
- if (oldFrame->hasReceivedUserGesture())
+ if (m_parent && oldFrame->hasReceivedUserGesture())
frame->toImplBase()->frame()->setDocumentHasReceivedUserGesture();
frame->toImplBase()->frame()->getWindowProxyManager()->setGlobals(globals);
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698