The feature is called Tab Unloading, and weirdly enough they made it not easy to access despite its usefulness.
You basically have to type about:unloads
in the address bar and hit enter. If you then click on “Unload”, it will put the least used tabs to sleep. If you keep clicking that button until it’s greyed out, you’ll have unloaded all your tabs from memory.
This feature is handy if you want to temporarily switch to something that is memory hungry without having to close your 100 tabs.
Where does it get unloaded to?
From what I understand it basically just saves the minimal state possible (URL, form inputs), which is lighter than keeping all the rendering details in memory, so maybe that minimal representation still stays in RAM as its footprint would be negligible.
It doesn’t save form inputs because when you click a suspended/unloaded tab, it reloads the whole page. Everything unsaved on that page is lost.
I really hope some day Firefox will work the way you say, though.
That’s weird then, because this says:
If it doesn’t do that then I’d say it’s a bug?
/dev/null
It gets thrown away. When you go back to the tab it will effectively reload.
(It will attempt to save some extra information such as scroll position and form inputs but this isn’t 100% reliable so I would treat it as a nice-to-have not something to rely on.)