I wrote the following simple code on my background script:
chrome.tabs.onActivated.addListener(function (info) {
console.log(info.tabId);
});
Then I go and open a new tab. Magazines console 73. Then I update the URL of the open tab, nothing is written to the console. However, if I then type something in the address bar on the same tab, and the google results page is open, the new identifier is 77written to the console.
What's going on here?
source
share