Skip to content

feat: improve sync policy reference - #403

Merged
bsmth merged 5 commits into
mainfrom
sync
Nov 16, 2026
Merged

bsmth merged 5 commits into
mainfrom
sync

Conversation

@murphyatmozilla

Copy link
Copy Markdown
Contributor

Description:

This PR improves the sync policy reference to better align with what is actually going on behind the scenes. This explanation is based on SyncPolicy.sys.mjs, the policy update logic in EnterprisePoliciesParent.sys.mjs, the pref helpers in PoliciesHelpers.sys.mjs, and the places in the browser UI that check the policy.

What might be considered missing is how these values are treated in relation to time and the Mozilla account. What I mean is I don't fully understand when settings are actually applied for a user (like only after a restart) and what happens in relation to a user being signed in or signed out from their Mozilla account.

I am feeling a bit unsure about "unset", "leave out", addressing the reader with "you" and so on. Please feel free to change those as you please.

Motivation:

I am working on a custom sync form so I had to understand what was going on behind the scenes. The reference doesn't capture the intricacies.

Related issues and pull requests:

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

@bsmth bsmth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thanks. Examples looking super, some comments to consider about convention for values, let's try to keep it uniform.

@bsmth bsmth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of suggestions, but looking good to me, thanks!

@bsmth bsmth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, let's merge! Thank you 👏🏻

@bsmth
bsmth merged commit 682071c into main Nov 16, 2026
1 check passed
@bsmth
bsmth deleted the sync branch November 16, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants