fix #608: re-"render" badge on window focus change
This commit is contained in:
committed by
Jonathan Kingston
parent
7eb752c2f7
commit
e191255c47
@@ -505,6 +505,11 @@ const messageHandler = {
|
|||||||
|
|
||||||
browser.windows.onFocusChanged.addListener((windowId) => {
|
browser.windows.onFocusChanged.addListener((windowId) => {
|
||||||
assignManager.removeContextMenu();
|
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) => {
|
browser.tabs.query({active: true, windowId}).then((tabs) => {
|
||||||
if (tabs && tabs[0]) {
|
if (tabs && tabs[0]) {
|
||||||
tabPageCounter.initTabCounter(tabs[0]);
|
tabPageCounter.initTabCounter(tabs[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user