To run a stack trace on Firefox, start Firefox like this:
Code:
snap run --strace firefox | tee ./firefox.strace
Ensure wherever you create that file has lots of room. That is going to generate lots of data. You will see everything that is happening to it.