Hello, I have a macOS app that helps navigation through running apps published on the App Store.
I would like to create a Safari extension for macOS that would allow the user to open directly one of the last used tabs. Activate a tab is not a problem following the documentation, but my question is: can I allow the opening of a tab that is not in the frontmost window of the current instance of Safari?
Security policies about window.focus() function are restrictive also for code executed directly in the "background" script of the extension?
P.S. For example, in a Sandbox application you cannot activate directly a window but just a running application as it was left, so I cannot select the interested Safari's window from the macOS app.
Thank you!