Bug 554265 - Download search engine icons even when searchplugin is readonly [r=rflint]

--HG--
extra : rebase_source : c1d93bf91c126de9bce3ee171c26c0d46d70eae4
This commit is contained in:
Mike Hommey 2010-04-19 10:26:48 +02:00
parent 45a0d519f6
commit 8879ba6318

View File

@ -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);