Closed Bug 1582738 Opened 2 years ago Closed 1 year ago

When importing saved Chrome passwords on mac, don't cause a keychain prompt if there are no rows to import

Categories

(Firefox :: Migration, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 74
Tracking Status
firefox69 --- unaffected
firefox74 --- verified

People

(Reporter: Gijs, Assigned: MattN)

References

Details

Attachments

(1 file)

As of bug 1423714, we offer password importing from Chrome on macOS.

If there are no passwords in the DB, but the DB exists, we offer a checkbox for "saved passwords" importing in the import wizard. Using it will prompt for keychain access (twice, which is bug 1582486). We do this irrespective of how many rows of results we've gotten from the DB. We shouldn't do it if there's not been any results (or, ideally, if there haven't been results with the right encryption that we know how to deal with).

Ah, good point… I thought I implemented it this way because I misread:

      if (!rows) {
        return;
      }

but that doesn't handle rows.length == 0.

Assignee: nobody → MattN+bmo
Status: NEW → ASSIGNED
Priority: -- → P3
Flags: qe-verify+
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/autoland/rev/34fc136a1cc1
ChromeProfileMigrator: Don't initialize crypto if there are no rows. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74

I have verified this issue using the latest Nightly 74.0a1 (Build ID: 20200129093157) on Mac 10.14.

  • The Keychain pop-up is no longer displayed when importing logins from Chrome if there are no saved passwords.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.