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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Pass through FrameReplicationState 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/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 669c20af2972c42385ca57ad8af63ba7e57d3649..1668aa80c56fac17ba9a3b6a9fe03e8523409b54 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -816,7 +816,8 @@ void FrameLoader::updateForSameDocumentNavigation(
if (!m_currentItem)
historyCommitType = HistoryInertCommit;
if (m_frame->settings()->getHistoryEntryRequiresUserGesture() &&
- initiatingDocument && !initiatingDocument->hasReceivedUserGesture()) {
+ initiatingDocument &&
+ !initiatingDocument->frame()->hasReceivedUserGesture()) {
historyCommitType = HistoryInertCommit;
}
@@ -962,7 +963,7 @@ FrameLoadType FrameLoader::determineFrameLoadType(
if (m_frame->settings()->getHistoryEntryRequiresUserGesture() &&
request.originDocument() &&
- !request.originDocument()->hasReceivedUserGesture())
+ !request.originDocument()->frame()->hasReceivedUserGesture())
return FrameLoadTypeReplaceCurrentItem;
return FrameLoadTypeStandard;
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698