Use Firefox's built in privacy blocking tools as a bare minimum.
Personally, I use uBlock, the built in privacy list, and most crucially: Cookie AutoDelete.
I have it set such that if I unload a domain for 30 minutes, all of its cookies are deleted. The end result is that I have something that works decently, while preserving history and passwords.