Correction: Not in the background, but it could do it silently while the app is in the foreground.
I can only assume that up until P developers could record both sound and video in the background. That's some scary shit.
[edit] Why isn't there a system level visual indication or audit trail of any camera or mic access? Surely this would be trivial to implement, you could even disable it if you just didn't give a toot about privacy at all.
I wonder if the apps and browsers will get a "grant access for 5 minutes" setting, so that one can feel safe with the services of these services. EDIT: Or maybe lock-screen/pulldown-screen (or whatever it's called) notification that has a "remove permission" button so that you can remove it when you're done.
[Disclaimer: I work on Firefox.]
In Firefox you can grant the permissions once (for the current page only) or grant them forever, your choice. If your browser doesn't offer that choice, that's a problem with your browser.
[Disclaimer: I work on Firefox.]