fix #608: re-"render" badge on window focus change

This commit is contained in:
groovecoder 2017-06-22 09:26:30 -05:00 committed by Jonathan Kingston
parent 7eb752c2f7
commit e191255c47

View file

@ -505,6 +505,11 @@ const messageHandler = {
browser.windows.onFocusChanged.addListener((windowId) => {
assignManager.removeContextMenu();
// browserAction loses background color in new windows ...
// https://bugzil.la/1314674
// https://github.com/mozilla/testpilot-containers/issues/608
// ... so re-call displayBrowserActionBadge on window changes
displayBrowserActionBadge();
browser.tabs.query({active: true, windowId}).then((tabs) => {
if (tabs && tabs[0]) {
tabPageCounter.initTabCounter(tabs[0]);