summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-10 22:21:59 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-10 22:21:59 -0500
commit4a37b21f31e4fff28e494f283f9e733657347d16 (patch)
tree363e74bd2c5c6f3503ac873801b706aabbc52c1a
parent29f106ff542879937222a9e8d8a4e79d0c559d7f (diff)
downloaduxp-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.js4
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;
}