Closed Bug 1789341 Opened 2 years ago Closed 2 years ago

SyncedTabs always prompts to unlock the primary password

Categories

(Firefox :: Sync, defect)

defect

Tracking

()

VERIFIED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: markh, Assigned: markh)

References

Details

Attachments

(1 file)

When a primary password is enabled, it is expected that Sync will cause prompt to be shown as the browser starts, and it's also expected a prompt will be shown each time the user selects "Sync Now".

However, it's not expected that any interaction with "sync tabs" (such as showing the "account" submenu) will cause a prompt to be shown - but it does.

Attaching a patch that ensures we only attempt to sync tabs when the login state is "ok" - other login related errors (such as an FxA auth error, or that the primary password is locked) causes us to decline syncing.

Automated testing for this is difficult as none of our tests use a real sync status, so the best we could do is mock sync to pretend to be in the very state we are explicitly testing for, but that doesn't seem particularly valuable.

I believe this will largely fix bug 1787619. WWe might need some followup so that the UI can show something appropriate when in this state, but this patch should not regress anything - all UI will show the same state now as when the user cancelled the main prompt.

(In reply to Mark Hammond [:markh] [:mhammond] from comment #0)

but this patch should not regress anything - all UI will show the same state now as when the user cancelled the main prompt.

Actually, I should clarify - this does cause a behavior change - previously, calls to syncTabs() would fail. This patch just returns success, the same way it already does if sync isn't configured.

Pushed by mhammond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/850165f95d18 SyncedTabs.jsm should not force a primary-password prompt. r=skhamis,sfoster
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Flags: qe-verify+

Confirmed as verified-fixed in 106.0b5 Firefox.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: