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

Issue 258933006: Fix selection of label having control element. (Closed)

Created:
6 years, 7 months ago by deepak.sa
Modified:
6 years, 7 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, ojan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix selection of label having control element. Any click event on label goes to its control element. So, if we tried to select the text inside label by dragging the mouse or by double clicking on the text, it went to its control element. This patch checks whether there is selection or not, after the click is happened. If there is selection then do nothing else continue. New Layout test added: fast/forms/label/label-selection.html BUG=148912 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173310

Patch Set 1 #

Total comments: 8

Patch Set 2 : Layout test updated #

Total comments: 11

Patch Set 3 : Addressing comments #

Total comments: 2

Patch Set 4 : addressing comments #

Patch Set 5 : Fixed Layout test for windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -2 lines) Patch
A LayoutTests/fast/forms/label/label-selection.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/label/label-selection-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLLabelElement.cpp View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
deepak.sa
Please have a look. Thanks!
6 years, 7 months ago (2014-04-28 10:15:01 UTC) #1
tkent
> fast/selectors/label-selection.html It's a wrong path. fast/selectors/ is for CSS selectors. The test should be ...
6 years, 7 months ago (2014-04-29 23:36:09 UTC) #2
keishi
https://codereview.chromium.org/258933006/diff/1/LayoutTests/fast/selectors/label-selection.html File LayoutTests/fast/selectors/label-selection.html (right): https://codereview.chromium.org/258933006/diff/1/LayoutTests/fast/selectors/label-selection.html#newcode44 LayoutTests/fast/selectors/label-selection.html:44: <input id="inputText" type='text'></input> nit: input should not have an ...
6 years, 7 months ago (2014-04-30 01:13:13 UTC) #3
deepak.sa
Layout test updated. Please have another look. Thanks! https://codereview.chromium.org/258933006/diff/1/LayoutTests/fast/selectors/label-selection.html File LayoutTests/fast/selectors/label-selection.html (right): https://codereview.chromium.org/258933006/diff/1/LayoutTests/fast/selectors/label-selection.html#newcode5 LayoutTests/fast/selectors/label-selection.html:5: function ...
6 years, 7 months ago (2014-05-02 06:18:45 UTC) #4
keishi
https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html File LayoutTests/fast/forms/label/label-selection.html (right): https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html#newcode3 LayoutTests/fast/forms/label/label-selection.html:3: <script src="../../../resources/js-test.js"></script> I think form tests generally don't indent ...
6 years, 7 months ago (2014-05-02 07:52:03 UTC) #5
deepak.sa
Updated HTML file. https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html File LayoutTests/fast/forms/label/label-selection.html (right): https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html#newcode3 LayoutTests/fast/forms/label/label-selection.html:3: <script src="../../../resources/js-test.js"></script> On 2014/05/02 07:52:03, keishi1 ...
6 years, 7 months ago (2014-05-02 08:28:27 UTC) #6
keishi
https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html File LayoutTests/fast/forms/label/label-selection.html (right): https://codereview.chromium.org/258933006/diff/20001/LayoutTests/fast/forms/label/label-selection.html#newcode22 LayoutTests/fast/forms/label/label-selection.html:22: { On 2014/05/02 08:28:27, deepak.sa wrote: > On 2014/05/02 ...
6 years, 7 months ago (2014-05-02 08:48:34 UTC) #7
deepak.sa
Layout test updated. https://codereview.chromium.org/258933006/diff/40001/LayoutTests/fast/forms/label/label-selection.html File LayoutTests/fast/forms/label/label-selection.html (right): https://codereview.chromium.org/258933006/diff/40001/LayoutTests/fast/forms/label/label-selection.html#newcode14 LayoutTests/fast/forms/label/label-selection.html:14: testRunner.dumpAsText(); On 2014/05/02 08:48:35, keishi1 wrote: ...
6 years, 7 months ago (2014-05-02 12:55:31 UTC) #8
keishi
lgtm
6 years, 7 months ago (2014-05-02 16:04:34 UTC) #9
deepak.sa
The CQ bit was checked by deepak.sa@samsung.com
6 years, 7 months ago (2014-05-02 17:50:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deepak.sa@samsung.com/258933006/60001
6 years, 7 months ago (2014-05-02 17:50:42 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 18:03:14 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink
6 years, 7 months ago (2014-05-02 18:03:14 UTC) #13
deepak.sa
The CQ bit was checked by deepak.sa@samsung.com
6 years, 7 months ago (2014-05-02 21:00:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deepak.sa@samsung.com/258933006/60001
6 years, 7 months ago (2014-05-02 21:00:20 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:48:37 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink
6 years, 7 months ago (2014-05-02 21:48:38 UTC) #17
deepak.sa
The CQ bit was checked by deepak.sa@samsung.com
6 years, 7 months ago (2014-05-05 06:50:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deepak.sa@samsung.com/258933006/60001
6 years, 7 months ago (2014-05-05 06:51:02 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-05 07:34:33 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink
6 years, 7 months ago (2014-05-05 07:34:33 UTC) #21
deepak.sa
The CQ bit was checked by deepak.sa@samsung.com
6 years, 7 months ago (2014-05-05 13:25:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deepak.sa@samsung.com/258933006/80001
6 years, 7 months ago (2014-05-05 13:25:15 UTC) #23
commit-bot: I haz the power
Change committed as 173310
6 years, 7 months ago (2014-05-05 14:28:36 UTC) #24
Xianzhu
6 years, 7 months ago (2014-05-16 17:10:24 UTC) #25
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/290153002/ by wangxianzhu@chromium.org.

The reason for reverting is: Causes bug 370859

BUG=148912,370859.

Powered by Google App Engine
This is Rietveld 408576698