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

Issue 621503003: Exclude readonly and disabled elements from autofill form. (Closed)

Created:
6 years, 2 months ago by ziran.sun
Modified:
6 years, 2 months ago
Reviewers:
Ilya Sherman, Mike West
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Exclude readonly and disabled elements from autofill form. R=isherman@chromium.org BUG=231160 Committed: https://crrev.com/cfe1912bcc70118364c9156e1e12c6c89b1a06b9 Cr-Commit-Position: refs/heads/master@{#298436}

Patch Set 1 #

Patch Set 2 : Update test expectations for FormStructure browser_tests. #

Total comments: 1

Patch Set 3 : Fold checks on ReadOnly and Enabled into IsAutofillable() function. #

Messages

Total messages: 12 (2 generated)
ziran.sun
Please review. Thanks!
6 years, 2 months ago (2014-10-02 12:46:48 UTC) #1
Mike West
https://codereview.chromium.org/621503003/diff/20001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/621503003/diff/20001/components/autofill/content/renderer/form_autofill_util.cc#newcode730 components/autofill/content/renderer/form_autofill_util.cc:730: !element.isEnabled()) Why not fold this into IsAutofillable{Input?}Element?
6 years, 2 months ago (2014-10-02 12:49:57 UTC) #3
Ilya Sherman
LGTM, thanks.
6 years, 2 months ago (2014-10-02 21:16:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503003/40001
6 years, 2 months ago (2014-10-07 09:14:28 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as c4f574396a3000880b804904b125442b2214810b
6 years, 2 months ago (2014-10-07 10:20:30 UTC) #7
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/cfe1912bcc70118364c9156e1e12c6c89b1a06b9 Cr-Commit-Position: refs/heads/master@{#298436}
6 years, 2 months ago (2014-10-07 10:21:15 UTC) #8
Evan Stade
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/652783002/ by estade@chromium.org. ...
6 years, 2 months ago (2014-10-13 18:31:03 UTC) #9
Ilya Sherman
On 2014/10/13 18:31:03, Evan Stade wrote: > A revert of this CL (patchset #3 id:40001) ...
6 years, 2 months ago (2014-10-13 21:08:17 UTC) #10
Evan Stade
On 2014/10/13 21:08:17, Ilya Sherman wrote: > On 2014/10/13 18:31:03, Evan Stade wrote: > > ...
6 years, 2 months ago (2014-10-13 21:14:37 UTC) #11
Ilya Sherman
6 years, 2 months ago (2014-10-13 21:16:17 UTC) #12
Message was sent while issue was closed.
On 2014/10/13 21:14:37, Evan Stade wrote:
> On 2014/10/13 21:08:17, Ilya Sherman wrote:
> > On 2014/10/13 18:31:03, Evan Stade wrote:
> > > A revert of this CL (patchset #3 id:40001) has been created in
> > > https://codereview.chromium.org/652783002/ by mailto:estade@chromium.org.
> > > 
> > > The reason for reverting is: breaks requestAutocomplete.
> > 
> > Why is requestAutocomplete filling readonly and disabled fields?
> 
> It needs to parse them, not fill them. I'm not sure if it does fill them right
> now, and I don't have a strong opinion about whether it should (what is the
use
> case for putting a disabled field in a rAc form as opposed to just omitting it
> or ignoring its value?).
> 
> See https://codereview.chromium.org/650293002/ for a use case for readonly.
> Similarly, it should be possible to have a field in the form:
> 
>   <input value="Visa" autocomplete="cc-type" readonly>
> 
> Which would limit rAc to Visa cards. This doesn't work at the moment, but
> arguably should.

Yeah, that makes sense.  Thanks for adding test coverage :)

Powered by Google App Engine
This is Rietveld 408576698