Do not blame Firefox, this is actually how MacOS UI works by default: https://apple.stackexchange.com/questions/269622/macos-windo...
I think the other poster has some addon installed and forgot about it.
I think the other poster has some addon installed and forgot about it.
But, having clicks work on hover instead of after focus is fine, and simply has a different set of trade offs.
You can also switch focus to a window without raising it by holding down Control+Option and clicking the window.
At any rate, a lot of these things can be chalked up to different philosophies, I think. Personally, I really don't like focus follows mouse; when I was using FreeBSD and Linux many years ago, I would try it and then end up disabling it after a short while.
It is worth noting that Terminal has a hidden preference for focus-follows-mouse:
defaults write com.apple.Terminal FocusFollowsMouse -bool true
You can also change that setting, along with those of some other quirky system things, in third-party apps like TinkerTool and Onyx.