Bug 1357800 - The One-Off search buttons not visible in the search bar. r=florian

Rebuild the one-off search buttons when the theme changes.  See bug 1357800 for details.  Summary: On Linux, switching between themes can cause a row of buttons to disappear.

MozReview-Commit-ID: 8lfsUO00jYP

--HG--
extra : rebase_source : 5bdef5513a8c8f8f02fd9383867b0ed57610b606
This commit is contained in:
Drew Willcoxon 2017-05-17 15:58:56 -07:00
Родитель eb687c3599
Коммит 6995e1d59d
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1426,6 +1426,11 @@
// Add weak referenced observers to invalidate our cached list of engines.
Services.prefs.addObserver("browser.search.hiddenOneOffs", this, true);
Services.obs.addObserver(this, "browser-search-engine-modified", true);
// Rebuild the buttons when the theme changes. See bug 1357800 for
// details. Summary: On Linux, switching between themes can cause a row
// of buttons to disappear.
Services.obs.addObserver(this, "lightweight-theme-changed", true);
]]></constructor>
<!-- This handles events outside the one-off buttons, like on the popup