Mozilla says it will fix the bug later this year, in October.
Article Link: https://www.zdnet.com/article/firefox-on-android-camera-remains-active-when-phone-is-locked-or-the-user-switches-apps/#ftag=RSSbaffb68