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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2392773002: Reenable framebusting deprecation, change it to allow navigation if iframe has ever had a user gestu (Closed)
Patch Set: TODOs and TouchEventmanager 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/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 31e6fa093898b30380fa398822e1db26da368d18..a2deee2703f00c1759190730e69e4032f992a52d 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -1283,6 +1283,9 @@ class CORE_EXPORT Document : public ContainerNode,
PropertyRegistry* propertyRegistry();
+ void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
+ bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
Rick Byers 2016/10/06 16:26:46 nit: add a comment documenting the semantics here,
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
@@ -1528,6 +1531,7 @@ class CORE_EXPORT Document : public ContainerNode,
bool m_designMode;
bool m_isRunningExecCommand;
+ bool m_hasReceivedUserGesture;
HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument;
// Oilpan keeps track of all registered NodeLists.

Powered by Google App Engine
This is Rietveld 408576698