Commit Graph

189 Commits

Author SHA1 Message Date
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
Jared Wein
d5ab8bee00 Bug 1436575 - Manually fix the errors from no-compare-against-boolean-literal that the autofix couldn't change. r=standard8
MozReview-Commit-ID: 6NtfU76sPKv
2018-02-08 13:35:53 -05:00
Jared Wein
db0a992247 Bug 1436575 - Autofix errors from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 66sXxnOWDgw
2018-02-08 12:57:31 -05: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
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Felipe Gomes
43dccc37e4 Bug 1429162 - Policy: Disable Shield. r=mythmon
MozReview-Commit-ID: GoWBBWN3f26
2018-02-06 00:30:23 -02:00
Felipe Gomes
6221ac88fe Bug 1432890 - Refactor the Policies JSON code out of the Policies Manager object in order to support other policies sources. r=Mossop
MozReview-Commit-ID: L6SIgHpp3Yh
2018-02-06 00:28:59 -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
Felipe Gomes
3514c255e1 Bug 1429162 - Policy: Disable Shield. r=mythmon
MozReview-Commit-ID: GoWBBWN3f26
2018-02-06 00:30:23 -02:00
Felipe Gomes
c233c8796f Bug 1432890 - Refactor the Policies JSON code out of the Policies Manager object in order to support other policies sources. r=Mossop
MozReview-Commit-ID: L6SIgHpp3Yh
2018-02-06 00:28:59 -02:00
Kirk Steuber
6777444fc6 Bug 1434985 - Convert EnterprisePolicies.disallowFeature uses to camelcase r=Felipe
MozReview-Commit-ID: GDUSsEB6OYn
2018-02-01 11:20:26 -08:00
Felipe Gomes
06b378c649 Bug 1429184 - Policy: Disable Firefox Screenshots. r=ianbicking
MozReview-Commit-ID: LU70vv9e0q7
2018-02-01 17:25:04 -02:00
Felipe Gomes
8082cfc91c Bug 1434164 - Use ChromeUtils.defineModuleGetter. r=me ON A CLOSED TREE
MozReview-Commit-ID: GJ5UomDMgvU
2018-01-31 19:44:21 -02:00
Felipe Gomes
b39ddeaa94 Bug 1434164 - Support inlining policies.json file on test files. r=Gijs
MozReview-Commit-ID: LP8M6QB6I04
2018-01-31 19:13:48 -02:00
Felipe Gomes
07c3fe4bc2 Bug 1433950 - Re-license enterprise policies tests as CC0. r=gerv
MozReview-Commit-ID: B29SV9JmjKg
2018-01-31 19:13:43 -02:00
Sebastian Hengst
0d326c178e merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Kirk Steuber
27785815e4 Bug 1429129 - Add enterprise policy to remove "Set As Desktop Background" context menu option r=Felipe,Gijs
MozReview-Commit-ID: EdVKcujYUh4
2018-01-29 13:24:26 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Kirk Steuber
8e78394ce6 Bug 1429120 - Add enterprise policy to display the bookmarks toolbar by default r=Felipe,Gijs
MozReview-Commit-ID: EZTAXdd9rN1
2018-01-29 10:20:52 -08:00
Kirk Steuber
65434d004b Bug 1429120 - Create an enterprise policy to display the menu bar by default r=Felipe,Gijs
MozReview-Commit-ID: EJvtw5nbqaV
2018-01-29 10:14:05 -08:00
Felipe Gomes
5d6c434fea Bug 1428922 - Implement helper function to support various permissions-type policies, and use it to implement the Flash, Cookies, Install-Addons and Popups policy. r=mystor
MozReview-Commit-ID: Wy1VDEfvqs
2018-01-24 01:07:22 -02:00
Felipe Gomes
81a9d11214 Bug 1429141 - Fix test when it runs twice in a row, e.g. on test-verify. r=me
MozReview-Commit-ID: 7fBK71Kc1hd
2018-01-22 22:20:21 -02:00
Felipe Gomes
eca7c8be66 Bug 1429141 - Policy: Don't check if Firefox is the default browser on startup. r=Gijs
MozReview-Commit-ID: DMpGbNkhRN6
2018-01-22 20:32:12 -02:00
Felipe Gomes
6ec3b0d844 Bug 1428923 - Implement setDefaultPrefAndLock helper function needed to implement several policies. r=mkaply
MozReview-Commit-ID: 5RcozfmAFWR
2018-01-22 20:32:07 -02:00
Felipe Gomes
e03c7564ff Bug 1419102 - Implement the Enterprise Policies feature to provide enterprise users with easier control and setup of deployments of Firefox. r=Mossop
This feature is currently disabled behind a pref, but this pref will be removed when we're green to release it.

MozReview-Commit-ID: 3ZH2UJVdtC0
2018-01-22 17:01:48 -02:00