mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1031580 - FxA fires ONLOGIN only for calling RP. r=jedp
This commit is contained in:
parent
be6032106e
commit
d63c4f0720
@ -138,6 +138,15 @@ this.FxAccountsManager = {
|
||||
// capitalization from what we sent down. This is the server's
|
||||
// canonical capitalization and should be used instead.
|
||||
user.email = user.email || aEmail;
|
||||
|
||||
// If we're using server-side sign to refreshAuthentication
|
||||
// we don't need to update local state; also because of two
|
||||
// interacting glitches we need to bypass an event emission.
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1031580
|
||||
if (this._refreshing) {
|
||||
return Promise.resolve({user: this._user});
|
||||
}
|
||||
|
||||
return this._fxAccounts.setSignedInUser(user).then(
|
||||
() => {
|
||||
this._activeSession = user;
|
||||
|
Loading…
Reference in New Issue
Block a user