Firefox blocking microphone use

Hi Clifton,
This is nothing to do with Powerpac but maybe you could help. I have noticed a very recent change in Firefox. I have always used an online html5 recording system in my program and it is loaded into an iframe using pgGotoURL. The day before yesterday this stopped working. I have now found 2 reasons that explain why. The first was that navigatorUserMedia.getUserMedia() is now obsolete https://developer.mozilla.org/fr/docs/NavigatorUserMedia.getUserMedia and has been replaced by navigator.mediaDevices.getUserMedia(). The second reason is more problematic. It seems that it is now impossible to authorise the use of a microphone from code in an iframe. The error message: no live audio input: notallowederror: the request is not allowed by the user agent or the platform in the current context is always displayed.
I was able to update my system using navigator.mediaDevices.getUserMedia() but it will only work if the code is contained in a top level html. For example this original demo https://www.mediacours.com/test_recorder/recorder1.html fails (surprisingly without an error message) but this one https://www.mediacours.com/test_recorder/recorder2.html works using the new function if you first click on the Setup button.
So I thought the easiest solution might be to put all the necessary code into the /ns7/index.html file. I have done this successfully adding an authorisation button etc. but I don't know how to call functions in the index file from the TB part of the program. I have tried top.myFunction() and Window.document.myFunction() but they don't work. Is there another way?
The other frustrating thing is that there is little or no information available about this. I guess there will be soon if it affects other apps. Online recording is probably not yet a mainstream activity. To check that it wasn't a malfunction I uninstalled and reinstalled Firefox but to no avail.
Jon
This is nothing to do with Powerpac but maybe you could help. I have noticed a very recent change in Firefox. I have always used an online html5 recording system in my program and it is loaded into an iframe using pgGotoURL. The day before yesterday this stopped working. I have now found 2 reasons that explain why. The first was that navigatorUserMedia.getUserMedia() is now obsolete https://developer.mozilla.org/fr/docs/NavigatorUserMedia.getUserMedia and has been replaced by navigator.mediaDevices.getUserMedia(). The second reason is more problematic. It seems that it is now impossible to authorise the use of a microphone from code in an iframe. The error message: no live audio input: notallowederror: the request is not allowed by the user agent or the platform in the current context is always displayed.
I was able to update my system using navigator.mediaDevices.getUserMedia() but it will only work if the code is contained in a top level html. For example this original demo https://www.mediacours.com/test_recorder/recorder1.html fails (surprisingly without an error message) but this one https://www.mediacours.com/test_recorder/recorder2.html works using the new function if you first click on the Setup button.
So I thought the easiest solution might be to put all the necessary code into the /ns7/index.html file. I have done this successfully adding an authorisation button etc. but I don't know how to call functions in the index file from the TB part of the program. I have tried top.myFunction() and Window.document.myFunction() but they don't work. Is there another way?
The other frustrating thing is that there is little or no information available about this. I guess there will be soon if it affects other apps. Online recording is probably not yet a mainstream activity. To check that it wasn't a malfunction I uninstalled and reinstalled Firefox but to no avail.
Jon