SpecialPowers is loaded as an extension. The [code](https://searchfox.org/mozilla-central/source/testing/specialpowers) is open source and so I assume it could be extracted and used in your Firefox testing, but I'm not aware of recent cases of people doing this. I suspect WebDriver/[geckodriver](https://github.com/mozilla/geckodriver)/Marionette would provide a more versatile testing framework, which would include click support, making SpecialPowers unnecessary. At the other end of options, the "dom.user_activation.transient.timeout" pref might be set to a large number so that a single click from a user starting a test might be sufficient for all `getUserMedia()` calls occurring in a single document. Another user interaction, however, would be required for each document loaded.
Bug 1729889 Comment 15 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
SpecialPowers is loaded as an extension. The [code](https://searchfox.org/mozilla-central/source/testing/specialpowers) is open source and so I assume it could be extracted and used in your Firefox testing, but I'm not aware of recent cases of people doing this. I suspect WebDriver/[geckodriver](https://github.com/mozilla/geckodriver)/Marionette would provide a more versatile and probably better supported testing framework, which would include click support, making SpecialPowers unnecessary. At the other end of options, the "dom.user_activation.transient.timeout" pref might be set to a large number so that a single click from a user starting a test might be sufficient for all `getUserMedia()` calls occurring in a single document. Another user interaction, however, would be required for each document loaded.
SpecialPowers is loaded as an extension. The [code](https://searchfox.org/mozilla-central/source/testing/specialpowers) is open source and so I assume it could be extracted and used in your Firefox testing, but I'm not aware of recent cases of people doing this. I suspect WebDriver/[geckodriver](https://github.com/mozilla/geckodriver)/Marionette would provide a more versatile, and probably better supported, testing framework, which would include click support, making SpecialPowers unnecessary. At the other end of options, the "dom.user_activation.transient.timeout" pref might be set to a large number so that a single click from a user starting a test might be sufficient for all `getUserMedia()` calls occurring in a single document. Another user interaction, however, would be required for each document loaded.
SpecialPowers is loaded as an extension. The [code](https://searchfox.org/mozilla-central/source/testing/specialpowers) is open source and so I assume it could be extracted and used in your Firefox testing, but I'm not aware of recent cases of people doing this. I suspect WebDriver/[geckodriver](https://github.com/mozilla/geckodriver)/Marionette would provide a more versatile, and probably better supported, testing framework, which would include click support, making SpecialPowers unnecessary for this purpose. At the other end of options, the "dom.user_activation.transient.timeout" pref might be set to a large number so that a single click from a user starting a test might be sufficient for all `getUserMedia()` calls occurring in a single document. Another user interaction, however, would be required for each document loaded.