It is pretty normal behavior for Firefox, same as for Thunderbird and for plenty of other programs.
My FF have always 2-32 local FF2FF connections, same as TB has 2 local TB2TB connections.
If process is listening on localhost ( 127.0.0.1 ) interface, nothing but local processes can connect to it.
Imagine it as you extra network card, that is available only to programs running on your PC.
If you monitor connections by sysinternals TCPview utility, always notice yourself what interface IP address a process is listening on.