Skip to content

Conversation

@1rneh
Copy link
Contributor

@1rneh 1rneh commented Dec 30, 2025

Exemplary policy setting:

{
  "policies": {
    "SyncSettings": {
      "SyncEnabled": true,
      "TypesEnabled": [
        "bookmarks",
        "passwords"
      ]
    }
  }
}

@1rneh 1rneh requested a review from a team December 30, 2025 21:06
@github-actions
Copy link
Contributor

(Automated Close) Please do not file pull requests here, see https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html

@github-actions github-actions bot closed this Dec 30, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2025
@1rneh 1rneh reopened this Jan 5, 2026
@mozilla mozilla unlocked this conversation Jan 9, 2026
@@ -204,6 +204,13 @@ EnterprisePoliciesManager.prototype = {
const policyNames = Object.keys(unparsedPolicies || {});

for (let policyName of policyNames) {

#ifdef MOZ_ENTERPRISE
if (policyName in ["DisableAccounts", "DisableFirefoxAccounts"]) {
Copy link
Contributor

@gcp gcp Jan 9, 2026

Choose a reason for hiding this comment

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

policyName = "DisableAccounts";
console.log(policyName in ["DisableAccounts", "DisableFirefoxAccounts"])

Return false.

policy-SupportMenu = Add a custom support menu item to the help menu.
policy-SyncSettings = Enable or disabled Sync and additionally define which data to sync.
Copy link
Contributor

Choose a reason for hiding this comment

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

type: disable

"SyncSettings": {
"type": "object",
"properties": {
"SyncEnabled": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this required?

"required": ["Title", "URL"]
},

#ifdef MOZ_ENTERPRISE
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, does this work without marking this somewhere in a moz.build?

}

lazy.log.debug("Force-enable Sync");
await this.connectSync(manager);
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this after the prefs setting?

Copy link
Contributor

@gcp gcp left a comment

Choose a reason for hiding this comment

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

See comment.

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