(In reply to Olivia Hall [:olivia] from comment #6)
We assigned this to you during triage based on c5. I just realized you may have only meant the webdriver side and not the GV side. I think a workaround is possible for this bug, but we'd probably need to decide what the best workaround would be based on what the BiDi API expects.
yes, I actually meant only WebDriver side :(
In the meantime, I found out a couple of things: it looks like a tab (window) in the GeckoView is actually open in the foreground by default, which means that we need a way to open it also in the background (because we create the API which can do both). We've implemented for now a workaround, where we focus the previously focused tab (window). That also means that focusing (or selecting) actually works fine, we just needed to use the API to focus window.
Basically what you mentioned here:
A possible workaround could be a utility to create the new session (what
GeckoViewTabUtil.createNewTab is doing) and add a way to set the new session (window) to be visible or foregrounded at the same time, so with a param like
setToForeground = true (To switch tabs/windows back and forth or set position, we would need a full session tracking API.)
would work for us just with
setToForeground = false. Let me know what you think.
I'll remove myself from
Assignee for now.