I wonder, if there was a fork of electron using Firefox instead of chromium, what would the ram usage be like?

Mozilla really paved the way for electron with prism, shame it never really took off

I believe you're looking for Positron:

https://github.com/mozilla/positron