-
Notifications
You must be signed in to change notification settings - Fork 9
Introduce policy SyncSettings to control sync state #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: enterprise-main
Are you sure you want to change the base?
Conversation
|
(Automated Close) Please do not file pull requests here, see https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html |
| @@ -204,6 +204,13 @@ EnterprisePoliciesManager.prototype = { | |||
| const policyNames = Object.keys(unparsedPolicies || {}); | |||
|
|
|||
| for (let policyName of policyNames) { | |||
|
|
|||
| #ifdef MOZ_ENTERPRISE | |||
| if (policyName in ["DisableAccounts", "DisableFirefoxAccounts"]) { | |||
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
gcp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
Exemplary policy setting: