Position of close button

The latest version of Firefox (116.0.2) on my Linux Mint doesn’t have the button to close the window in the top-right corner anymore. This is very annoying because I’m used to moving the mouse to the top-right corner and click to close the window. Now I have to move the mouse pointer a little lower to do so, just clicking the top-right corner doesn’t work anymore.

Screenshot from 2023-08-10 05-47-22

More possible that it’s due to some change on your environment. Can you try mozregression to find any related commit?

According to another community volunteer who tried to reproduce the issue, if you hide the title bar, then the vertical area of the x button will reduce massively, and the bug has existed at lease since 2022/8.

Now the best way to resolve it is to run mozregression by yourself and to find out which commit is causing this issue and report it as a regression bug on bugzilla.mozilla.org

I’m not familiar with mozregression but when I run it I get: “/usr/share/tcltk/tcl8.6/init.tcl: version conflict for package “Tcl”: have 8.6.10, need exactly 8.6.12”
I don’t know what “Tcl” is or how to change it’s version.

I also found 2 other topics on this issue:
But adding that code to /usr/share/webapp-manager/firefox/profile/chrome/userChrome.css or ~/.mozilla/firefox/4rocubr6.default-release/chrome/userChrome.css doesn’t seem to have any effect

I actually managed to solve this, it seems that Firefox doesn’t look for userChrome.css by default anymore and I had to enable this by setting toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config as described here

This page also describes how to find/create the correct location for the userChrome.css file. This is the code I’m using:

.titlebar-buttonbox-container .titlebar-buttonbox { margin-top: -16px !important; margin-right: -4px !important; }