Skip to content

Commit

Permalink
Bug 1104221 - Search drop down shows the icon of the previous default…
Browse files Browse the repository at this point in the history
… engine if the new default doesn't have an icon. r=felipe, a=lmandel
  • Loading branch information
fqueze committed Nov 24, 2014
1 parent ea9f5bd commit 4d30057
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser/base/content/urlbarBindings.xml
Expand Up @@ -957,6 +957,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");

Expand Down

0 comments on commit 4d30057

Please sign in to comment.