Isn't this default Firefox behaviour?
Whenever a site wants access to the microphone I get a prompt from Firefox asking for its permission to grant it to the site/tab. Then when I close the tab, the permission goes away.
There is an option to remember my preference in the popup but there's no chance in hell I check it.