Commit 7e54f290 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1573967 - Add policy to set the default rememberSignons policy. r=MattN,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D42715

--HG--
extra : moz-landing-system : lando
parent 40d46174
...@@ -978,6 +978,12 @@ var Policies = { ...@@ -978,6 +978,12 @@ var Policies = {
}, },
}, },
OfferToSaveLoginsDefault: {
onBeforeUIStartup(manager, param) {
setDefaultPref("signon.rememberSignons", param);
},
},
OverrideFirstRunPage: { OverrideFirstRunPage: {
onProfileAfterChange(manager, param) { onProfileAfterChange(manager, param) {
let url = param ? param.href : ""; let url = param ? param.href : "";
......
...@@ -497,6 +497,10 @@ ...@@ -497,6 +497,10 @@
"type": "boolean" "type": "boolean"
}, },
"OfferToSaveLoginsDefault": {
"type": "boolean"
},
"OverrideFirstRunPage": { "OverrideFirstRunPage": {
"type": "URLorEmpty" "type": "URLorEmpty"
}, },
......
...@@ -456,6 +456,16 @@ const POLICIES_TESTS = [ ...@@ -456,6 +456,16 @@ const POLICIES_TESTS = [
"browser.newtabpage.activity-stream.feeds.section.topstories": false, "browser.newtabpage.activity-stream.feeds.section.topstories": false,
}, },
}, },
// POLICY: OfferToSaveLoginsDefault
{
policies: {
OfferToSaveLoginsDefault: false,
},
unlockedPrefs: {
"signon.rememberSignons": false,
},
},
]; ];
add_task(async function test_policy_simple_prefs() { add_task(async function test_policy_simple_prefs() {
......
...@@ -115,6 +115,8 @@ policy-NoDefaultBookmarks = Disable creation of the default bookmarks bundled wi ...@@ -115,6 +115,8 @@ policy-NoDefaultBookmarks = Disable creation of the default bookmarks bundled wi
policy-OfferToSaveLogins = Enforce the setting to allow { -brand-short-name } to offer to remember saved logins and passwords. Both true and false values are accepted. policy-OfferToSaveLogins = Enforce the setting to allow { -brand-short-name } to offer to remember saved logins and passwords. Both true and false values are accepted.
policy-OfferToSaveLoginsDefault = Set the default value for allowing { -brand-short-name } to offer to remember saved logins and passwords. Both true and false values are accepted.
policy-OverrideFirstRunPage = Override the first run page. Set this policy to blank if you want to disable the first run page. policy-OverrideFirstRunPage = Override the first run page. Set this policy to blank if you want to disable the first run page.
policy-OverridePostUpdatePage = Override the post-update “What’s New” page. Set this policy to blank if you want to disable the post-update page. policy-OverridePostUpdatePage = Override the post-update “What’s New” page. Set this policy to blank if you want to disable the post-update page.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment