Reviewers: bokan
CL:
https://codereview.chromium.org/2541513004/Message:
PTAL
Description:
Prevent restoreScrollPositionAndViewState called in setContentsSize when loading
This issue is cause by FrameView::setContentsSize called
FrameLoader::restoreScrollPositionAndViewState when reloading the page and
restoreScrollPositionAndViewState called ScrollableArea::setScrollOffset that
clear FrameView::m_fragmentAnchor. That casuse FrameView::scrollToFragmentAnchor
had no m_fragmentAnchor to scroll to.
In this patch we call scrollToFragmentAnchor before
restoreScrollPositionAndViewState in setContentsSize.
BUG=656658
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Affected files (+321, -217 lines):
M content/browser/frame_host/navigation_controller_impl_browsertest.cc
A content/test/data/navigation_controller/reload-with-url-anchor.html
M third_party/WebKit/Source/core/frame/FrameView.cpp