Bug 112375 - [chromium] Add possibleUserNames to WebPasswordFormData
Summary: [chromium] Add possibleUserNames to WebPasswordFormData
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 12:07 PDT by Garrett Casto
Modified: 2013-03-21 14:32 PDT (History)
9 users (show)

See Also:


Attachments
Patch (7.36 KB, patch)
2013-03-14 12:09 PDT, Garrett Casto
no flags Details | Formatted Diff | Diff
Patch (7.44 KB, patch)
2013-03-15 11:41 PDT, Garrett Casto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Garrett Casto 2013-03-14 12:07:41 PDT
Add possibleUserNames to WebPasswordFormData
Comment 1 Garrett Casto 2013-03-14 12:09:07 PDT
Created attachment 193168 [details]
Patch
Comment 2 WebKit Review Bot 2013-03-14 12:12:35 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 WebKit Review Bot 2013-03-14 12:12:50 PDT
Attachment 193168 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Source/WebKit/chromium/public/WebPasswordFormData.h', u'Source/WebKit/chromium/src/WebPasswordFormData.cpp', u'Source/WebKit/chromium/src/WebPasswordFormUtils.cpp', u'Source/WebKit/chromium/src/WebPasswordFormUtils.h']" exit_code: 1
Source/WebKit/chromium/src/WebPasswordFormData.cpp:178:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Garrett Casto 2013-03-14 12:28:25 PDT
Additional context at crbug.com/188908
Comment 5 Ilya Sherman 2013-03-14 23:59:52 PDT
Comment on attachment 193168 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=193168&action=review

Is there any way to implement this within the Chrome layer, rather than in the WebKit layer?  It seems strange to have feature implementation code in the Chromium WebKit glue layer.

> Source/WebKit/chromium/src/WebPasswordFormUtils.cpp:-104
> -            // Various input types such as text, url, email can be a username field.

nit: Did you intentionally remove this comment?
Comment 6 Garrett Casto 2013-03-15 11:38:28 PDT
(In reply to comment #5)
> (From update of attachment 193168 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=193168&action=review
> 
> Is there any way to implement this within the Chrome layer, rather than in the WebKit layer?  It seems strange to have feature implementation code in the Chromium WebKit glue layer.
> 

It looks like this could be implemented in content if we wanted to do that. I made this change because at the moment all parsing for content::PasswordForm happens here and I thought that it made sense to keep it together. Though now that you mention it, I'm not sure if there is a good reason for this code to live in WebKit or if it's just leftover from a time when the Chromium WebKit API wasn't expansive enough.

WebKit reviewers, do you have any thoughts on either if this change should go here or in Chromium, or if this code in general (WebPasswordFormData and WebPasswordFormUtils) should stay in WebKit long term.

> > Source/WebKit/chromium/src/WebPasswordFormUtils.cpp:-104
> > -            // Various input types such as text, url, email can be a username field.
> 
> nit: Did you intentionally remove this comment?

No, good catch.
Comment 7 Garrett Casto 2013-03-15 11:41:29 PDT
Created attachment 193342 [details]
Patch
Comment 8 WebKit Review Bot 2013-03-15 11:49:11 PDT
Attachment 193342 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Source/WebKit/chromium/public/WebPasswordFormData.h', u'Source/WebKit/chromium/src/WebPasswordFormData.cpp', u'Source/WebKit/chromium/src/WebPasswordFormUtils.cpp', u'Source/WebKit/chromium/src/WebPasswordFormUtils.h']" exit_code: 1
Source/WebKit/chromium/src/WebPasswordFormData.cpp:178:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Adam Barth 2013-03-19 20:48:37 PDT
Comment on attachment 193342 [details]
Patch

API change LGTM
Comment 10 Garrett Casto 2013-03-20 16:54:58 PDT
Can I get an r+ and cq+?
Comment 11 Adam Barth 2013-03-20 21:19:20 PDT
(In reply to comment #10)
> Can I get an r+ and cq+?

Who do you have in mind to review your change?
Comment 12 Garrett Casto 2013-03-21 12:29:18 PDT
Ah, apologies. isherman@ was going to review the content of this change, but the LGTM that he gave me was out of band. Ilya, do you mind?
Comment 13 Ilya Sherman 2013-03-21 14:07:33 PDT
Right, I'm not a reviewer, but the content of this change LGTM if we're cool with keeping this code in WebKit.
Comment 14 WebKit Review Bot 2013-03-21 14:32:42 PDT
Comment on attachment 193342 [details]
Patch

Clearing flags on attachment: 193342

Committed r146521: <http://trac.webkit.org/changeset/146521>
Comment 15 WebKit Review Bot 2013-03-21 14:32:46 PDT
All reviewed patches have been landed.  Closing bug.