epub files are essentially zipped html files with associated stylesheets, images etc.
The default behavior of Firefox is to download "webpage, complete" which is an HTML file and a folder with a bunch of other files in it. Other browsers even do something non-standard like mhtml.
I propose that epub is the natural offline format for html files. I propose that Firefox should render them as webpages natively and save to the epub format by default.