Bug 1104221 - Search drop down shows the icon of the previous default engine if the new default doesn't have an icon. r=felipe

This commit is contained in:
Florian Quèze 2014-11-24 20:24:19 +01:00
parent 8f91234307
commit 84f5bfb056

View File

@ -1015,6 +1015,11 @@
uri = uri.spec;
this.setAttribute("src", PlacesUtils.getImageURLForResolution(window, uri));
}
else {
// If the default has just been changed to a provider without icon,
// avoid showing the icon of the previous default provider.
this.removeAttribute("src");
}
document.getAnonymousElementByAttribute(this, "anonid", "searchbar-engine-name")
.setAttribute("value", currentEngine.name + " Search");