mozilla / policy-templates

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

Dead link in document `Adding policy support to your extension` #1104

Closed qupig closed 6 months ago

qupig commented 6 months ago

https://github.com/mozilla/policy-templates/blob/e6c67d8234573afdd95831b2f260421ca64ac8d8/docs/index.md?plain=1#L130

https://extensionworkshop.com/documentation/enterprise/adding-policy-support-to-your-extension/

Do not delete - This page is gone but we need to keep the file for the redirect, see /.utils/setup-object-redirection.sh

qupig commented 6 months ago

The page still doesn't describe its relationship to the original browser.storage.managed's Manifest files.

Does one override the other completely? Or does one only overwrite the same data keys as the other? And who overwrites who?

I.e., does the enterprise-policy-3rdparty override the following files? If true, how is it override?

Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\ManagedStorage\<name>
HKEY_CURRENT_USER\SOFTWARE\Mozilla\ManagedStorage\<name>

macOS:
/Library/Application Support/Mozilla/ManagedStorage/<name>.json
~/Library/Application Support/Mozilla/ManagedStorage/<name>.json

Linux:
/usr/lib/mozilla/managed-storage/<name>.json
/usr/lib64/mozilla/managed-storage/<name>.json
~/.mozilla/managed-storage/<name>.json
mkaply commented 6 months ago

We're actually planning to deprecate those completely.

They only exist because we didn't originally have enterprise policy.

But the answer is that 3rdparty is read first and if found, it is used unstead of the .json.

qupig commented 6 months ago

Good to know, thanks for the reply. It would be good to add this note to the documentation as well.