From 2fda56a84eca7a08f626704e81b5c4c571623e44 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sun, 10 Nov 2019 22:21:59 -0500 Subject: Bug 1508046 - return cleanly in LDAP autocomplete search if we are offline. Tag #1273 --- mailnews/addrbook/src/nsAbLDAPAutoCompleteSearch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mailnews') 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; } -- cgit v1.2.3