| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 6fad532d64459ced233c709e1e3c2dfc6f03f501..ae4738f4f19290b94380f0d41a2578d929600abb 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -1506,10 +1506,13 @@ bool FrameView::processUrlFragmentHelper(const String& name, UrlFragmentBehavior
|
| // clear focus, which matches the behavior of other browsers.
|
| if (anchorNode) {
|
| m_frame->document()->updateLayoutIgnorePendingStylesheets();
|
| - if (behavior == UrlFragmentScroll && anchorNode->isFocusable())
|
| + if (behavior == UrlFragmentScroll && anchorNode->isFocusable()) {
|
| anchorNode->focus();
|
| - else
|
| + } else {
|
| + if (behavior == UrlFragmentScroll)
|
| + m_frame->document()->setSequentialFocusNavigationStartingPoint(anchorNode);
|
| m_frame->document()->clearFocusedElement();
|
| + }
|
| }
|
| return true;
|
| }
|
|
|