Bug 1773771 - Add GoToIntranetSiteForSingleWordEntryInAddressBar enterprise policy r=mkaply,flod

Differential Revision: https://phabricator.services.mozilla.com/D148952
This commit is contained in:
James Teow 2022-06-30 16:21:44 +00:00
parent 6abc655018
commit ee7e4a5455
4 changed files with 22 additions and 0 deletions

View File

@ -1300,6 +1300,12 @@ var Policies = {
},
},
GoToIntranetSiteForSingleWordEntryInAddressBar: {
onBeforeAddons(manager, param) {
setAndLockPref("browser.fixup.dns_first_for_single_words", param);
},
},
Handlers: {
onBeforeAddons(manager, param) {
if ("mimeTypes" in param) {

View File

@ -627,6 +627,10 @@
}
},
"GoToIntranetSiteForSingleWordEntryInAddressBar": {
"type": "boolean"
},
"Handlers": {
"type": ["object", "JSON"],
"patternProperties": {

View File

@ -104,6 +104,16 @@ const POLICIES_TESTS = [
},
},
// POLICY: GoToIntranetSiteForSingleWordEntryInAddressBar
{
policies: {
GoToIntranetSiteForSingleWordEntryInAddressBar: true,
},
lockedPrefs: {
"browser.fixup.dns_first_for_single_words": true,
},
},
// POLICY: OverrideFirstRunPage
{
policies: { OverrideFirstRunPage: "https://www.example.com/" },

View File

@ -119,6 +119,8 @@ policy-FirefoxHome = Configure Firefox Home.
policy-FlashPlugin = Allow or deny usage of the Flash plugin.
policy-GoToIntranetSiteForSingleWordEntryInAddressBar = Force direct intranet site navigation instead of searching when typing single word entries in the address bar.
policy-Handlers = Configure default application handlers.
policy-HardwareAcceleration = If false, turn off hardware acceleration.