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

Issue 6033010: Support autocompletion for HTMl5 tags:"email", "month" and "tel". (Closed)

Created:
9 years, 11 months ago by honten.org
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, James Hawkins, dhollowa, Ilya Sherman
Visibility:
Public.

Description

Support autocompletion for HTMl5 tags:"email", "month" and "tel". BUG=65654 TEST=1.make HTML5 forms with the following input types: - Email input: <input type="email"> - Date picker: <input type="month"> for credit card expiration. - Telephone input: <input type="tel"> - Placeholder text: <input name="address" placeholder="1 Main Street"/> 2.Try to fill. Implement tests for email, month and tel input type. Also this patch needs WebKit patch, please refer to https://bugs.webkit.org/show_bug.cgi?id=51809 Actually, original issue item says placeholder problem, but I cannot reproduce manually. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73660

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix typo, format errors. #

Total comments: 5

Patch Set 3 : Add more tests, fix some format errors and change parsing. #

Total comments: 29

Patch Set 4 : unroll tests. #

Total comments: 5

Patch Set 5 : Fix format errors and other naming issues. #

Total comments: 26

Patch Set 6 : Fix format errors and change to use toWebInputElement(). #

Total comments: 8

Patch Set 7 : Fix format errors. #

Total comments: 2

Patch Set 8 : Delete static in anonymous namespace. #

Patch Set 9 : Update the latest source. #

