Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.02 KB

README.md

File metadata and controls

43 lines (29 loc) · 2.02 KB

Writing policy definitions

These notes are for changes to src/policies/firefox.json: adding new Firefox policies, extending existing policies, and keeping the generated UI, output, translations, and tests in sync.

The files you will usually touch are:

The UI and output code are mostly generic. If a policy can be described in firefox.json, prefer that over adding policy-specific JavaScript.

If a change needs more context, these files are usually the next stop:

Reading order

Before adding a policy

Every policy definition should answer three questions:

  • Where does it appear in the UI?
  • Which controls does the user need?
  • What exact JSON should be generated?

If those answers are clear in firefox.json, the rest of the generator usually works without additional code.


Next: File structure