I’ve seen keyboards that allow firmware upgrades & configuration over WebUSB. This covers not just Linux but even smaller OSs as well as the audience using Android tablets as a PC or whatever.
The permission prompt in Firefox is definitely sensible though (especially for SysEx), not sure if Chrome added that as well.