I am migrating the Chrome extension to FF using the 'FF Addon SDK'. In the background script (main.js), I need to use the equivalent of FF ...
chrome.webNavigation.onBeforeNavigate.addListener()
and
chrome.tabs.onUpdated.addListener()
I noticed that require ("sdk / tabs") has only open, closed, trailing, etc., but has nothing to do with navigation.
I see several solutions that use Page-Mod or show a solution for the old XUL method for developing FF extensions. I am specifically looking for the FF Addon SDK solution (only).
Rate any inputs.
EDIT: I was able to find an alternative for chrome.tabs.onUpdated.addListener () using the Advanced Listener. Apparently in FF it is called onLocationChange. Still looking for an alternative to chrome.webNavigation.onBeforeNavigate.addListener ()