I am writing browser extensions for chrome and firefox, and I am having trouble finding how to focus the browser window, which is currently out of focus, but contains the tab that I want to focus on.
Tab focusing can be done when there is focus in the browser window. However, the browser window does not focus when I focus the tab inside it.
To make it clear
I have two Chrome browser windows, each of which contains several tabs. One of the windows has focus, and the other window contains a tab that I want to focus and show to the user. Although I can focus the tab so that it is on top of other tabs, the browser window does not fall on top of other browser windows.
I wonder if such an API is available?
source share