-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider ports for autofill matching and for displaying logins (#2824)
<!-- Note: This checklist is a reminder of our shared engineering expectations. The items in Bold are required If your PR involves UI changes: 1. Upload screenshots or screencasts that illustrate the changes before / after 2. Add them under the UI changes section (feel free to add more columns if needed) 3. Make sure these changes are tested in API 23 and API 26 If your PR does not involve UI changes, you can remove the **UI changes** section --> Task/Issue URL: https://app.asana.com/0/488551667048375/1203892213154868/f ### Description Considers port numbers when comparing urls, and displays port number in the UI if set. ### Steps to test this PR #### Testing when saved site contains a port - [x] Add a login for `fill.dev` - [x] Visit `fill.dev/form/login-simple` and verify it offers to autofill as normal - [x] Open credential management screen; verify it is listed as a `suggested` site - [x] Edit the login and append a port to the URL (e.g., `fill.dev:9000`) - [x] Verify the port number is visible in the list item url (assuming a title isn't given) - [x] Visit the login page again (refreshing if required); verify you are **not prompted** to autofill (as ports don't match) - [x] Open credential management screen; verify it is **not** listed as a `suggested` site #### Testing when visited site contains a port This is harder, unless you happen to know a publicly accessible website which uses a non-standard web port. If not, simulate the test by hardcoding a URL for the current site when launching creds management screen. - [x] `return AutofillManagementActivity.intentShowSuggestion(context, "fill.dev:9000")` on `AutofillManagementActivity`, line 346 - [x] Open credential management screen; verify it is listed as a `suggested` site
- Loading branch information
Showing
7 changed files
with
107 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters