Commit Graph

73 Commits

Author SHA1 Message Date
Dave Townsend
a0c83bc943 Bug 1864896: Autofix unused function arguments (browser). r=webcompat-reviewers,mconley,fxview-reviewers,desktop-theme-reviewers,omc-reviewers,migration-reviewers,twisniewski,aminomancer,dao,sclements,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203005
2024-03-19 09:36:35 +00:00
Mark Banner
3284e4653e Bug 1884623 - Update Enterprise Policy related logging and modules to avoid jsm references. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D204181
2024-03-11 15:26:28 +00:00
David P
ffa612e427 Bug 1882601: Add content analysis config to enterprise policy r=gstoll,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D203339
2024-03-08 19:37:04 +00:00
David P
7c9f833074 Bug 1862066: Allow CA enabled when pref is set by enterprise policy or is set alongside command line arg r=gstoll,mkaply,fluent-reviewers,bolsson
Content analysis should not be turned on without an enterprise policy
requiring it or the -allow-content-analysis command-line argument is passed
(which is intended to be used for development).

Differential Revision: https://phabricator.services.mozilla.com/D203331
2024-03-08 18:15:28 +00:00
Mike Kaply
19484d525c Bug 1677524 - Add policies for credit card and address autofill. r=sgalich,fluent-reviewers,bolsson,dimi
Differential Revision: https://phabricator.services.mozilla.com/D202733
2024-03-05 15:25:16 +00:00
Gregory Pappas
b8a57ea6f0 Bug 1708289 - Implement AllowFileSelectionDialogs policy r=fluent-reviewers,mkaply,emilio,Gijs,bolsson,win-reviewers,rkraesig
Differential Revision: https://phabricator.services.mozilla.com/D199328
2024-02-01 00:48:24 +00:00
Mike Kaply
4c6c297a4d Bug 1868669 - Add Fallback to DOH policy. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D197666
2024-01-29 13:27:43 +00:00
Tom Schuster
694c3e8534 Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D197794
2024-01-08 15:47:42 +00:00
Mike Kaply
64a15745de Bug 1872267 - Allow setting an explicit preference type in policy. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D197534
2024-01-03 16:28:38 +00:00
Mike Kaply
8880cfe389 Bug 1855314 - Don't show translations first run if FeatureRecommendations policy is false. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D197079
2023-12-21 21:57:11 +00:00
Mike Kaply
e6dba2f53b Bug 1868137 - Allow setting alerts. prefs via policy. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D195731
2023-12-07 13:45:11 +00:00
Mike Conley
4936b01244 Bug 1715158 - Remove Snippets enterprise policy support. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D195448
2023-12-06 16:15:17 +00:00
Mark Banner
5e07c3f484 Bug 1861865 - Fix ESLint valid-jsdoc issues in enterprise policy code. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D192156
2023-11-01 17:20:39 +00:00
Greg Stoll
56b1220f60 Bug 1811076: Part 2 - Create nsIContentAnalysis and command-line argument
Add the protocol buffer and client side of the SDK to the Gecko build.  This includes prefs to enable/disable/configure content analysis. In addition to the pref, content analysis requires a command-line argument "-allow-content-analysis" to be turned on; this is for security reasons until we make sure that the pref can only be turned on by enterprise policies.

Differential Revision: https://phabricator.services.mozilla.com/D189568
2023-10-30 20:04:00 +00:00
Mike Kaply
690510c1ab Bug 1860856 - Allow cert/devices dialogs to be disabled by policy. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D191770
2023-10-25 12:49:40 +00:00
Mike Kaply
e91b38a068 Bug 1859595 - Allow preferences that begin with pref. in policy. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D191209
2023-10-18 18:49:53 +00:00
Gregory Pappas
7fd84857a4 Bug 1854298 - Implement PrintingEnabled policy r=emilio,mkaply,Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188792
2023-10-03 21:48:34 +00:00
Molly Howell
ac135e9358 Bug 1852151 - Add a policy equivalent to DisableFirefoxAccounts but without being called Firefox. r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D187726
2023-09-12 18:14:08 +00:00
Mike Kaply
bd6e5e6c66 Bug 1749535 - Add policy for Firefox Suggest. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D186241
2023-08-16 21:08:06 +00:00
Mike Kaply
34b6897db6 Bug 1839442 - Add ssl negotiation pref to policy. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D185960
2023-08-15 19:08:29 +00:00
Mike Kaply
4d6cedeb24 Bug 1772409 - Allow setting xpinstall.whitelist.required via policy. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185959
2023-08-11 15:16:50 +00:00
Gregory Pappas
e9950eccfd Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Mike Kaply
0b16097473 Bug 1772503 - Keep policy locked preferences locked. r=mhowell,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D181100
2023-06-20 12:17:49 +00:00
Sandor Molnar
5cd6d50a7b Backed out changeset 208ba0efbefb (bug 1772503) for causing xpc failures in netwerk/test/unit/test_trr_enterprise_policy.js CLOSED TREE 2023-06-15 21:06:56 +03:00
Mike Kaply
0350e1278c Bug 1772503 - Keep policy locked preferences locked. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D181100
2023-06-15 16:01:20 +00:00
Rob Wu
bad812f243 Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
This patch was generated as follows:

Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.

The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.

1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.

Commands:

```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^  # and verify that the removed lines are ok.
git commit -va  # one last review to verify correctness of whole patch.
git rebase -i HEAD~3  # drop the WIP + reverted commit, pick only the last.
```

