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

Issue 13888009: Mouse press should focus on any types of form controls. (Closed)

Created:
7 years, 8 months ago by tkent
Modified:
7 years, 6 months ago
CC:
blink-reviews, leviw_travelin_and_unemployed, eseidel, arv (Not doing code reviews)
Visibility:
Public.

Description

Mouse press should focus on any types of form controls. In WebKit, form controls except text fields and <select> are not mouse-focusable. IE, Firefox, and Opera(Presto) don't have such behavior and they set focus by mouse press. We follow non-WebKit browsers. The main part of this CL is to remove HTMLFormControlElement::isMouseFocusable. It means we use Node::isMouseFocusable, which is just isFocusable. We can remove many isMouseFocusable implementations of HTMLFormControlElement subclasses. Test changes: - Remove fast/events/click-focus-control.html because now it is covered by existing and new tests. - Need rebaseline for some tests. They contain focused form controls. BUG=89708

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -161 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +7 lines, -0 lines 0 comments Download
D LayoutTests/fast/events/click-focus-control.html View 1 chunk +0 lines, -90 lines 0 comments Download
D LayoutTests/fast/events/click-focus-control-expected.txt View 1 chunk +0 lines, -9 lines 0 comments Download
A LayoutTests/fast/forms/button/button-reset-focus-by-mouse.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/button/button-reset-focus-by-mouse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/datalist/update-range-with-datalist-expected.html View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/forms/radio/radio-focus-by-mouse.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/radio/radio-focus-by-mouse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/fast/forms/range/range-focus-by-mouse.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/range/range-focus-by-mouse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/fast/forms/submit/submit-focus-by-mouse.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/submit/submit-focus-by-mouse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/WebCore/html/HTMLFormControlElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/HTMLFormControlElement.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/WebCore/html/HTMLInputElement.h View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/WebCore/html/HTMLInputElement.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/WebCore/html/HTMLSelectElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/HTMLSelectElement.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/WebCore/html/HTMLTextAreaElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/HTMLTextAreaElement.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/WebCore/html/InputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/InputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/WebCore/html/TextFieldInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/WebCore/html/TextFieldInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tkent
7 years, 8 months ago (2013-04-15 09:00:29 UTC) #1
keishi
On 2013/04/15 09:00:29, tkent wrote: I thought we would be keeping the existing behavior for ...
7 years, 8 months ago (2013-04-15 11:59:04 UTC) #2
tkent
> I thought we would be keeping the existing behavior for Mac. I tried this ...
7 years, 8 months ago (2013-04-15 22:21:34 UTC) #3
ojan
lgtm I think the benefits to web developers of getting a consistent platform outweigh the ...
7 years, 8 months ago (2013-04-15 22:36:16 UTC) #4
eseidel
Could you explain what behavioral different mac users will experiance in Chrome?
7 years, 8 months ago (2013-04-15 23:11:28 UTC) #5
keishi
On 2013/04/15 23:11:28, Eric Seidel (Google) wrote: > Could you explain what behavioral different mac ...
7 years, 8 months ago (2013-04-16 01:58:24 UTC) #6
tkent
> What stood out most for me is the fact that buttons get focus when ...
7 years, 8 months ago (2013-04-16 02:07:08 UTC) #7
keishi
On 2013/04/16 02:07:08, tkent wrote: > > What stood out most for me is the ...
7 years, 8 months ago (2013-04-16 03:21:09 UTC) #8
Avi (use Gerrit)
On 2013/04/15 23:11:28, Eric Seidel (Google) wrote: > Could you explain what behavioral different mac ...
7 years, 8 months ago (2013-04-16 03:55:08 UTC) #9
tkent
On 2013/04/16 03:55:08, Avi wrote: > Would this change the tab-ordering behavior? Mac users complained ...
7 years, 8 months ago (2013-04-16 05:49:02 UTC) #10
Avi (use Gerrit)
On 2013/04/16 05:49:02, tkent wrote: > > Why would selection via mouse run by a ...
7 years, 8 months ago (2013-04-16 14:16:36 UTC) #11
ojan
On 2013/04/16 14:16:36, Avi wrote: > On 2013/04/16 05:49:02, tkent wrote: > > > Why ...
7 years, 8 months ago (2013-04-17 00:33:19 UTC) #12
eseidel
To be clear: My reading above is that with this change, when you click on ...
7 years, 8 months ago (2013-04-17 00:44:06 UTC) #13
ojan
Right now, form controls do the default Mac behavior at the expense of consistency with ...
7 years, 8 months ago (2013-04-18 02:57:29 UTC) #14
tkent
> > > > Why would selection via mouse run by a different mechanism? Also... ...
7 years, 8 months ago (2013-04-18 11:47:36 UTC) #15
tkent
On 2013/04/17 00:44:06, Eric Seidel (Google) wrote: > To be clear: My reading above is ...
7 years, 8 months ago (2013-04-18 11:55:52 UTC) #16
tkent
If there are no other objections, I'd like to land this patch just after M28 ...
7 years, 8 months ago (2013-04-25 02:00:15 UTC) #17
ojan
Elliot had some concerns. He was saying that people are annoyed at the Firefox behavior ...
7 years, 8 months ago (2013-04-25 02:07:32 UTC) #18
esprehn
On 2013/04/25 02:07:32, ojan wrote: > Elliot had some concerns. He was saying that people ...
7 years, 8 months ago (2013-04-25 03:57:18 UTC) #19
tkent
I don't think the tabindex idea is acceptable for web authors. It adds the third ...
7 years, 8 months ago (2013-04-25 04:52:40 UTC) #20
arv (Not doing code reviews)
This is a step in the right direction. What we need to do to make ...
7 years, 7 months ago (2013-04-29 23:14:43 UTC) #21
tkent
I tried to implement the followings: * HTMLFormControlElement has a flag to represent focused-by-mouse. * ...
7 years, 7 months ago (2013-05-23 02:28:56 UTC) #22
tkent
I'm closing this codereview and will make another for new approach because this has obsolete ...
7 years, 6 months ago (2013-05-30 06:41:00 UTC) #23
tkent
7 years, 6 months ago (2013-05-30 06:53:36 UTC) #24
Message was sent while issue was closed.
On 2013/05/30 06:41:00, tkent wrote:
> I'm closing this codereview and will make another for new approach because
this
> has obsolete LGTMs.

New issue is here: https://codereview.chromium.org/16194013/

Powered by Google App Engine
This is Rietveld 408576698