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

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

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Created 3 years, 11 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 1907c612ecacacf8518e5a8eeac891195e1271ea..37df03082324b8e84b8d5e49bbff1f9380ff736a 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -553,8 +553,7 @@ void LocalFrame::didChangeVisibilityState() {
}
void LocalFrame::setDocumentHasReceivedUserGesture() {
- if (document())
- document()->setHasReceivedUserGesture();
+ m_hasReceivedUserGesture = true;
}
LocalFrame* LocalFrame::localFrameRoot() {
@@ -895,6 +894,7 @@ inline LocalFrame::LocalFrame(FrameLoaderClient* client,
m_pageZoomFactor(parentPageZoomFactor(this)),
m_textZoomFactor(parentTextZoomFactor(this)),
m_inViewSourceMode(false),
+ m_hasReceivedUserGesture(false),
m_interfaceProvider(interfaceProvider),
m_interfaceRegistry(interfaceRegistry) {
if (isLocalRoot()) {

Powered by Google App Engine
This is Rietveld 408576698