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 | 2fda56a84eca7a08f626704e81b5c4c571623e44 (patch) | |
tree | 363e74bd2c5c6f3503ac873801b706aabbc52c1a /mailnews/addrbook | |
parent | 891ca8709adab06325b0f6e5432ffa4a620438bb (diff) | |
download | UXP-2fda56a84eca7a08f626704e81b5c4c571623e44.tar UXP-2fda56a84eca7a08f626704e81b5c4c571623e44.tar.gz UXP-2fda56a84eca7a08f626704e81b5c4c571623e44.tar.lz UXP-2fda56a84eca7a08f626704e81b5c4c571623e44.tar.xz UXP-2fda56a84eca7a08f626704e81b5c4c571623e44.zip |
Bug 1508046 - return cleanly in LDAP autocomplete search if we are offline.
Tag #1273
Diffstat (limited to 'mailnews/addrbook')
-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 1c62d7e97..f75a57f0a 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; } |