Security is completely ignored here. Is a web app controlling your microphone or camera a Good Thing? Maybe yes, maybe no.
I could see a need to be able to run a web app in a sandbox mode though, where it has only ephemeral access to storage and no access to the Internet.