Skip to content

Commit

Permalink
Autofill: Make the iOS nameForAutofill() match Blink.
Browse files Browse the repository at this point in the history
This fixes the FormStructureBrowserTest for
01_autocomplete_attribute_invalid.html

BUG=427614

Review URL: https://codereview.chromium.org/1113263002

Cr-Commit-Position: refs/heads/master@{#329216}
  • Loading branch information
leizleiz authored and Commit bot committed May 11, 2015
1 parent edd02b8 commit cfcda55
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ios/web/web_state/js/resources/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,6 @@ new function() {
if (trimmedName) {
return __gCrWeb.common.trim(trimmedName);
}
trimmedName = element.getAttribute('autocomplete');
if (trimmedName && trimmedName !== 'off') {
return __gCrWeb.common.trim(trimmedName);
}
trimmedName = element.getAttribute('placeholder');
if (trimmedName) {
return __gCrWeb.common.trim(trimmedName);
}
return '';
};

Expand Down

0 comments on commit cfcda55

Please sign in to comment.