Hello,
I have a problem with chrome.tabs.onUpdated listener on MV3.
If service worker is inactive the
chrome.tabs.onUpdated listener not fired.
If
service worker is active (or open via
Inspect views) the code works as expected.
One more notice: the code always works in MV2 (with background page).
Sample of the code:
function
Listener
(tabId, changeInfo, tab) {
console.log('here'); <-- not fired
some_code_goes_here();
}
chrome.tabs.onUpdated.addListener(Listener);