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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 0b5db4345b09c172ed0ced603228f3cc9fae5721..fa8680ad832bbe4e3bc47c0a3548e81272aec089 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2084,6 +2084,11 @@ void WebLocalFrameImpl::setCommittedFirstRealLoad() {
ensureFrameLoaderHasCommitted(frame()->loader());
}
+void WebLocalFrameImpl::setHasReceivedUserGesture() {
+ if (frame())
+ frame()->document()->setHasReceivedUserGesture();
+}
+
void WebLocalFrameImpl::sendOrientationChangeEvent() {
if (!frame())
return;

Powered by Google App Engine
This is Rietveld 408576698