fix #608: re-"render" badge on window focus change
This commit is contained in:
parent
7eb752c2f7
commit
e191255c47
1 changed files with 5 additions and 0 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue