pyllyukko / user.js

user.js -- Firefox configuration hardening
MIT License
2.73k stars 233 forks source link

Strange issue Firefox switching to active window - Firefox stealing focus! #510

Closed jkuj6 closed 3 years ago

jkuj6 commented 3 years ago

Ive been having a very strange and annoying issue, it never used to happen before but only noticed it recently.

Basically, if you go to a site like Github, and as soon as you click sign-up, and while thats loading, you switch to another window, like Thunderbird, or your file browser, you will notice that as soon as Github finishes loading the captcha in the backgrounded window, it will switch to Firefox automatically as the active window. Ive noticed only some sites do this, another of which is a banking site while logging-in half way, i noticed as i was switching between keepass and before i even double clicked the password, it switched me back to firefox active window.

This however, does not happen if you explicitly minimize the firefox window after refreshing the Github sign-up page.

I have successfully reproduced the issue on a VM and it does the same thing. See the GIF video below. 2021-03-22

To reproduce yourself:

  1. Open 2 windows, one of them firefox and the other a file-browser or whatever.
  2. Go to firefox and as soon as you click on the sign-up page, switch to your file-browser window and wait. (DONT minimize firefox, just switch windows)

I dont know about you, but this is over-board ridiculous and this never happened before. Can anyone say how websites are switching our active windows now and what option is causing this so it can be disabled? Next thing you know is they will be controlling more than just our windows.

jkuj6 commented 3 years ago

Anyone experiencing the same?

nodiscc commented 3 years ago

Anyone experiencing the same?

No.

Cannot reproduce on Debian 10, firefox-esr 78.9.0esr-1~deb10u1, latest user.js from master. I believe this is your window manager acting weird. It appears you are using Xubuntu, for what it's worth I'm also on XFCE, xfwm4 4.12.5-1. These are my windows focus settings

image

jkuj6 commented 3 years ago

Thanks for getting back to me. I forgot to mention that i did test on a fresh Firefox profile with no user.js file. I tested browser.tabs.loadDivertedInBackground changing it to true but thats not exactly what i wanted.

After various tests on various versions of Firefox on VM's, i realized that this issue only happens on Firefox v86.0.0. After i upgraded to Firefox v87.0, that window focus problem went away. Seems it was a Firefox bug.

Thanks for the help!