I have followed this example:
function handleUpdated(tabId, changeInfo, tabInfo) {
if (changeInfo.url) {
console.log("Tab: " + tabId +
" URL changed to " + changeInfo.url);
}
}
browser.tabs.onUpdated.addListener(handleUpdated);
But when I navigate to a new url in a tab, the changeInfo object never gives me changeInfo.url. It’s always undefined. This exact same code works just fine on Chrome.
My system is:
Firefox 78.0.2(64-bits), macOS Catalina 10.15.5
Anyone has the same issue? It’s a real bug or it’s just me.
Thank you in advance.