And even edge cases should be supported. Maybe the default in Firefox should be to disable the camera when you lock your phone, but then it should have a setting to do otherwise, and it certainly shouldn't be rendered impossible by the OS (rather than, say, having a separate permission).