As I understand, one of the reasons webNavigation was implemented was to relieve the extension developers of doing url checks themselves using the tabs api by providing performant url filtering methods and reducing CPU use along the way.
An extension of mine needs to hold a list of tabs on a specific host, in order to prevent unnecessary background house-keeping tasks on other Tabs (causing some network and cpu usage). These can be initiated using the webNavigation api onCommitted event, however, I need to disable these once the user navigates away, or closes a tab.
This functionality currently can be achieved using a mix of webNavigation and Tabs api: web navigation forms a list of targeted tabs, while Tabs api could be used to track the changes in the Tab URL and tab closing.
That said, all this functionality could be achieved using webNavigation api, if the api provided onNavigateAway event, which is fired when an URL is changed from the filtered URL to an URL which does not meet the filter, or when the tab is closed. (although a tab close could be considered in the domain of Tabs api, firing the navigateAway event on tab close would complete the functionality (of keeping the list of desired tabs, through url filtering using a single API)
I'd like to hear your views on this and whether I am posting these in the right avenue. Thanks!