mozilla / policy-templates

Policy Templates for Firefox
Mozilla Public License 2.0
1.15k stars 415 forks source link

Question: overriding extension settings via registry? #1155

Open hcldan opened 2 months ago

hcldan commented 2 months ago

Looking at your excellent documentation but still have a question about the extension policies:

https://mozilla.github.io/policy-templates/#windows-gpo-55

In chrome, we use this path in the registry:

HKLM/Software/Policies/Google/Chrome/ExtensionSettings/<extid>

And set values for the object keys that they support, and the values are json (for arrays and such).

Is that possible here?

In chrome it is also possible to set runtime_allowed_hosts and runtime_blocked_hosts to further control what the extension is allowed to load on. I only see a restricted_domains which looks like a blocklist only.

We have many customers that all have different deployment locations, and we would like a way to control what sites the extension is active on outside of the extension manifest. Is this going to be possible with firefox's addons?

mkaply commented 2 months ago

Yes, ExtensionSettings works the same on Firefox.,

Unfortunately we don't currently set those two settings though.

hcldan commented 2 months ago

Unfortunately we don't currently set those two settings though.

@mkaply Set or read?

mkaply commented 2 months ago

Sorry, I meant support. We don't support those settings.

hcldan commented 2 months ago

@mkaply Gotcha, thank you!

hcldan commented 2 months ago

Any chance on getting support for that? It kind of kills our deployment model for FF.

mkaply commented 2 months ago

We have a bug opened, but it's in the backlog right now

https://bugzilla.mozilla.org/show_bug.cgi?id=1904061

Feel free to make a comment there with your use case.

Best not to make it feel like a "me too" just a why it's important to you :)