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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.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/Frame.cpp
diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
index 6f7a7402da5898e23d8477e1302556579c2b8883..c4691bde5b97d126b4bf924e0552ad3c85840e61 100644
--- a/third_party/WebKit/Source/core/frame/Frame.cpp
+++ b/third_party/WebKit/Source/core/frame/Frame.cpp
@@ -167,8 +167,7 @@ bool Frame::canNavigate(const Frame& targetFrame) {
canNavigateWithoutFramebusting(targetFrame, errorReason);
const bool sandboxed = securityContext()->getSandboxFlags() != SandboxNone;
const bool hasUserGesture =
- isLocalFrame() ? toLocalFrame(this)->document()->hasReceivedUserGesture()
- : false;
+ isLocalFrame() ? toLocalFrame(this)->hasReceivedUserGesture() : false;
// Top navigation in sandbox with or w/o 'allow-top-navigation'.
if (targetFrame != this && sandboxed && targetFrame == tree().top()) {

Powered by Google App Engine
This is Rietveld 408576698