From 8879ba6318648c5dde691d20b7ddb98a255cdf1a Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 19 Apr 2010 10:26:48 +0200 Subject: [PATCH] Bug 554265 - Download search engine icons even when searchplugin is readonly [r=rflint] --HG-- extra : rebase_source : c1d93bf91c126de9bce3ee171c26c0d46d70eae4 --- toolkit/components/search/nsSearchService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/components/search/nsSearchService.js b/toolkit/components/search/nsSearchService.js index 44f70c8d0098..525f7359827b 100644 --- a/toolkit/components/search/nsSearchService.js +++ b/toolkit/components/search/nsSearchService.js @@ -1431,7 +1431,8 @@ Engine.prototype = { case "https": case "ftp": // No use downloading the icon if the engine file is read-only - if (!this._readOnly) { + if (!this._readOnly || + getBoolPref(BROWSER_SEARCH_PREF + "cache.enabled", true)) { LOG("_setIcon: Downloading icon: \"" + uri.spec + "\" for engine: \"" + this.name + "\""); var chan = NetUtil.ioService.newChannelFromURI(uri);