Preloaded tabs are not handled correctly
kav2k opened this issue · 1 comments
kav2k commented
Some time ago, Chrome introduced a new mechanism of tab preloading - usually used for instant search.
Such tabs are loaded/rendered off-screen, and then the current tab is swapped for the new one.
This results in a race condition: if the page loading is very fast, the message to set the icon may arrive before the tab is visible - and that makes the indicator not show up, even after the tab is swapped in. A reload fixes it.
The proper way to correct this is to have a listener to chrome.tabs.onReplaced
event and run the content script again for the swapped-in tab.
kav2k commented
Sorry for the reference spam.