`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.

Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Katherine Patenio
99d830d71b Bug 1830418 - Convert browser/components/customizableui/CustomizableUI.jsm to ESM r=Standard8,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D177423
2023-05-24 15:52:34 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Gregory Pappas
15b24de236 Bug 1833185 - Remove FlashPlugin policy r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D178080
2023-05-16 13:28:57 +00:00
Mike Kaply
587415286b Bug 1829197 - Add support for deleting PKCS #11 modules via policy. r=keeler,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176078
2023-04-24 14:51:32 +00:00
Dana Keeler
5b3650176a Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 17:49:09 +00:00
Sandor Molnar
2c92f3837d Backed out changeset 53da6e0fc159 (bug 1828968) for causing xpc failures in services/settings/test/unit/test_attachments_downloader.js CLOSED TREE 2023-04-21 21:39:24 +03:00
Dana Keeler
9a82a03fdf Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 17:49:09 +00:00
Cosmin Sabou
856ed96d87 Backed out changeset dfee2337391b (bug 1828968) for causing windows build bustages. CLOSED TREE 2023-04-21 03:20:10 +03:00
Dana Keeler
1f8bfc0c3f Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 00:01:06 +00:00
Mike Kaply
cd1c35c2aa Bug 1771990 - Add OCSP to allow security prefs in policy. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D174924
2023-04-10 18:05:34 +00:00
Mike Kaply
9f61099ced Bug 1821068 - Allow policy to set initial container entries. r=sdk,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173536
2023-04-05 20:17:36 +00:00
Calixte
f6bd0161f8 Bug 1824610 - EMSification of pdf.js r=Standard8,pdfjs-reviewers,geckoview-reviewers,marco,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173674
2023-03-28 09:18:58 +00:00
Mike Kaply
c5bdf23e8b Bug 1820195 - Special case pdfjs preferences in policy. r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D171598
2023-03-07 15:17:45 +00:00
Mike Kaply
32165f45ca Bug 1819744 - Allow xpinstall.signatures.required to be set via policy on ESR. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D171398
2023-03-06 14:34:10 +00:00
Tim Huang
7113e71ea4 Bug 1818313 - Add a enterprisepolicy for the email tracking protection. r=mkaply
This patch adds a "EmailTracking" enterprisepolicy under the
EnableTrackingProtection to control the email tracking protection.

Differential Revision: https://phabricator.services.mozilla.com/D170734
2023-02-28 09:12:13 +00:00
Noemi Erli
b47a332c25 Backed out 2 changesets (bug 1818313, bug 1818583) for causing bustage in UrlClassifierFeatureEmailTrackingProtection.cpp CLOSED TREE
Backed out changeset 18e789b52610 (bug 1818313)
Backed out changeset 61ba31a1183a (bug 1818583)
2023-02-24 23:53:11 +02:00
Tim Huang
aeb1a6e9ea Bug 1818313 - Add a enterprisepolicy for the email tracking protection. r=mkaply
This patch adds a "EmailTracking" enterprisepolicy under the
EnableTrackingProtection to control the email tracking protection.

Differential Revision: https://phabricator.services.mozilla.com/D170734
2023-02-24 20:07:48 +00:00
Mark Banner
c67ad27193 Bug 1812973 - Add xulStore interface to ESLint's services.json. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D168042
2023-01-27 10:00:31 +00:00
Mike Kaply
fe7793f70b Bug 1807008 - Use enumerator directly to enumerate security devices. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D165396
2023-01-04 21:17:50 +00:00
Greg Stoll
88d5074681 Bug 1744362 - Part 9: update Enterprise policies schema r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D164491
2022-12-30 20:10:05 +00:00
Butkovits Atila
4ce15bacc7 Backed out 12 changesets (bug 1744362) for causing build bustages.
Backed out changeset 3f63f21115e2 (bug 1744362)
Backed out changeset 0df403e8f6ba (bug 1744362)
Backed out changeset 34f51e6aee96 (bug 1744362)
Backed out changeset 39ff51df4a45 (bug 1744362)
Backed out changeset da9133df4cd4 (bug 1744362)
Backed out changeset 315c57948afa (bug 1744362)
Backed out changeset a2d8f526e0ff (bug 1744362)
Backed out changeset 401ebbc0159d (bug 1744362)
Backed out changeset 2911fe484cc3 (bug 1744362)
Backed out changeset d1f4b99f352b (bug 1744362)
Backed out changeset 0a3ce8ea039e (bug 1744362)
Backed out changeset ab1292118c00 (bug 1744362)
2022-12-27 22:54:30 +02:00
Greg Stoll
d32fd94a91 Bug 1744362 - Part 9: update Enterprise policies schema r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D164491
2022-12-27 20:06:42 +00:00
Stanca Serban
80124f678a Backed out 11 changesets (bug 1744362) for causing multiple failures and build bustages. CLOSED TREE
Backed out changeset 4b2e3689cea0 (bug 1744362)
Backed out changeset cf1db931c466 (bug 1744362)
Backed out changeset 8c87571dbb3e (bug 1744362)
Backed out changeset 8b50446f91e5 (bug 1744362)
Backed out changeset 848632184f56 (bug 1744362)
Backed out changeset acfdb2bcaa9f (bug 1744362)
Backed out changeset 80b67f7ea109 (bug 1744362)
Backed out changeset c88902b60d1f (bug 1744362)
Backed out changeset 438f74bb5b7c (bug 1744362)
Backed out changeset 704a4150d210 (bug 1744362)
Backed out changeset 1dd7e7c111da (bug 1744362)
2022-12-27 16:25:04 +02:00