Quote:
how to prevent chrome and firefox from adding mask to time field
Short answer: Don't use time field, replace with text field and handle everything yourself.
The browser is free to do anything it wants to get desired result, it is the same with date or integer.