Firefox may be leveraging container functionality for private mode. Firefox containers are fully functional isolated containers of data where regular browser features function like expected.
Even if it doesn't, the Firefox temporary containers add-on would help.
Even if it doesn't, the Firefox temporary containers add-on would help.