Commit Graph

565 Commits

Author SHA1 Message Date
Cosmin Sabou
2d25f0942c Backed out changeset 5521f4a9012d (bug 1440578) for ESlint failure on browser/components/enterprisepolicies/Policies.jsm 2018-03-08 06:17:19 +02:00
YUKI Piro Hiroshi
910c051f91 Bug 1440578 - Policy: "block" under "cookies" should clear already-stored cookies. r=felipc, r=jdm 2018-03-05 19:36:00 -05:00
Andreea Pavel
fabfa22f25 Backed out 2 changesets (bug 1440574) for failing browser chrome at browser/components/enterprisepolicies/tests/browser/browser_policy_disable_feedback_commands.js on a CLOSED TREE
Backed out changeset 3a87db9282d8 (bug 1440574)
Backed out changeset 7afca6992b72 (bug 1440574)
2018-03-07 17:43:04 +02:00
Sebastian Hengst
41f650437a Bug 1440574 - Policy: Disable commands to send feedback: Fix eslint errors by adding semicolons. r=eslint-fix 2018-03-07 17:24:28 +02:00
YUKI Piro Hiroshi
81f15132df Bug 1440574 - Policy: Disable commands to send feedback. r=felipc 2018-03-05 19:13:00 -05:00
Kirk Steuber
f7feb9cd1a Bug 1436851 - Add test for enterprise policy to disable system addon updates r=Felipe,rhelmer
MozReview-Commit-ID: K3NtpeVLFf4
2018-02-14 15:15:02 -08:00
Felipe Gomes
b1327a0095 Bug 1436840 - Policy engine: Add support for enterprise-only policies. r=mkaply
Policies annotated with enterprise_only in the schema will only be allowed to run on ESR or on pre-release channels (for testing)

MozReview-Commit-ID: 4tF8t1ozyVp
2018-03-05 20:46:54 -03:00
Felipe Gomes
db353634cb Bug 1432906 - Display notice in about:preferences when Policies are in use. r=gandalf,jaws
MozReview-Commit-ID: 83UUY9DmK2K
2018-03-05 14:18:44 -03:00
Felipe Gomes
652588d608 Bug 1429151 - Policy: Disable Sync. r=markh
MozReview-Commit-ID: Eg6hg7GNMod
2018-03-04 22:12:15 -03:00
Mike Cooper
24be7408a3 Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
MozReview-Commit-ID: 8i9Jrq8rj3W
2018-03-02 11:18:59 -08:00
Mike Cooper
8fa569ae7b Bug 1436113 - Part 1: Move browser/extensions/shield-recipe-client to toolkit/components/normandy r=Gijs
MozReview-Commit-ID: LidgzhI4Z7h
2018-02-28 14:55:47 -08:00
Kirk Steuber
7eb2c987a7 Bug 1429186 - Create an enterprise policy to set the homepage and, optionally, lock it r=Felipe
Also creates the runOncePerModification helper function in Policies.jsm and fixes a minor bug in the runOnce helper function also in Policies.jsm

MozReview-Commit-ID: HDgMmhHI1D0
2018-02-27 09:13:16 -08:00
Michael Kaply
97e2f5fdd4 Bug 1432355 - Add a policy to disable private browsing. r=Gijs
MozReview-Commit-ID: AprbL6usEv5
2018-03-01 10:20:38 -06:00
Narcis Beleuzu
4f1c6ef656 Backed out 2 changesets (bug 1436113) for bc failures on browser_about_studies.js
Backed out changeset 8ccf1c3f156f (bug 1436113)
Backed out changeset 18a7f08a6cdc (bug 1436113)
2018-03-01 06:44:44 +02:00
Mike Cooper
bc5e5186c7 Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
This includes simplifiying the startup process, migrating to a new
pref namespace, renaming files, and updating references to the code.

MozReview-Commit-ID: A2cYpsjCOAE
2018-02-21 15:02:04 -08:00
Mike Cooper
9b926958fe Bug 1436113 - Part 1: Move browser/extensions/shield-recipe-client to toolkit/components/normandy r=Gijs
MozReview-Commit-ID: LidgzhI4Z7h
2018-02-28 14:55:47 -08:00
Narcis Beleuzu
cfe00b0218 Backed out 2 changesets (bug 1436113) for ESlint failure on Normandy.jsm. CLOSED TREE
Backed out changeset 0a2b1c60cec5 (bug 1436113)
Backed out changeset 88dd78f248e2 (bug 1436113)
2018-03-01 00:37:47 +02:00
Mike Cooper
98ab0ed263 Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
This includes simplifiying the startup process, migrating to a new
pref namespace, renaming files, and updating references to the code.

