Infinite Loading on the Firefox Accounts page after you want to log in second time
Categories
(Firefox :: Sync, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox67.0.1 | --- | wontfix |
People
(Reporter: Ovidiu, Unassigned)
References
Details
Attachments
(2 files)
Affected versions
- Tested on Nightly 69.0a1 (2019-05-22)
Affected platforms
- Tested on Mac OS 10.14 and Windows 10
Steps to reproduce
Prerequisites:
To be able to see the about:welcome page on a version where this is not implemented please go to about:config and set:
identity.fxaccounts.autoconfig.uri to https://latest.dev.lcip.org/
browser.newtabpage.activity-stream.fxaccounts.endpoint to https://latest.dev.lcip.org/
Restart the browser.
Steps:
- Log in into your account from the about:welcome page ( I used a verified account)
- Disconnect your account: Go to avatar icon in the toolbar click on it -> from the dropdown choose Sync settings... and select "Disconnect" -> "Just Disconnect"
- Try and sign in a second time with the same account from the about:welcome page
Expected result
- You need to enter your password
Actual result
- Infinite loading on the Firefox Accounts page
Note: At step 3 you can use any email address valid/invalid and you will see the infinite loading page.
Comment 1•6 years ago
|
||
:Ovidiu, thanks for the report, this looks pretty serious. Can you create a video of this happening, showing both the URL bar and the dev tools console? And a snapshot of what is in your about:config if you search for fxaccounts?
| Reporter | ||
Comment 2•6 years ago
|
||
Here is the video: https://streamable.com/2ma7i
I attached a print screen with the search from about:config after fxaccounts
| Reporter | ||
Comment 3•6 years ago
|
||
Here is the video: https://streamable.com/2ma7i
I attached a print screen with the search from about:config after fxaccounts
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Bumping this over to the newtab component, I'm not sure if that's the right place either.
I am attaching a screenshot showing the behavior.
What happens is when the user disconnects from Sync, all the about:config values set
based on identity.fxaccounts.autoconfig.uri reset back to their default state.
It looks like other areas of the browser get around this by re-populating those
fields as soon as they are loaded.
cc :mardak
Comment 6•6 years ago
|
||
Note, this should not affect prod since those values will not be reset, but it does make testing against a test server annoying.
Updated•6 years ago
|
Comment 7•6 years ago
|
||
CC'ing :markh too since the root of the problem seems to be how Firefox resets the user preferences when receiving the fxaccounts:logout webchannel message.
Comment 8•6 years ago
|
||
The prefs that seem to change in comment 4:
identity.fxaccounts.auth.uri
identity.fxaccounts.remote.oauth.uri
identity.fxaccounts.remote.profile.uri
identity.fxaccounts.remote.root
Looks like signing out calls FxAccountsConfig.resetConfigURLs():
https://searchfox.org/mozilla-central/rev/7556a400affa9eb99e522d2d17c40689fa23a729/services/fxaccounts/FxAccounts.jsm#843-864
These prefs get reset:
https://searchfox.org/mozilla-central/rev/7556a400affa9eb99e522d2d17c40689fa23a729/services/fxaccounts/FxAccountsConfig.jsm#27-34
const CONFIG_PREFS = [
"identity.fxaccounts.remote.root",
"identity.fxaccounts.auth.uri",
"identity.fxaccounts.remote.oauth.uri",
"identity.fxaccounts.remote.profile.uri",
"identity.fxaccounts.remote.pairing.uri",
"identity.sync.tokenserver.uri",
];
So perhaps it's a combination of config prefs getting reset and autoconfig ??
Comment 9•6 years ago
|
||
Yeah, FxAccountsConfig.resetConfigURLs() exists only so we can do this reset on signout. This is by design.
Updated•6 years ago
|
Comment 12•6 years ago
|
||
This is acting as designed. These values reset when the user signs out. This won't happen in production because these values aren't reset there. Closing as INVALID.
Comment 13•6 years ago
|
||
I am concerned when we say "should not affect production" . . . I'd like to know that it doesn't. Is there some way we can test and verify? Is that only testable once we release?
Comment 14•6 years ago
|
||
The values are being changed to test and that's triggering the problem. The values aren't changed in production (since, they already point to production) so it won't be reproduced there.
The only way to test would be to push to production.
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
From discussion in team triage with Erin , this doesn't need to block. But, we can give it a test after it goes into production to make sure.
Updated•6 years ago
|
| Reporter | ||
Comment 17•6 years ago
|
||
This issue is still reproducible if the user tries to sign in using a different account, see step 3 from the description.
Comment 19•6 years ago
|
||
@ovidiu. Could you try these steps:
- Do the prerequisites (Set the configuration in about:config)
- Log in to the account
- Disconnect the account
- Do the prerequisites again
- Log in to the account
When you do step 3, it resets the configuration that you set in the prerequisites and it breaks the rest of the test. Setting them again should fix this.
Comment 20•6 years ago
|
||
(In reply to Wil Clouser [:clouserw] from comment #19)
@ovidiu. Could you try these steps:
- Do the prerequisites (Set the configuration in about:config)
- Log in to the account
- Disconnect the account
- Do the prerequisites again
- Log in to the account
When you do step 3, it resets the configuration that you set in the prerequisites and it breaks the rest of the test. Setting them again should fix this.
Hi Wil,
We tried as you suggested on Win 10 and Mac OS, we check the pref and restarted the browser before attempting the log in for second time. We were able to log in for a second time with the same account.
Comment 21•6 years ago
|
||
Hi Luciana. Great news! If you update your test plan to adjust the settings after step 3 then this sounds like it works. I think that means we can close this bug? Thanks
| Reporter | ||
Comment 22•6 years ago
|
||
Thanks Wil for clearing this out, I updated the TC and based on comment 20 I will close this as Resolved WFM.
I will also leave a NI? for myself to verify this after the feature goes in production.
Updated•6 years ago
|
| Reporter | ||
Updated•5 years ago
|
Description
•