The code to do something like this is:

Services.perms.add(NetUtil.newURI("https://www.youtube.com";),
"autoplay-media", 1);

You an add a few of these lines at the bottom of cck2.cfg with your domains
and it should work.

I'll look at adding it to policy as well.

Mike

On Wed, Oct 2, 2019 at 9:27 AM Tichenor, Jon E <[email protected]>
wrote:

> Using ESR version 68.1.0, is there any way to whitelist specific domains
> to allow them to autoplay video content? I see how it can be done via the
> UI, but have not found a method to allow us to programmatically address
> this. We want to allow videos to autoplay from **our** domain(s), while
> still blocking autoplay for everything else.
>
>
>
> We are currently still using the CCK2-style method of configuration while
> we explore migrating our configuration over to GPO.
>
>
>
> Thanks!
> _______________________________________________
> Enterprise mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/enterprise
>
> To unsubscribe from this list, please visit
> https://mail.mozilla.org/listinfo/enterprise or send an email to
> [email protected] with a subject of "unsubscribe"
>
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to