Is there any way to determine if a bundled html page is already open within Safari?
Iterating through the open tabs and looking at the page properties (url, title, etc...) all return nil for bundled html pages currently open in the browser.
When a user clicks the toolbar icon in my extension, I'd like to check if another instance of the extension's bundled html page is already open in a tab, and if so, activate that tab rather than opening another instance.
Iterating through the open tabs and looking at the page properties (url, title, etc...) all return nil for bundled html pages currently open in the browser.
When a user clicks the toolbar icon in my extension, I'd like to check if another instance of the extension's bundled html page is already open in a tab, and if so, activate that tab rather than opening another instance.
Safari App Extensions can't access anything that isn't about:blank, or an HTTP or HTTPS URL. If you would like to see this changed, please send us feedback via Feedback Assistant. Thanks!