In my browser (Firefox 94 on Ubuntu) it doesn't work. It may fail due to user settings and the window isn't guaranteed to be frontmost before this method returns. Makes a request to bring the window to the front. The classic way to do this is Window.focus() but even the Mozilla docs say, that the success of this operation depends on the configuration of the user's browser. In my case the user would install the AddOn to explicitly have this functionality, so focusing windows would be intended by the user. Which I totally support if it is not intended by the user. While doing research on how to focus windows, I learned that browsers heavily restrict this to avoid misuse. I'm trying to write a Firefox AddOn that allows the user to quickly bring a specific open window to the front.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |