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

Side by Side Diff: components/autofill/ios/browser/resources/autofill_controller.js

Issue 2257973002: Increase the autofill field limit when parsing forms to match desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Installs Autofill management functions on the |__gCrWeb| object. 5 // Installs Autofill management functions on the |__gCrWeb| object.
6 // 6 //
7 // It scans the DOM, extracting and storing forms and returns a JSON string 7 // It scans the DOM, extracting and storing forms and returns a JSON string
8 // representing an array of objects, each of which represents an Autofill form 8 // representing an array of objects, each of which represents an Autofill form
9 // with information about a form to be filled and/or submitted and it can be 9 // with information about a form to be filled and/or submitted and it can be
10 // translated to struct FormData 10 // translated to struct FormData
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 * computational costs. Several examples of forms with lots of fields that are 67 * computational costs. Several examples of forms with lots of fields that are
68 * not relevant to Autofill: (1) the Netflix queue; (2) the Amazon wishlist; 68 * not relevant to Autofill: (1) the Netflix queue; (2) the Amazon wishlist;
69 * (3) router configuration pages; and (4) other configuration pages, e.g. for 69 * (3) router configuration pages; and (4) other configuration pages, e.g. for
70 * Google code project settings. 70 * Google code project settings.
71 * 71 *
72 * This variable is |kMaxParseableFields| from 72 * This variable is |kMaxParseableFields| from
73 * chromium/src/components/autofill/content/renderer/form_autofill_util.h 73 * chromium/src/components/autofill/content/renderer/form_autofill_util.h
74 * 74 *
75 * @const {number} 75 * @const {number}
76 */ 76 */
77 __gCrWeb.autofill.MAX_PARSEABLE_FIELDS = 100; 77 __gCrWeb.autofill.MAX_PARSEABLE_FIELDS = 200;
78 78
79 /** 79 /**
80 * A bit field mask to extract data from WebFormControlElement for 80 * A bit field mask to extract data from WebFormControlElement for
81 * extracting none value. 81 * extracting none value.
82 * 82 *
83 * This variable is from enum ExtractMask in 83 * This variable is from enum ExtractMask in
84 * chromium/src/components/autofill/content/renderer/form_autofill_util.h 84 * chromium/src/components/autofill/content/renderer/form_autofill_util.h
85 * 85 *
86 * @const {number} 86 * @const {number}
87 */ 87 */
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 var elementName = __gCrWeb['common'].nameForAutofill(element); 2060 var elementName = __gCrWeb['common'].nameForAutofill(element);
2061 var value = formData[elementName]; 2061 var value = formData[elementName];
2062 if (value) { 2062 if (value) {
2063 element.placeholder = value; 2063 element.placeholder = value;
2064 } 2064 }
2065 } 2065 }
2066 } 2066 }
2067 }; 2067 };
2068 2068
2069 }()); // End of anonymous object 2069 }()); // End of anonymous object
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698