I am making a chrome extension and my problem is that chrome.tabs.onUpdated.addListener() is being called multiple times.
My code is like this
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { if(changeInfo.status == 'complete' && tab.status == 'complete' && tab.url != undefined){ doSomething } }); This is related to Chrome Issue 162543 and it appears as fixed but I still have this problem.