MozReview-Commit-ID: A2cYpsjCOAE
2018-02-21 15:02:04 -08:00
Mike Cooper
6752f721a3 Bug 1436113 - Part 1: Move browser/extensions/shield-recipe-client to toolkit/components/normandy r=Gijs
MozReview-Commit-ID: LidgzhI4Z7h
2018-02-28 09:40:47 -08:00
Sebastian Hengst
b120b7fb67 merge mozilla-inbound to mozilla-central. a=merge 2018-02-28 12:54:12 +02:00
Tooru Fujisawa
582b88b191 Bug 1441388 - Use BrowserTestUtils.waitForEvent in browser/components/enterprisepolicies/tests/browser/browser_policy_disable_masterpassword.js r=keeler 2018-02-28 10:36:44 +09:00
Kirk Steuber
31831b2f7d Bug 1438925 - Select "Never check for updates" in Preferences UI when DisableAppUpdate policy is active r=jaws
MozReview-Commit-ID: 51ZaamngdIP
2018-02-16 15:48:49 -08:00
Felipe Gomes
497c9604ed Bug 1433290 - Remove Block parameter for InstallAddons and Popup policies. r=bytesized
The Block parameters for the InstallAddons policy doesn't make sense because the addons install process has two behaviors:
- Allow
- Ask

So a website that is not explictly in the allow list will always ask for permission before installing an addon. If a sysadmin wants to fully block addon install they can use a different policy.

Similarly, for Popups it's the same thing. There is a conceptually valid use case in that someone can change the _default_ behavior to always allow popups, and then the Block list becomes the allow exceptions to Ask. But that's a corner case that we don't need to support now, since allowing popups globally on the web is a pretty crazy choice.

MozReview-Commit-ID: EzclfLNDgUo
2018-02-26 17:09:43 -03:00
Julian Descottes
798dfbf6b9 Bug 1429185 - Implement policy for disabling devtools;r=Felipe
MozReview-Commit-ID: D6ZvP7vWg4O
2018-02-23 18:55:53 +01:00
Felipe Gomes
2e3183082c Bug 1440932 - Implement a runOnce helper function for policies. r=bytesized
MozReview-Commit-ID: HOTrRIfknmn
2018-02-26 15:42:40 -03:00
Felipe Gomes
365690c112 Bug 1428924 - Policy: Allow creation of bookmarks in the Bookmarks toolbar, Menu, or a folder inside them. r=mak
MozReview-Commit-ID: 7w8kKypShgj
2018-02-23 21:56:43 -03:00
Andreea Pavel
487427d3a4 Backed out changeset 771e1f428eea (bug 1428924) for failing mochitest browser chrome at browser/components/enterprisepolicies/tests/browser/browser_policy_bookmarks.js on a CLOSED TREE 2018-02-23 02:00:58 +02:00
Felipe Gomes
e549744c77 Bug 1428924 - Policy: Allow creation of bookmarks in the Bookmarks toolbar, Menu, or a folder inside them. r=mak
MozReview-Commit-ID: 2k2Cl10AV9C
2018-02-22 17:47:50 -03:00
Felipe Gomes
6728884cc5 Bug 1429163 - Policy: Disable Pocket. r=nateweiner 2018-02-22 00:46:48 -03:00
Felipe Gomes
b06ce05ebe Bug 1440194 - Sort list of policies alphabetically. r=me 2018-02-22 00:46:23 -03:00
Felipe Gomes
73d78de3ca Bug 1440030 - CamelCase existing policies to match industry standard. r=mkaply 2018-02-22 00:46:09 -03:00
Csoregi Natalia
3b435f7331 Merge inbound to mozilla-central. a=merge 2018-02-21 23:50:20 +02:00
Felipe Gomes
1352891432 Bug 1429148 - Policy: Don't let a Master Password to be set. r=keeler
MozReview-Commit-ID: 8Adqg0KU7cZ
2018-02-20 20:46:11 -03:00
Geoff Brown
7f25c62638 Bug 1433485 - Update test prefs for telemetry; r=mythmon,dexter
Set pref datareporting.healthreport.uploadEnabled=false during mochitests
and set pref toolkit.telemetry.server to a dummy server during reftests
(uploadEnabled was already false for reftest and the telemetry server was
already set for mochitests - now these prefs are consistent).