Patch Set 10 : Fix merge error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -118 lines) Patch
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 20 chunks +182 lines, -30 lines 0 comments Download
M chrome/browser/autofill/credit_card.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autofill/credit_card.cc View 1 2 3 4 5 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/autofill/credit_card_field.cc View 1 2 3 4 5 2 chunks +34 lines, -26 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/form_manager.cc View 1 2 3 4 5 6 7 8 9 10 chunks +58 lines, -58 lines 0 comments Download
M chrome/renderer/autofill/form_manager_browsertest.cc View 1 2 3 4 5 6 7 8 10 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (0 generated)
honten.org
Could you review my change?
9 years, 11 months ago (2011-01-03 07:58:49 UTC) #1
James Hawkins
-estade, +dhollowa
9 years, 11 months ago (2011-01-03 19:41:26 UTC) #2
James Hawkins
http://codereview.chromium.org/6033010/diff/1/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6033010/diff/1/chrome/browser/autofill/autofill_manager.cc#newcode692 chrome/browser/autofill/autofill_manager.cc:692: // THML5 input="month" consisnts of year-month. Spelling errors in ...
9 years, 11 months ago (2011-01-03 19:50:00 UTC) #3
honten.org
Thanks, James I updated some format and typo issues. Please review my change. On 2011/01/03 ...
9 years, 11 months ago (2011-01-03 22:29:04 UTC) #4
dhollowa
It looks like the WebKit code has changed. I'm noticing the method HTMLInputElement::setSuggestedValue() uses a ...
9 years, 11 months ago (2011-01-05 03:08:26 UTC) #5
honten.org
http://codereview.chromium.org/6033010/diff/7001/chrome/browser/autofill/credit_card_field.cc File chrome/browser/autofill/credit_card_field.cc (right): http://codereview.chromium.org/6033010/diff/7001/chrome/browser/autofill/credit_card_field.cc#newcode135 chrome/browser/autofill/credit_card_field.cc:135: if ((!credit_card_field->expiration_month_ || Ok, So can I add new ...
9 years, 11 months ago (2011-01-05 08:09:09 UTC) #6
dhollowa
AutoFillType's are shared with server data, so they're difficult to change (or add to). If ...
9 years, 11 months ago (2011-01-05 15:44:02 UTC) #7
takano.naoki_gmail.com
I see, So I'll add extra parser into CreditCard::SetExpirationMonthFromString(), and chare CREDIT_CARD_EXP_MONTH. Thanks, On Wed, ...
9 years, 11 months ago (2011-01-05 17:50:12 UTC) #8
honten.org
Please review my change. I don't check the new WebKit source yet, so don't know ...
9 years, 11 months ago (2011-01-06 07:04:54 UTC) #9
takano.naoki_gmail.com
dhollowa, Unfortunately, still I need to change in WebKit, because I notice I have to ...
9 years, 11 months ago (2011-01-06 17:52:23 UTC) #10
dhollowa
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode143 chrome/browser/autofill/autofill_manager_unittest.cc:143: for (int i = 0; i < 4; i++) ...
9 years, 11 months ago (2011-01-07 03:47:15 UTC) #11
honten.org
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card_field.cc File chrome/browser/autofill/credit_card_field.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card_field.cc#newcode118 chrome/browser/autofill/credit_card_field.cc:118: if ((*q) && LowerCaseEqualsASCII((*q)->form_control_type(), "month")) { I can't see ...
9 years, 11 months ago (2011-01-07 04:05:59 UTC) #12
honten.org
I update, but I cannot revise credit_card_field.cc correctly because I cannot reproduce. Also I renewed ...
9 years, 11 months ago (2011-01-07 05:33:49 UTC) #13
Ilya Sherman
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager.cc#newcode699 chrome/browser/autofill/autofill_manager.cc:699: // Because |credit_card| might not have both info. nit: ...
9 years, 11 months ago (2011-01-07 07:28:28 UTC) #14
honten.org
Ilya, Thank you for your comment. Could you give me your thought for my question? ...
9 years, 11 months ago (2011-01-07 08:06:17 UTC) #15
Ilya Sherman
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card.h File chrome/browser/autofill/credit_card.h (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card.h#newcode77 chrome/browser/autofill/credit_card.h:77: void SetMonthInputInfo(const string16& value); On 2011/01/07 08:06:17, honten wrote: ...
9 years, 11 months ago (2011-01-07 08:15:48 UTC) #16
honten.org
Ok, that makes sense to me. Thanks, On 2011/01/07 08:15:48, Ilya Sherman wrote: > http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card.h ...
9 years, 11 months ago (2011-01-07 08:17:27 UTC) #17
dhollowa
Try here: http://www.slugworth.com/html5_65654b.html On 2011/01/07 04:05:59, honten wrote: > http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/credit_card_field.cc > File chrome/browser/autofill/credit_card_field.cc (right): > ...
9 years, 11 months ago (2011-01-07 18:20:29 UTC) #18
takano.naoki_gmail.com
Great!! Thanks, On Fri, Jan 7, 2011 at 10:20 AM, <dhollowa@chromium.org> wrote: > Try here: ...
9 years, 11 months ago (2011-01-07 18:24:15 UTC) #19
dhollowa
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode1357 chrome/browser/autofill/autofill_manager_unittest.cc:1357: for (int i = 0; i < 4; ++i) ...
9 years, 11 months ago (2011-01-07 18:44:12 UTC) #20
honten.org
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode1357 chrome/browser/autofill/autofill_manager_unittest.cc:1357: for (int i = 0; i < 4; ++i) ...
9 years, 11 months ago (2011-01-07 18:45:52 UTC) #21
honten.org
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode1357 chrome/browser/autofill/autofill_manager_unittest.cc:1357: for (int i = 0; i < 4; ++i) ...
9 years, 11 months ago (2011-01-07 18:48:31 UTC) #22
dhollowa
http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/credit_card_field.cc File chrome/browser/autofill/credit_card_field.cc (right): http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/credit_card_field.cc#newcode139 chrome/browser/autofill/credit_card_field.cc:139: pattern = ASCIIToUTF16("expir|exp.*month|exp date|ccmonth"); These regexes should be pulled ...
9 years, 11 months ago (2011-01-07 18:50:25 UTC) #23
dhollowa
http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode1357 chrome/browser/autofill/autofill_manager_unittest.cc:1357: for (int i = 0; i < 4; ++i) ...
9 years, 11 months ago (2011-01-07 18:54:18 UTC) #24
dhollowa
http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/credit_card_field.cc File chrome/browser/autofill/credit_card_field.cc (right): http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/credit_card_field.cc#newcode122 chrome/browser/autofill/credit_card_field.cc:122: credit_card_field->expiration_month_ = *q++; I tried again with this latest ...
9 years, 11 months ago (2011-01-07 19:29:46 UTC) #25
dhollowa
http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/autofill_manager.h File chrome/browser/autofill/autofill_manager.h (right): http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/autofill_manager.h#newcode211 chrome/browser/autofill/autofill_manager.h:211: FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, Indentation seems to be off here. http://codereview.chromium.org/6033010/diff/31001/chrome/browser/autofill/autofill_manager_unittest.cc File ...
9 years, 11 months ago (2011-01-07 20:43:39 UTC) #26
honten.org
dhollowa, Could you review again? This change includes your and Ilya's recommendation. Thanks,
9 years, 11 months ago (2011-01-08 03:47:32 UTC) #27
dhollowa
LGTM. Thanks! For the future: it is helpful to click the "Reply" or "Done" button ...
9 years, 11 months ago (2011-01-10 18:48:48 UTC) #28
takano.naoki_gmail.com
Thanks for your dedication and LGTM!! I'll press "Done" or "Reply" from next time. Could ...
9 years, 11 months ago (2011-01-10 18:51:49 UTC) #29
dhollowa
Let's wait for LGTM from Ilya. And for WebKit patch to land (let me know). ...
9 years, 11 months ago (2011-01-10 19:16:19 UTC) #30
takano.naoki_gmail.com
Ok, For now, in WebKit side, I have to add ChangeLog. Except that, I already ...
9 years, 11 months ago (2011-01-10 19:20:06 UTC) #31
Ilya Sherman
Whoops, thought I'd mailed these out already: http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/15001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode1357 chrome/browser/autofill/autofill_manager_unittest.cc:1357: for (int ...
9 years, 11 months ago (2011-01-10 20:08:48 UTC) #32
Ilya Sherman
http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element = element.toConst<WebInputElement>(); On 2011/01/10 20:08:48, Ilya ...
9 years, 11 months ago (2011-01-10 21:08:36 UTC) #33
honten.org
http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element = element.toConst<WebInputElement>(); Ok, I'll ask him. ...
9 years, 11 months ago (2011-01-10 22:50:35 UTC) #34
honten.org
http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element = element.toConst<WebInputElement>(); Darin, Could you tell ...
9 years, 11 months ago (2011-01-10 22:57:13 UTC) #35
takano.naoki_gmail.com
Darin, Could you tell me if there is a method Ilya mentions here? If there ...
9 years, 11 months ago (2011-01-10 23:01:14 UTC) #36
Ilya Sherman
> Darin Fisher (fishd) might be a good person to ask about whether this already ...
9 years, 11 months ago (2011-01-11 01:15:17 UTC) #37
takano.naoki_gmail.com
Thanks, If you have time, please also take a look at https://bugs.webkit.org/show_bug.cgi?id=51382 On Mon, Jan ...
9 years, 11 months ago (2011-01-11 05:20:32 UTC) #38
takano.naoki_gmail.com
Ilya, I don't get any response from Darin. Could you make sure? Thanks, On Mon, ...
9 years, 11 months ago (2011-01-11 21:08:26 UTC) #39
takano.naoki_gmail.com
Darin, Could you answer following question? http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element ...
9 years, 11 months ago (2011-01-13 06:00:26 UTC) #40
honten.org
Darin, Could you give me any suggestion? On 2011/01/13 06:00:26, takano.naoki_gmail.com wrote: > Darin, > ...
9 years, 11 months ago (2011-01-18 06:14:13 UTC) #41
takano.naoki_gmail.com
Ilya, Sorry for bothering you. But I cannot get any response from Darin, almost for ...
9 years, 11 months ago (2011-01-18 20:14:21 UTC) #42
honten.org
Is there anybody who can review this part? Especially I want to know this part, ...
9 years, 11 months ago (2011-01-19 17:41:52 UTC) #43
dhollowa
http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element = element.toConst<WebInputElement>(); The test: element.hasTagName("input") should ...
9 years, 11 months ago (2011-01-19 18:49:45 UTC) #44
darin (slow to review)
http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/renderer/form_manager.cc#newcode317 chrome/renderer/form_manager.cc:317: const WebInputElement& input_element = element.toConst<WebInputElement>(); I think you can ...
9 years, 11 months ago (2011-01-19 22:04:18 UTC) #45
takano.naoki_gmail.com
Darin, Thank you for your comment. If you suggest me how to implement WebInputElement method, ...
9 years, 11 months ago (2011-01-19 22:07:52 UTC) #46
honten.org
Darin, I tried to implement toWebInputElement() in https://bugs.webkit.org/show_bug.cgi?id=51809 Please review it. Thanks, On 2011/01/19 22:07:52, ...
9 years, 11 months ago (2011-01-20 07:34:49 UTC) #47
honten.org
http://codereview.chromium.org/6033010/diff/53001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6033010/diff/53001/chrome/browser/autofill/autofill_manager.cc#newcode700 chrome/browser/autofill/autofill_manager.cc:700: month = year + ASCIIToUTF16("-") + month; On 2011/01/10 ...
9 years, 11 months ago (2011-01-25 05:19:24 UTC) #48
Ilya Sherman
LGTM once the below nits are addressed. Thanks for your perseverance on this patch! http://codereview.chromium.org/6033010/diff/77001/chrome/browser/autofill/autofill_manager_unittest.cc ...
9 years, 11 months ago (2011-01-25 06:21:29 UTC) #49
honten.org
Updated. http://codereview.chromium.org/6033010/diff/77001/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6033010/diff/77001/chrome/browser/autofill/autofill_manager_unittest.cc#newcode93 chrome/browser/autofill/autofill_manager_unittest.cc:93: void CreateTestCreditCardsYearMonth(const char* year, const char* month) { ...
9 years, 11 months ago (2011-01-25 06:38:27 UTC) #50
honten.org
Darin, Could you give us your thought in https://bugs.webkit.org/show_bug.cgi?id=51809 ? We really need const_cast<> in ...
9 years, 11 months ago (2011-01-26 03:05:06 UTC) #51
honten.org
Ilya, Could you help me to contact Darin? If I cannot reach him, I cannot ...
9 years, 11 months ago (2011-01-27 02:51:33 UTC) #52
Ilya Sherman
http://codereview.chromium.org/6033010/diff/84001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/84001/chrome/renderer/form_manager.cc#newcode278 chrome/renderer/form_manager.cc:278: static bool IsTextInput(const WebInputElement* element) { nit: Just noticed: ...
9 years, 11 months ago (2011-01-28 08:15:51 UTC) #53
honten.org
http://codereview.chromium.org/6033010/diff/84001/chrome/renderer/form_manager.cc File chrome/renderer/form_manager.cc (right): http://codereview.chromium.org/6033010/diff/84001/chrome/renderer/form_manager.cc#newcode278 chrome/renderer/form_manager.cc:278: static bool IsTextInput(const WebInputElement* element) { On 2011/01/28 08:15:52, ...
9 years, 11 months ago (2011-01-29 03:43:30 UTC) #54
honten.org
Finally, WebKit patch is landed. So I updated this patch according to the latest. Please ...
9 years, 10 months ago (2011-02-03 04:06:32 UTC) #55
Ilya Sherman
Running this past the trybots... *fingers crossed*
9 years, 10 months ago (2011-02-03 04:31:47 UTC) #56
Ilya Sherman
Looks like a few of the browser tests are failing: http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/10959
9 years, 10 months ago (2011-02-03 05:29:14 UTC) #57
takano.naoki_gmail.com
isherman, Thank you for your try. I'll look into it. On Wed, Feb 2, 2011 ...
9 years, 10 months ago (2011-02-03 05:30:19 UTC) #58
honten.org
iserman, There was a defect when I merged it. If fixed it, ran all browser_tests. ...
9 years, 10 months ago (2011-02-03 06:23:53 UTC) #59
Ilya Sherman
Try runs look green now. David, if you're happy with this CL, could you land ...
9 years, 10 months ago (2011-02-03 07:57:43 UTC) #60
takano.naoki_gmail.com
isherman, Thank you for your dedication!! On Wed, Feb 2, 2011 at 11:57 PM, <isherman@chromium.org> ...
9 years, 10 months ago (2011-02-03 07:58:36 UTC) #61
dhollowa
9 years, 10 months ago (2011-02-03 21:52:04 UTC) #62
It has landed.  Many thanks!

Powered by Google App Engine
This is Rietveld 408576698