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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2445193005: Route setHasReceivedUserGesture() state for RemoteFrames (Closed)
Patch Set: 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: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index ac001d67b038935366a3c684038eb211ed2e1b4c..3011eaa553a9e220ba546d56e460a14eafe3574e 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -534,6 +534,11 @@ void LocalFrame::didChangeVisibilityState() {
Frame::didChangeVisibilityState();
}
+void LocalFrame::setDocumentHasReceivedUserGesture() {
+ if (document())
+ document()->setHasReceivedUserGesture();
+}
+
LocalFrame* LocalFrame::localFrameRoot() {
LocalFrame* curFrame = this;
while (curFrame && curFrame->tree().parent() &&

Powered by Google App Engine
This is Rietveld 408576698