| 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;
|
|
|