How do I make Firefox open a PDF in a tab instead of downloading it?
What you need is a PDF plugin for Firefox. For instance, this PDF Browser Plugin will work for that. It will allow you to open a PDF in the browser without downloading it.
More information on this Firefox support doc.