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

Issue 191293011: Value set in onblur should not keep element in focus (Closed)

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

Description

Value set in onblur should not keep element in focus Value set in onblur was resulting in element still in focus due to reset of the layout called on setValue. This patch fixes on reset of layout to remove focus. R=tkent, keishi1 BUG=347684 TEST=Background color differ when on blur value is set. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170441

Patch Set 1 #

Total comments: 1

Patch Set 2 : SetFocus handler implementation for DateTimeFieldElement #

Total comments: 12

Patch Set 3 : Code review updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
A LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/shadow/DateTimeFieldElement.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/html/shadow/DateTimeFieldElement.cpp View 1 2 2 chunks +3 lines, -14 lines 0 comments Download
M Source/core/html/shadow/DateTimeNumericFieldElement.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/html/shadow/DateTimeNumericFieldElement.cpp View 1 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Habib Virji
Setting value results in layout reset and resetFields() resets m_fieldOwner, which result in onblur failing. ...
6 years, 9 months ago (2014-03-10 10:42:04 UTC) #1
tkent
Would you explain why EditControlOwner::didBlurFromControl is not called (or extra didFocusOnField is called)? https://codereview.chromium.org/191293011/diff/1/Source/core/html/shadow/DateTimeEditElement.cpp File ...
6 years, 9 months ago (2014-03-11 04:41:58 UTC) #2
Habib Virji
"Would you explain why EditControlOwner::didBlurFromControl is not called (or extra didFocusOnField is called)? It never ...
6 years, 9 months ago (2014-03-11 11:46:32 UTC) #3
Habib Virji
On 2014/03/11 04:41:58, tkent wrote: > Would you explain why EditControlOwner::didBlurFromControl is not called (or ...
6 years, 9 months ago (2014-03-11 17:27:29 UTC) #4
Habib Virji
Combined above comments: "Would you explain why EditControlOwner::didBlurFromControl is not called (or extra didFocusOnField is ...
6 years, 9 months ago (2014-03-11 17:31:20 UTC) #5
tkent
Thanks. I understand the situation. I still think Patch Set 1 is not good. I ...
6 years, 9 months ago (2014-03-12 00:22:28 UTC) #6
Habib Virji
An update, still investigating. This is my current finding till now for using setFocus instead ...
6 years, 9 months ago (2014-03-17 16:07:53 UTC) #7
Habib Virji
Apologies it took a long time to work out the suggestion. Was missing ContainerNode::setFocus call ...
6 years, 9 months ago (2014-03-27 16:20:59 UTC) #8
tkent
lgtm with nits https://codereview.chromium.org/191293011/diff/20001/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html File LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html (right): https://codereview.chromium.org/191293011/diff/20001/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html#newcode16 LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html:16: testInput.value=""; nit: Needs spaces around '=' ...
6 years, 8 months ago (2014-03-31 04:17:07 UTC) #9
Habib Virji
Thanks, updated as per review comments. https://codereview.chromium.org/191293011/diff/20001/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html File LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html (right): https://codereview.chromium.org/191293011/diff/20001/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html#newcode16 LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html:16: testInput.value=""; On 2014/03/31 ...
6 years, 8 months ago (2014-03-31 09:05:51 UTC) #10
tkent
lgtm. Thank you!
6 years, 8 months ago (2014-03-31 09:13:54 UTC) #11
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 8 months ago (2014-03-31 09:13:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/191293011/40001
6 years, 8 months ago (2014-03-31 09:14:02 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 09:41:02 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 8 months ago (2014-03-31 09:41:02 UTC) #15
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 8 months ago (2014-03-31 09:42:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/191293011/40001
6 years, 8 months ago (2014-03-31 09:42:20 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 10:22:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-03-31 10:22:35 UTC) #19
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 8 months ago (2014-03-31 11:54:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/191293011/40001
6 years, 8 months ago (2014-03-31 11:54:21 UTC) #21
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 11:54:59 UTC) #22
Message was sent while issue was closed.
Change committed as 170441

Powered by Google App Engine
This is Rietveld 408576698