I somehow ended up with a Firefox session that takes up my entire memory and swap space and then crashes. And then when I start up the software again the whole process repeats. I'd like to be able to open Firefox normally without it crashing.
I found this question on clearing the cache (How to clear browser's cache and cookies from terminal), which I imagine would work, but I don't want to risk losing data that I might actually want. I don't particularly want to lose cache or cookies; I just want Firefox to stop trying to restore all those tabs.
What should I do?