Commit bc0d989c authored by Felipe Gomes's avatar Felipe Gomes
Browse files

Bug 14291440 - Policy: Don't remember search and form history. r=MattN

MozReview-Commit-ID: GVHVe724dvv
parent 5be5d042
......@@ -95,6 +95,14 @@ this.Policies = {
}
},
"DisableFormHistory": {
onBeforeUIStartup(manager, param) {
if (param == true) {
setAndLockPref("browser.formfill.enable", false);
}
}
},
"dont_check_default_browser": {
onBeforeUIStartup(manager, param) {
setAndLockPref("browser.shell.checkDefaultBrowser", false);
......
......@@ -50,6 +50,14 @@
"enum": [true]
},
"DisableFormHistory": {
"description": "Don't remember search and form history.",
"first_available": "60.0",
"type": "boolean",
"enum": [true]
},
"dont_check_default_browser": {
"description": "Don't check for the default browser on startup.",
"first_available": "60.0",
......
......@@ -15,6 +15,7 @@ support-files =
[browser_policy_default_browser_check.js]
[browser_policy_disable_fxscreenshots.js]
[browser_policy_display_bookmarks.js]
[browser_policy_disable_formhistory.js]
[browser_policy_display_menu.js]
[browser_policy_disable_shield.js]
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function test_policy_disable_formhistory() {
await setupPolicyEngineWithJson({
"policies": {
"DisableFormHistory": true
}
});
is(Services.prefs.getBoolPref("browser.formfill.enable"), false, "FormHistory has been disabled");
is(Services.prefs.prefIsLocked("browser.formfill.enable"), true, "FormHistory pref has been locked");
});
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