mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
Issue #1258 - Part 8: Ifdef MailNews OAuth2 Support
Use --disable-mailnews-oauth2 to exclude it. Confvars won't be respected.
This commit is contained in:
parent
971009881c
commit
1531d6498d
27 changed files with 193 additions and 23 deletions
|
|
@ -60,11 +60,13 @@ function guessConfig(domain, progressCallback, successCallback, errorCallback,
|
|||
assert(typeof(successCallback) == "function", "need successCallback");
|
||||
assert(typeof(errorCallback) == "function", "need errorCallback");
|
||||
|
||||
#ifdef MOZ_MAILNEWS_OAUTH2
|
||||
// Servers that we know enough that they support OAuth2 do not need guessing.
|
||||
if (resultConfig.incoming.auth == Ci.nsMsgAuthMethod.OAuth2) {
|
||||
successCallback(resultConfig);
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!resultConfig)
|
||||
resultConfig = new AccountConfig();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue