diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 22:21:59 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 22:21:59 -0500 |
commit | 4a37b21f31e4fff28e494f283f9e733657347d16 (patch) | |
tree | 363e74bd2c5c6f3503ac873801b706aabbc52c1a | |
parent | 29f106ff542879937222a9e8d8a4e79d0c559d7f (diff) | |
download | uxp-4a37b21f31e4fff28e494f283f9e733657347d16.tar.gz |
Bug 1508046 - return cleanly in LDAP autocomplete search if we are offline.
Tag mcp-graveyard/UXP#1273
-rw-r--r-- | mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js b/mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js index 1c62d7e977..f75a57f0a6 100644 --- a/mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js +++ b/mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js @@ -208,8 +208,8 @@ nsAbLDAPAutoCompleteSearch.prototype = { acDirURI = Services.prefs.getCharPref("ldap_2.autoComplete.directoryServer"); } - if (!acDirURI) { - // No directory to search, send a no match and return. + if (!acDirURI || Services.io.offline) { + // No directory to search or we are offline, send a no match and return. aListener.onSearchResult(this, this._result); return; } |