Some mochitests failed with this change; they are updated to
set datareporting.healthreport.uploadEnabled where required.
2018-02-21 10:57:04 -07:00
Felipe Gomes
3709020111 Bug 1429148 - Policy: Enforce choice for the Remember Passwords setting. r=MattN
MozReview-Commit-ID: 3acY4QwQWGb
2018-02-14 23:50:36 -02:00
Felipe Gomes
3bfa120599 Bug 1439418 - Policy engine - Properly support optional and required fields in the schema. r=mossop
MozReview-Commit-ID: 6nYX5FiKUxP
2018-02-19 16:27:55 -03:00
Kirk Steuber
16f5333211 Bug 1429123 - Create an enterprise policy to prevent access to the Add-ons manager (about:addons) r=bz,Felipe
MozReview-Commit-ID: KslHBo0kvvu
2018-02-06 10:08:13 -08:00
Kirk Steuber
88d7984fb6 Bug 1429176 - Add enterprise policy to prevent access to about:support r=bz,Felipe
MozReview-Commit-ID: A9hDbOOalng
2018-01-29 09:44:52 -08:00
Kirk Steuber
ebe3828e5b Bug 1429176 - Add enterprise policy to prevent access to about:profiles r=bz,Felipe
MozReview-Commit-ID: G8qPCcn9w1r
2018-01-26 11:00:59 -08:00
Kirk Steuber
cc11c81ff1 Bug 1421707 - Implement a system for disabling about: pages via Policy r=bz,Felipe
Additionally adds the enterprise policy for disabling about:config.

MozReview-Commit-ID: 7bT8eV3tRnN
2018-02-06 10:00:56 -08:00
Kirk Steuber
bdc0101391 Bug 1429150 - Create an enterprise policy to prevent the application from checking for app updates r=Felipe
MozReview-Commit-ID: 4K4U4AJw7V1
2018-02-07 09:49:37 -08:00
Cosmin Sabou
83bfbe8ae5 Backed out 3 changesets (bug 1429150) for Android mochitest failures on RobocopTestRunner on a CLOSED TREE.
Backed out changeset dbdd43825f46 (bug 1429150)
Backed out changeset 23a86891fdaf (bug 1429150)
Backed out changeset 1f2d0e869605 (bug 1429150)
2018-02-09 00:39:23 +02:00
Kirk Steuber
3aa5eb7153 Bug 1429150 - Create an enterprise policy to prevent the application from checking for app updates r=Felipe
MozReview-Commit-ID: 4K4U4AJw7V1
2018-02-07 09:49:37 -08:00
Felipe Gomes
6bc9d1660a Bug 1429144 - Policy: Don't remember search and form history. r=MattN
MozReview-Commit-ID: GVHVe724dvv
2018-02-07 20:37:55 -02:00
Felipe Gomes
03d550a59a Bug 1436377 - Policy engine - Implement URLorEmpty parameter type. r=Mossop
MozReview-Commit-ID: 96GqykNb3Zr
2018-02-07 20:37:55 -02:00
Felipe Gomes
93efb69a38 Bug 1433271 - Don't fail policy validation if an array inside a object is missing. r=Mossop
A top-level array (i.e., if a policy directly requires an array) won't be affected by this problem, because if the array is missing, that means that that policy is not present, so it will be ignored.

However, this can affect an array that is expected inside another object, for more complex policy types (like the popups permission which accepts both an 'allow' and a 'block' array of URLs.

In the future, we should implement the 'required' property as defined by the JSON-Schema standard, but there's not a strong use case for it yet, so let's do the simple solution for now

MozReview-Commit-ID: 4MTBTsPYlX8
2018-02-07 20:37:55 -02:00
Felipe Gomes
94e24fd28f Bug 1436396 - Policy engine - Make boolean type accept 0 and 1 as valid values. r=mkaply
MozReview-Commit-ID: 1dqRknWy6Xi
2018-02-07 20:37:54 -02:00
Felipe Gomes
9861379d3a Bug 1435977 - Make policies test begin and end with the police engine inactive. r=Gijs
Some tests do a sanity check for features at the beginning. This works fine for a single test, and also from one test to another which are usually activating different policies. But this fails when the same test runs more than once, because the engine was left at the end in a state where that same policy was active.

Note that this does not cover all the clean-up that a test must do to properly run more than once. For example, locked prefs are left locked, because the engine does support reversing all the policy code that ran. We might add more auto-reversal support in the future, but for now it's up to each test.

MozReview-Commit-ID: KZ2LeKFTC0A
2018-02-07 20:37:54 -02:00
Felipe Gomes
43dccc37e4 Bug 1429162 - Policy: Disable Shield. r=mythmon
MozReview-Commit-ID: GoWBBWN3f26
2018-02-06 00:30:23 -02:00
Noemi Erli
4b13749b12 Backed out 2 changesets (bug 1432890, bug 1429162) for failing in dom/canvas/test/webgl-conf/generated/ on a CLOSED TREE
Backed out changeset 05b29220fc4d (bug 1429162)
Backed out changeset ee868e1ec636 (bug 1432890)
2018-02-06 07:35:08 +02:00