It's not Firefox, it's the server. Edit and resend the request with header "Accept: image/jpeg" only and you'll most likely get a JPEG file.
Does it actually request the image that it already downloaded again to save it to a file? Seems rather silly?
That seems more likely. I still hate webp.