I have a Chrome functional extension that tracks the active tab for URL changes.
In particular, I need to determine when the URL changes, but there is no new page load or navigation. Some sites do this (for example, when you click to watch another video on YouTube).
In Chrome, I did this with
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { if (changeInfo && changeInfo.status == "complete") {
How to detect such changes in a Firefox add-in?
They told me: Listening to events on all tabs , but I could not collect them. One of the problems was that gBrowser not defined in the extension.
What am I doing wrong?
Is there an easier way?
firefox firefox-addon firefox-addon-sdk
tiagosilva
source share