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

Issue 717968 link

Starred by 0 users

Issue metadata

Status: Verified
Owner:
hobby only
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task



Sign in to add a comment

Add contextual menu items for copying and showing parts of credentials in settings

Project Member Reported by vabr@chromium.org, May 3 2017

Issue description

As tracked in bug 159166, password settings on iOS are being extended with the functionality to copy site and username, and to show and copy password values.

The above is achievable with fixed buttons, but it should also be achievable through context menus, because that is the pattern on iOS. Also, as pschaffner@ put it: "Our explicit and visible controls arguably make this other mechanism unnecessary, but often when a foot trail exists, people will miss the roadsigns for the new highway." :)

Attached is an old screenshot from the design doc for illustration. It is not necessarily a mock to be followed, that will need to be clarified at the time of implementation. If there is a precedent in Chrome on iOS for this, we should just follow that.
 
context_menu.png
14.5 KB View Download
Actually, that mock is accurate, so feel free to build from that :) "Show", of course, would be a toggle control ("Show" | "Hide"), just like the physical button.

Comment 2 by vabr@chromium.org, Jul 7 2017

Notes for myself, about how to implement this:
UIMenuController seems to be what controls displaying menus. https://chromereviews.googleplex.com/266007013/ is how ioanap@ did this (but sadly that code did not land), which seems a big help in rediscovering how it should be done.

Comment 3 by vabr@chromium.org, Jul 8 2017

Status: Started (was: Assigned)
Adding screenshots for https://chromium-review.googlesource.com/c/563695/.

The call-outs (pop-ups) are shown on tap on the site URL, the username, or the password cell.
Screen Shot 2017-07-09 at 1.04.50 AM.png
122 KB View Download
Screen Shot 2017-07-09 at 1.04.40 AM.png
123 KB View Download
Screen Shot 2017-07-09 at 1.04.57 AM.png
124 KB View Download
Screen Shot 2017-07-09 at 1.05.09 AM.png
124 KB View Download
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 10 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1089d064be666f5f0437da78bdc5f875795dc7b6

commit 1089d064be666f5f0437da78bdc5f875795dc7b6
Author: Vaclav Brozek <vabr@chromium.org>
Date: Mon Jul 10 13:23:46 2017

Add context menu items to password details settings view

This adds the Copy context menu item to the cells with site, username and
password, and also the Show/Hide item for password (whether it's Show or Hide
depends on whether the password is masked or unmasked, respectively).

Screenshots are at  https://crbug.com/717968#c3 .

BUG= 717968 

Change-Id: Iaeec460deea8c117179a8469eb771e9802765012
Reviewed-on: https://chromium-review.googlesource.com/563695
Commit-Queue: Vaclav Brozek <vabr@chromium.org>
Reviewed-by: Louis Romero <lpromero@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485252}
[modify] https://crrev.com/1089d064be666f5f0437da78bdc5f875795dc7b6/ios/chrome/app/strings/ios_strings.grd
[modify] https://crrev.com/1089d064be666f5f0437da78bdc5f875795dc7b6/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
[modify] https://crrev.com/1089d064be666f5f0437da78bdc5f875795dc7b6/ios/chrome/browser/ui/settings/passwords_settings_egtest.mm

Cc: mard...@chromium.org pinkerton@chromium.org
This looks good to me (mocks in #3). Thank you!

Comment 6 by vabr@chromium.org, Jul 10 2017

Status: Fixed (was: Started)
Thanks! Closing for now, please feel free to reopen if there are additional comments.
Status: Verified (was: Fixed)
Verified (#3) on iOS 10.3.3, 11.0 on iPhone 6 +, iPhone 7+, iPad Pro 12'5 on build 62.0.3202.29 Beta.

Sign in to add a comment