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

Issue 2772913003: AXObject::performDefaultAction() should focus if it can't click (Closed)

Created:
3 years, 9 months ago by dmazzoni
Modified:
3 years, 9 months ago
Reviewers:
nektarios, aboxhall
CC:
aboxhall+watch_chromium.org, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, haraken, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

AXObject::performDefaultAction() should focus if it can't click The user-visible bug here is that sending a CLICK event to a text field on Android does nothing, because a text field doesn't have a default action. I could fix this on the Android side, but this seems wrong to me. If performDefaultAction() is called on a focusable control, I think the natural thing to do is focus it if there's no "press" behavior. So I think we should handle that generally. Let me know if you have any objection and I could make it more narrow. But to me it seems more useful this way. BUG=703659 Review-Url: https://codereview.chromium.org/2772913003 Cr-Commit-Position: refs/heads/master@{#459448} Committed: https://chromium.googlesource.com/chromium/src/+/cbf2ebc6e589a5aa81d29c78cf392182de4329bb

Patch Set 1 #

Patch Set 2 : Add test #

Messages

Total messages: 14 (8 generated)
dmazzoni
Alice or Nektarios, any thoughts on this?
3 years, 9 months ago (2017-03-23 23:32:13 UTC) #3
nektarios
I agree. That's why I would have preferred if the method was called Activate instead ...
3 years, 9 months ago (2017-03-24 01:49:29 UTC) #5
nektarios
lgtm
3 years, 9 months ago (2017-03-24 01:49:36 UTC) #6
aboxhall
+1 lgtm On 2017/03/24 01:49:36, nektarios wrote: > lgtm
3 years, 9 months ago (2017-03-24 04:39:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2772913003/20001
3 years, 9 months ago (2017-03-24 16:15:46 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 16:23:07 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/cbf2ebc6e589a5aa81d29c78cf39...

Powered by Google App Engine
This is Rietveld 408576698