I mean if I specified "firefox://" should that be overwritten too?
So to answer your question, yes. If a program is specifying "firefox://" and using it to mean "https://", then that should be considered a bug in the program specifying it. That bug can either be fixed in the program itself, or can have a workaround in an external program.