Closed Bug 1768792 Opened 2 years ago Closed 11 months ago

Passwords imported from a CSV file aren't synced

Categories

(Toolkit :: Password Manager, defect, P2)

defect
Points:
2

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- wontfix
firefox116 --- fixed

People

(Reporter: markh, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-csv])

Attachments

(1 file, 1 obsolete file)

Saw this in https://www.reddit.com/r/firefox/comments/um9d79/firefox_doesnt_sync_imported_logins_and_passwords/ and was able to reproduce it.

The problem seems to be that the imported password doesn't cause an addLogin/modifyLogin observer notification to be sent, so Sync doesn't know about the new password. I didn't try and dig into why it does not get sent though.

I know this is behind a pref, so disabled by default, but there seems a risk that other imports might have the same behaviour.

https://github.com/mozilla-services/syncserver/issues/296 implies importing from edge is impacted.

So if the logins are imported successfully (i.e. they show up in about:logins), then there should be an addLogin/modifyLogin message that is sent from storage-json.js to the respective observers of "passwordmgr-storage-changed" so I'm not sure why this message isn't being picked up by Sync. Maybe it's malformed in someway in the import case and is failing silently, not entirely sure.

I was 1/2 assuming that maybe they were disabled for performance when doing a bulk import - I didn't find where that might happen, but I didn't look too hard.

Assignee: nobody → sgalich
Severity: -- → S3
Priority: -- → P2

(In reply to glen226 from comment #4)
Previous comment on error; just wanted to add affects Firefox on MacOS (import passwords via CSV not syncing). Some frustration and Googling lead me here.

Exporting passwords, deleting them and importing them again fails.

Uncaught TypeError: this._errorMessages[errorType] is undefined.
chrome://browser/content/aboutlogins/components/import-error-dialog.mjs:52

Blocks: 1752839
Whiteboard: [fxcm-csv]
No longer blocks: 1752839
Points: --- → 2
Depends on: 1752839

If this is an issue with maybeImportLogins (which from looking at the patch, this is where the problem lies), I'll note that our browser migrators currently use this same code path:

https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/components/migration/MigrationUtils.sys.mjs#848

Would they also be affected by this issue?

I just tested this locally, and it appears that passwords imported via the migration wizards are also affected.

Marking tracking because we're trying to improve migration in Firefox 114, and getting this fixed in time for that seems like it'd be a good idea.

Note that this bug is dependent on bug 1752839 which is where the primary part of the fix is.

The bug is marked as tracked for firefox114 (nightly). However, the bug still has low severity.

:serg, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit auto_nag documentation.

Flags: needinfo?(sgalich)
Assignee: sgalich → enndeakin
Flags: needinfo?(sgalich)

Not sure why this was marked for 114.

Blocks: 1705529
Attachment #9327273 - Attachment is obsolete: true
Pushed by neil@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29806c49a699
send a notification when an logins import has completed and update the sync score when this happens, r=credential-management-reviewers,sync-reviewers,sgalich,skhamis
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:enndeakin, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox115 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(enndeakin)
Flags: needinfo?(enndeakin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: