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

Bug 1457146 - Add policy for turning the new tab page off r=Felipe,flod

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

--HG--
extra : moz-landing-system : lando
parent 093defcb
......@@ -680,6 +680,12 @@ var Policies = {
},
},
"NewTabPage": {
onBeforeAddons(manager, param) {
setAndLockPref("browser.newtabpage.enabled", param);
},
},
"NoDefaultBookmarks": {
onProfileAfterChange(manager, param) {
if (param) {
......
......@@ -393,6 +393,10 @@
"type": "boolean"
},
"NewTabPage": {
"type": "boolean"
},
"NoDefaultBookmarks": {
"type": "boolean"
},
......
......@@ -268,6 +268,16 @@ const POLICIES_TESTS = [
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features": false,
},
},
// POLICY: NewTabPage
{
policies: {
"NewTabPage": false,
},
lockedPrefs: {
"browser.newtabpage.enabled": false,
},
},
];
add_task(async function test_policy_remember_passwords() {
......
......@@ -99,6 +99,8 @@ policy-InstallAddonsPermission = Allow certain websites to install add-ons.
policy-NetworkPrediction = Enable or disable network prediction (DNS prefetching).
policy-NewTabPage = Enable or disable the New Tab page.
policy-NoDefaultBookmarks = Disable creation of the default bookmarks bundled with { -brand-short-name }, and the Smart Bookmarks (Most Visited, Recent Tags). Note: this policy is only effective if used before the first run of the profile.
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.
......
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