activating a focused link to an in-page fragment ID should transfer focus to the...
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Apr 2013 01:01:14 +0000 (01:01 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Apr 2013 01:01:14 +0000 (01:01 +0000)
commit024a72cf86a8576fdcd240804509c8ea5e525d00
tree644cff1f4718f32ac7195829120a30d29a52c0ce
parent811dd1434a42d37928fa84ad1286fba16c3e3bb0
activating a focused link to an in-page fragment ID should transfer focus to the target of the link when possible
https://bugs.webkit.org/show_bug.cgi?id=17450

Reviewed by Maciej Stachowiak.

Source/WebCore:

When a fragment is scrolled to due to an activation event or on load, focus should attempt to
move to the fragment if possible.

Test: fast/dom/fragment-activation-focuses-target.html

* page/FrameView.cpp:
(WebCore::FrameView::scrollToAnchor):

LayoutTests:

* fast/dom/fragment-activation-focuses-target.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/fragment-activation-focuses-target-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/fragment-activation-focuses-target.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/FrameView.cpp