DescriptionFocus unfocusable node upon reference fragment navigation
Currently, when the page navigates to a non-focusable reference fragment,
the currently focused element does not change. In Firefox/IE, the focus is
moved to the referenced element even when this element is non-focusable.
This mismatch in behavior became apparent when Blink started supporting
a:focus (https://crbug.com/388666). In IE/FF, clicking on <a href="#ref">
causes the link to loose focus, and therefore :focus does not get applied
any more. In Chrome, however, :focus remains activated because the focus
does not change.
This patch changes the behavior of Blink: When the pages navigates to a
reference fragment that refers to a non-focusable node, then the focus
is removed from the previously focused element.
See also https://www.w3.org/Bugs/Public/show_bug.cgi?id=26907.
BUG=417636, 262171
TEST=Tools/Scripts/run-webkit-tests fast/dom/fragment-activation-focuses-target.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183455
Patch Set 1 #Patch Set 2 : Fix typos in layout tests (note: the focusable-node test fails, will investigate) #Patch Set 3 : Remove tab-to-focusable_node test #
Total comments: 4
Patch Set 4 : edit comment #Patch Set 5 : Remove "focusable node" from test expectation #
Messages
Total messages: 22 (7 generated)
|