You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using non-headless chrome in --kiosk mode. In order to hide the address bar, we specify the url as the --app flag. This hides the tab bar and forces the window into a single-tab mode.
Calling c.NewTab(url) on a single-tab window opens a new window that is not in kiosk mode. It actually prevents the original window from making it to kiosk mode in the first place.
Thus, I am unable to get my hands on a tot.Tab instance (due to un-exported properties) for the initial tab created by chrome and its --app flag.
There are a couple ways this could be fixed.
tot.Chrome could automatically query /json for the first tab after the chrome process launches, and append it to Chrome.tabs
Provide a LoadTabByIndex(i int) (*tot.Tab, error) method that queries /json and fetches the ith index from the slice
Provide a ReloadTabs() error method that queries /json for all tabs and merges new connections (if applicable) into Chrome.tabs
Would love to hear your thoughts. Thanks for a great package!
The text was updated successfully, but these errors were encountered:
That's not a use-case I've explored. I like the first option you listed, I feel like that makes it more of a natural experience, but the other options are interesting as well and probably have independent value.
Is it possible for you to provide an example main.go that illustrates the issue? I'd be happy to play with it and get a better idea of what you're working with.
I'm using non-headless chrome in --kiosk mode. In order to hide the address bar, we specify the url as the --app flag. This hides the tab bar and forces the window into a single-tab mode.
Calling
c.NewTab(url)
on a single-tab window opens a new window that is not in kiosk mode. It actually prevents the original window from making it to kiosk mode in the first place.Thus, I am unable to get my hands on a tot.Tab instance (due to un-exported properties) for the initial tab created by chrome and its --app flag.
There are a couple ways this could be fixed.
/json
for the first tab after the chrome process launches, and append it to Chrome.tabsLoadTabByIndex(i int) (*tot.Tab, error)
method that queries/json
and fetches thei
th index from the sliceReloadTabs() error
method that queries/json
for all tabs and merges new connections (if applicable) into Chrome.tabsWould love to hear your thoughts. Thanks for a great package!
The text was updated successfully, but these errors were encountered: