firefox-ios icon indicating copy to clipboard operation
firefox-ios copied to clipboard

The Change Passcode and Require Passcode options are not grayed out when Passcode is OFF

Open abodea opened this issue 6 years ago • 5 comments

Steps to reproduce

  1. Launch Firefox.
  2. Reach settings and then Face ID & Passwords.
  3. Turn the passcode OFF.
  4. Observe the Change Passcode and Require Passcode.

Expected behavior

The Change Passcode and Require Passcode options should be grayed out while the Passcode is OFF.

Actual behavior

The Change Passcode and Require Passcode options are not grayed out when the Passcode is OFF.

Device information

  • Device: iPad Pro (13.3)
  • Fenix version: v23.0(17297)

unnamed

abodea avatar Feb 24 '20 10:02 abodea

I see this issue in prod on iPhone iOS 13.3 as well. I'll start looking into it.

nishant2718 avatar Mar 10 '20 21:03 nishant2718

I think I've pinpointed the problem on this.

When a passcode is added or removed, we call this selector using NotificationCenter. https://github.com/mozilla-mobile/firefox-ios/blob/512e03c0e9625269de5ed5ac4d9c3e58638b8dcf/Client/Frontend/AuthenticationManager/AuthenticationSettingsViewController.swift#L325-L329

but generateSettings() does not do anything with the notification. https://github.com/mozilla-mobile/firefox-ios/blob/512e03c0e9625269de5ed5ac4d9c3e58638b8dcf/Client/Frontend/AuthenticationManager/AuthenticationSettingsViewController.swift#L236-L242

I'm not totally sure about the best way to expose/send the notification to generateSettings(), so I hesitate to work on a fix. Any thoughts?

vphong avatar Mar 13 '20 23:03 vphong

There is an open request already, textLabel?.textColor = UIColor.theme.tableView.rowText set after correct one.

KrystynaKruchkovska avatar Mar 15 '20 11:03 KrystynaKruchkovska

Apologies, you're right! #6250 does fix the problem.

vphong avatar Mar 15 '20 16:03 vphong

Fixed in #6250

dnarcese avatar Mar 24 '20 21:03 dnarcese