Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Issue 20670002: REGRESSION: Click on focused link should not remove focus on it. (Closed)

Created:
7 years, 5 months ago by tkent
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

REGRESSION: Click on focused link should not remove focus on it. This is a regression by wkrev.com/72796. The first isMouseFocusable call in EventHandler::dispatchMouseEvent should be isFocusable because we need to do different things for focusable-but-non-mouse-focusable elements. Also fix wrong usage of isMouseFocusable in text shadow elements and SVG elements. In general isFocusable must return true whenever isMouseFocusable is true. Some layout tests fail without these changes. BUG=264575 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155083

Patch Set 1 : #

Total comments: 2

Patch Set 2 : move some code to SVGElement #

Total comments: 4

Patch Set 3 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -35 lines) Patch
A LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/shadow/TextControlInnerElements.h View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGCircleElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGElement.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGElement.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/svg/SVGEllipseElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGGElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGImageElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGLineElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGPathElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGPolyElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGRectElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGSVGElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGStyledElement.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGStyledElement.cpp View 1 1 chunk +0 lines, -13 lines 0 comments Download
M Source/core/svg/SVGSwitchElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGSymbolElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGTextElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGUseElement.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
tkent
7 years, 5 months ago (2013-07-26 13:14:42 UTC) #1
dglazkov
lgtm
7 years, 5 months ago (2013-07-26 13:27:22 UTC) #2
Stephen Chennney
Not ready yet. https://codereview.chromium.org/20670002/diff/7001/Source/core/svg/SVGStyledElement.cpp File Source/core/svg/SVGStyledElement.cpp (right): https://codereview.chromium.org/20670002/diff/7001/Source/core/svg/SVGStyledElement.cpp#newcode474 Source/core/svg/SVGStyledElement.cpp:474: Element* eventTarget = const_cast<SVGStyledElement *>(this); This ...
7 years, 5 months ago (2013-07-26 14:31:14 UTC) #3
tkent
pdr, can you take a loot at SVG changes because Stephen is OOO? https://codereview.chromium.org/20670002/diff/7001/Source/core/svg/SVGStyledElement.cpp File ...
7 years, 4 months ago (2013-07-28 23:42:18 UTC) #4
tkent
> The purpose of this case is to get non-const |this| because hasEventListeners is this ...
7 years, 4 months ago (2013-07-28 23:43:17 UTC) #5
pdr.
LGTM with nits. https://codereview.chromium.org/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html File LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html (right): https://codereview.chromium.org/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html#newcode7 LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html:7: description('Click on a focused anchor element ...
7 years, 4 months ago (2013-07-29 00:17:47 UTC) #6
tkent
https://chromiumcodereview.appspot.com/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html File LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html (right): https://chromiumcodereview.appspot.com/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html#newcode7 LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html:7: description('Click on a focused anchor element should not change ...
7 years, 4 months ago (2013-07-29 03:31:06 UTC) #7
pdr.
On 2013/07/29 03:31:06, tkent wrote: > https://chromiumcodereview.appspot.com/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html > File LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html > (right): > > https://chromiumcodereview.appspot.com/20670002/diff/16001/LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element.html#newcode7 ...
7 years, 4 months ago (2013-07-29 03:33:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/20670002/27001
7 years, 4 months ago (2013-07-29 05:16:48 UTC) #9
commit-bot: I haz the power
7 years, 4 months ago (2013-07-29 09:28:44 UTC) #10
Message was sent while issue was closed.
Change committed as 155083

Powered by Google App Engine
This is Rietveld 408576698