New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 834404 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug

Blocking:
issue 806987



Sign in to add a comment

iOS supports all formless forms w/o feature flag

Project Member Reported by mahmadi@chromium.org, Apr 18 2018

Issue description

When Chrome encounters an collection of input elements that are not inside a <form> element, it considers all of them to be part of a form if:
  - the page is in English or the language unspecified.
  - the page title or URL contains keywords related to billing,
    shipping, payment or checkout.
Otherwise, only input elements with an explicit autocomplete attribute are considered to to be part of a form.

A CL (crrev.com/c/735723) landed in M64 errantly removed the check for autofill attributes in iOS, essentially considering all input elements to be part of a form if the other two conditions are not met.

iOS should only behave so if the AutofillRestrictUnownedFieldsToFormlessCheckout flag is disabled.
 
Blocking: 806987
Labels: -Pri-3 Pri-2
Status: Started (was: Assigned)
Should this block 67?
It can. It's an easy fix.
Status: Fixed (was: Started)
Fixed with crrev.com/c/1017740
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 20 2018

Status: Verified (was: Fixed)
Issue verified 
Version: Chrome Canary  68.0.3405.0
Device: iPhone 6
iOS: 11.2.6

autofill-restrict-formless-form-extraction flag added to about_flags
https://drive.google.com/open?id=1Xa2Vdv4ZFS47YAfyGHiOztWMA3SZQSc9
Labels: Merge-Request-67
Thanks for verification!
Project Member

Comment 9 by sheriffbot@chromium.org, Apr 25 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Merged onto 3396 with crrev.com/c/1028492
Labels: Merge-Merged
Project Member

Comment 12 by sheriffbot@chromium.org, Apr 30 2018

This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Merge-Approved -Merge-Approved-67
Since this was automatically approved and manually merged, removing merge-approved-67 per comment #12.
Project Member

Comment 14 by bugdroid1@chromium.org, May 2 2018

Labels: merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b88963d220694223619130007db1bcc18aa911ea

commit b88963d220694223619130007db1bcc18aa911ea
Author: Moe Ahmadi <mahmadi@chromium.org>
Date: Wed May 02 15:39:12 2018

[AF] Adds flags for restricting formless form extraction to about_flags

Bug:  834404 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I95e93dfae14271e2cd08a42685b8e3f3ad9ff169
Reviewed-on: https://chromium-review.googlesource.com/1022076
Reviewed-by: Roger McFarlane <rogerm@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#552437}(cherry picked from commit d3ddfcbeb59064bb5f3b23d7e67f706bffec0549)
Reviewed-on: https://chromium-review.googlesource.com/1040005
Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/branch-heads/3396@{#442}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/chrome/browser/about_flags.cc
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/chrome/browser/flag_descriptions.cc
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/chrome/browser/flag_descriptions.h
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/ios/chrome/browser/about_flags.mm
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/ios/chrome/browser/ios_chrome_flag_descriptions.cc
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/ios/chrome/browser/ios_chrome_flag_descriptions.h
[modify] https://crrev.com/b88963d220694223619130007db1bcc18aa911ea/tools/metrics/histograms/enums.xml

Verified the issue on 67.0.3396.38 beta tested on iPhone.
autofill-restrict-formless-form-extraction flag added in chrome://flags

Sign in to add a comment