I want to perform an action only if some URL is currently active (in focus) in mutli tab/window scenario.
As per above link
"A Safari app extension does not have a global HTML page. Instead, any work that you used to do in the global HTML page must now be done in the native app extension."
In absense of global page, how do I listen for events like SafariActivateEvent?
I tried focus event. It is however triggered only if an input element is focused.