[NTP] Add better URL validation and adjust input field requirements for custom link dialog
Use URL validation provided by GURL, and added URL formatting using FixupURL. This tries to make "smart" adjustments to obviously invalid input (see url_fixer.h). The fixed URL will default to "https://" if a scheme was not specified. Also disabled spellcheck in the URL field and removed "required" from the Name field. The URL will be set as the title if Name is left empty. Bug: 874194 Change-Id: I0d40f551f3e79d77aa93ce3dd0f36f736bf987ee Reviewed-on: https://chromium-review.googlesource.com/1182418 Commit-Queue: Kristi Park <kristipark@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#586024}
Showing
Please register or sign in to comment