Clicking the “Cancel” button from the Master Password Prompt while trying to disconnect sync account leads to a “Failed to sanitize” error
Categories
(Firefox :: Sync, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | wontfix |
firefox67 | - | verified |
firefox68 | --- | verified |
People
(Reporter: emilghitta, Assigned: markh)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
2.48 MB,
image/gif
|
Details | |
59.17 KB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Affected versions
- Firefox 66.0.2 (BuildId:20190326175229)
- Firefox 67.0b5 (BuildId:20190325125126)
- Firefox 68.0a1 (BuildId:20190327175114)
Unaffected versions
- Firefox 60.6.1esr (BuildId:20190322020346)
Affected platforms
- Ubuntu 18.04 64bit
- Windows 10 64bit
- macOS 10.12.6
Preconditions
Have a Master Password created.
Steps to reproduce
- Launch Firefox.
- Open the Hamburger menu.
- Click the “Sign in to Sync” option.
- Click the “Sign In” button and log in with your credentials.
- Restart Firefox.
- Click the “Disconnect” button.
- Click the “Just Disconnect” button.
- Click “Cancel” on the Master Password prompt.
- Click “Disconnect” again.
Expected result
- The Sync account is disconnected after step 8 or the user has the possibility of repeating step 7 if he accidentally clicked the “Cancel” button from the Master Password prompt.
Actual result
- The account doesn't get disconnected and the following error message gets thrown inside the Browser Console every time the “Disconnect” button gets pressed if the user has clicked the “Cancel” button from the Master Password prompt previously:
Failed to sanitize
Exception { name: "NS_ERROR_ABORT", message: "User canceled master password entry", result: 2147500036, filename: "resource://gre/modules/crypto-SDR.js", lineNumber: 179, columnNumber: 0, data: null, stack: "decrypt@resource://gre/modules/crypto-SDR.js:179:26\n_decryptLogins@resource://gre/modules/storage-json.js:523:39\nfindLogins@resource://gre/modules/storage-json.js:416:19\nfindLogins@resource://gre/modules/LoginManager.jsm:401:26\ndeleteSyncCredentials@resource://services-sync/browserid_identity.js:351:36\nstartOver@resource://services-sync/service.js:843:19\nopenModalWindow@resource://gre/modules/Prompter.jsm:358:17\nopenPrompt@resource://gre/modules/Prompter.jsm:566:9\nnsIPrompt_promptPassword@resource://gre/modules/Prompter.jsm:783:14\npromptPassword@resource://gre/modules/Prompter.jsm:597:50\nencrypt@resource://gre/modules/crypto-SDR.js:78:38\nensureMPUnlocked@resource://services-sync/util.js:591:17\nunlockAndVerifyAuthState@resource://services-sync/browserid_identity.js:384:16\n", location: XPCWrappedNative_NoHelper }
Regression range
- Last good revision: a90972d695291bea4560ee5a8da77398ca9b42b1
- First bad revision: 1c6cfeb419c3157fc3dd6ae564358f7af8ca9cd1
- Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a90972d695291bea4560ee5a8da77398ca9b42b1&tochange=1c6cfeb419c3157fc3dd6ae564358f7af8ca9cd1 - Potential regressor: Bug 1409208
Additional Information
- I have attached a screencast for this issue
Reporter | ||
Comment 1•5 years ago
|
||
Hi Mark,
It seems that mozregression points out Bug 1409208 for causing this issue.
Can you please have a look?
Also, as an additional note:
- If restarting Firefox after step 8, the account is no longer displayed inside the Hamburger menu but it’s still present inside the about:preferences#sync page. I have attached a screenshot for this.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Untracking and marking as fix-optional for 67 given that the bug is unassigned, that we shipped with this regression since 62 and we are past our early beta cycle.
Assignee | ||
Comment 3•5 years ago
|
||
Taking - I'll ask eoger for a review since he helped review bug 1409208.
Assignee | ||
Comment 4•5 years ago
|
||
Pushed by mhammond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/75f5acc4c2ac ensure the master-password is unlocked before disconnecting from sync. r=eoger
Comment 6•5 years ago
|
||
bugherder |
Assignee | ||
Comment 7•5 years ago
|
||
Comment on attachment 9057188 [details]
Bug 1539784 - ensure the master-password is unlocked before disconnecting from sync.
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: Bug 1409208
- User impact if declined: Users with a master-password enabled and not unlocked to try and disconnect sync will have a temporary bad time. Hopefully most such users will not hit this as they will unlock their master-password. And even if they don't, things get back to normal after the browser restarts - but it is a bit of a paper-cut.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: As described in the bug
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is a very small patch which simply aborts the entire process if the master-password remains locked.
- String changes made/needed: None
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
I'd like to see it verified on Nightly before evaluating an uplift to beta.
Updated•5 years ago
|
Reporter | ||
Comment 9•5 years ago
|
||
This issue is verified fixed using Firefox 68.0a1 (BuildId:20190412093400) on Windows 10 64bit, macOS 10.12.6 and Ubuntu 14.04 64bit.
Comment 10•5 years ago
|
||
Comment on attachment 9057188 [details]
Bug 1539784 - ensure the master-password is unlocked before disconnecting from sync.
Low risk and verified by QA. Uplift accepted for 76 beta 11 given that we are promoting the use of logins and passwords via Lockbox and new Desktop entry points in 67, thanks.
Comment 11•5 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 12•5 years ago
|
||
This issue is verified fixed using Firefox 67.0b11 (BuildId:20190415085659) on Windows 10 64bit, macOS 10.12.6 and Ubuntu 14.04 64bit.
Updated•5 years ago
|
Description
•