In the good old days, there were lots of messages written to “.xsession-errors”. But I normally ignored them unless I was looking to solve a problem.
Currently (using Leap 15.5), nothing is being written to “.xsession-errors”. As best I can tell, what used to go there is now showing up in “/var/log/messages”. As far as I know, this is controlled by GDM or SDDM. I recently tested with “LightDM” but also nothing in “.xsession-errors”.
You probably have a non-standard setup, which is why “.xsession-errors” is being used.
Well I am not using Leap, I am using Tumbleweed, and if it’s a non-standard setup, we can blame the Tumbleweed installer as I have not made any major changes, other than updates. All X errors are logged to .xsession-errors and I have no " messages" file at all.
Have you checked your Mozilla Firefox extensions and plug-ins?
Are all the installed Mozilla Firefox extensions and plug-ins updated? «via Firefox – within the Firefox settings … »
Is there an ancient Mozilla Firefox extension or plug-in installed which is no longer being maintained?