how to get notified when there is a tab opened or closed and to give each tab a identity

Before it we have the backgroud wherein we can get notified when a tab closed or opened.And also we can give each tab a identity to achieve the tabmanagement. Can we get that too, It is really helpful!

Now, we are trying to go this by workaround like using "getAllWindow" and "getAllTab", and "isEqual" to distinguish tabs, but to find that some times if we refetch the tabs, the very same tab become different. Let alone to reduce or add a tab during the operation, It is frustrated and struggling, could you know there is something we can do ? Thanks!