зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1153708 - put the FxA profile fetch behind the same pref used to display the avatar. r=zaach
This commit is contained in:
Родитель
abcbead4d2
Коммит
8f91295fc2
|
@ -301,9 +301,15 @@ let gSyncPane = {
|
|||
// If the account is verified the next promise in the chain will
|
||||
// fetch profile data.
|
||||
return data.verified;
|
||||
}).then(shouldGetProfile => {
|
||||
if (shouldGetProfile) {
|
||||
return fxAccounts.getSignedInUserProfile();
|
||||
}).then(isVerified => {
|
||||
if (isVerified) {
|
||||
let enabled;
|
||||
try {
|
||||
enabled = Services.prefs.getBoolPref("identity.fxaccounts.profile_image.enabled");
|
||||
} catch (ex) {}
|
||||
if (enabled) {
|
||||
return fxAccounts.getSignedInUserProfile();
|
||||
}
|
||||
}
|
||||
}).then(data => {
|
||||
if (data && data.avatar) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче