Commit Graph

172 Commits

Author SHA1 Message Date
Henri Sivonen
08e5095396 Bug 1913022 - Restore the network.IDN_show_punycode pref. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D219186
2024-08-15 13:31:09 +00:00
tannal
deef8d3338 Bug 1911935 - Remove network.IDN_show_punycode pref r=gregp,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D219026
2024-08-13 19:28:23 +00:00
Michael Kaply
babb0c7bdf Bug 1892961 - Add support for addons that can only be installed via policy. r=rpl,fluent-reviewers,bolsson,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D211987
2024-06-13 21:03:46 +00:00
John Schanck
99387e9915 Bug 1892528 - part 3: update PostQuantumKeyAgreementEnabled enterprise policy. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D211300
2024-06-05 16:51:38 +00:00
Manuel Bucher
acacdfe55c Bug 1741375 - Proxy DNS by default when using SOCKS v5 r=necko-reviewers,extension-reviewers,kershaw,perftest-reviewers,robwu,sparky
Initially reported and discussed in Bug 610896.

The simple solution of just flipping the pref `network.proxy.socks_remote_dns`
is risky due to potentially breaking SOCKS4 proxy users.  Proxying
DNS on SOCKS4 isn't supported.  Therefore we speak the incompatible
SOCKS4a protocol when `socks_remote_dns` is enabled, potentially
breaking users setup.

To keep backwards compatibility on SOCKS4 proxy users, that don't have
SOCKS4a support, the pref `network.proxy.socks_remote_dns` is split into
two prefs:

* `network.proxy.socks_remote_dns`: remote DNS for SOCKS4
* `network.proxy.socks5_remote_dns`: remote DNS for SOCKS5.

This way we proxy DNS by default on SOCKS5 while keeping user settings
on SOCKS4.  This is a similar approach to the one described in
[Bug 610896 comment 17].

Proxying DNS in SOCKS4 by default is desireable (See [Bug 610896 comment 11]),
but out of scope for this patch.  [Telemetry] on proxy usage by socks
version indicated that changing the default for SOCKS4 is likely break
some users setup and needs to be taken with more care.

The default values of [proxyDNS] now defaults to true for SOCKS5 proxies.
When creating nsIProxyInfo objects of SOCKS4 proxies, the default value
false is kept.  Setting proxyDNS affects both SOCKS4 and SOCKS5 proxy by
modifying both `socks_remote_dns` and `socks5_remote_dns`.  Therefore no
extension breakage is expected.

The enterprise policy can also modify the new pref
`network.proxy.socks5_remote_dns`.

Follow up bugs filed while implementing:

* Bug 1890542 - Also disable Prefetch non-manual configurations of socks
                proxy
* Bug 1890554 - Use `ProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST` flag in
                `nsHttpChannel::GetProxyDNSStrategy`
* Bug 1890549 - nsHttpChannel implementation DNS resolve strategy for
                proxies incomplete
* Bug 1893670 - Proxy DNS by default for SOCK4 proxies. Defaulting to
                SOCKS4a

[Bug 610896 comment 17]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c17
[Bug 610896 comment 11]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c11
[Telemetry]: https://bugzilla.mozilla.org/show_bug.cgi?id=1741375#c27
[proxyDNS]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/settings#proxydns

Differential Revision: https://phabricator.services.mozilla.com/D207532
2024-05-21 11:55:26 +00:00
Mike Kaply
b1b34b41e1 Bug 1895341 - Add install_type "admin" to the management API. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D209582
2024-05-09 19:30:08 +00:00
Tamas Szentpeteri
2a2d82a8bc Backed out changeset 9d36e2074dc3 (bug 1895341) for causing xpcshell failures in test_extensionsettings.js. CLOSED TREE 2024-05-09 18:50:20 +03:00
Mike Kaply
467bf65b00 Bug 1888548 - Add policies for HTTPS only mode. r=freddyb,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D208195
2024-05-09 15:18:00 +00:00
Mike Kaply
7e49cc0000 Bug 1895341 - Add install_type "admin" to the management API. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D209582
2024-05-09 14:58:53 +00:00
John Schanck
b60a6743c0 Bug 1894068 - add a policy for post-quantum key agreement. r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D208934
2024-05-03 04:01:25 +00:00
Tamas Szentpeteri
54f0c33033 Backed out changeset 47020ae49c1d (bug 1894068) for causing xpcshell failures in test_sorted_alphabetically.js. CLOSED TREE 2024-05-03 02:48:35 +03:00
John Schanck
4bbd34ab56 Bug 1894068 - add a policy for post-quantum key agreement. r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D208934
2024-05-02 22:58:49 +00:00
Emily McMinn
30c98bb978 Bug 1887038 - Clean up whatsNewPanel pref and policies outside Messaging System r=webdriver-reviewers,desktop-theme-reviewers,mkaply,pdahiya,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D207484
2024-04-26 15:31:30 +00:00
Dennis Jackson
38a91cc992 Bug 1891470 - Add an Enterprise Policy for Encrypted Client Hello. r=jschanck,mkaply,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D207436
2024-04-17 09:52:03 +00:00
Harshit Sohaney
b9ccb1eeff Bug 1888673 - Add new clearOnShutdown prefs to policy. r=pbz,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D206513
2024-04-05 18:28:47 +00:00
Mike Kaply
079a3b4994 Bug 1876555 - Locking Proxy policies should always lock prefs. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D206011
2024-03-28 16:00:05 +00:00
Luca Greco
a58b89fee5 Bug 1885652 - Add Enterprise Policies setting to allow installing XPI files signed using deprecated signatures algorithms. r=mkaply,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D204814
2024-03-27 20:34:18 +00:00
Mark Banner
ffb4b2b3fc Bug 1885723 - Fix more jsm references in browser/. r=Gijs,credential-management-reviewers,omc-reviewers,aminomancer,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D204843
2024-03-19 22:08:29 +00:00
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
f65518c3c0 Bug 1882577 - Make nsISearchEngine.getIconURL an async function. r=search-reviewers,extension-reviewers,settings-reviewers,robwu,mcheang,mak
Differential Revision: https://phabricator.services.mozilla.com/D203026
2024-03-13 14:51:06 +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
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
Joel Maher
3662d84cd4 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-25 00:27:05 +00:00
Stanca Serban
71d0d5cf96 Backed out changeset 54462970f797 (bug 1873732) for causing web platform tests failures. 2024-01-24 21:08:19 +02:00
Joel Maher
04ec786571 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-24 16:35:54 +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
Mark Banner
0d18781645 Bug 1870644 - Remove nsISearchEngine.iconURI and replace by the new getIconURL function. r=search-reviewers,extension-reviewers,settings-reviewers,mconley,mcheang,robwu
Differential Revision: https://phabricator.services.mozilla.com/D196734
2023-12-20 13:28:24 +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
Joel Maher
33fa84a382 Bug 1859869 - batch 12 - browser/* xpcshell .ini manifests to .toml. r=aryx,extension-reviewers,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,issammani,Standard8,robwu,sclements
Differential Revision: https://phabricator.services.mozilla.com/D193996
2023-11-21 17:35:23 +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
Mike Kaply
c6f296a985 Bug 1838447 - Exclude EOL distribution IDs from enterprise telemetry. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D180947
2023-06-22 14:55:24 +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
Mark Banner
232facd440 Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Saira Abdulla
d8dc989e1b Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 15:27:03 +00:00
Iulian Moraru
05e26cad32 Backed out 2 changesets (bug 1824612) for causing dt failures on browser_dbg-features-source-tree.js. CLOSED TREE
Backed out changeset c3f38adc818e (bug 1824612)
Backed out changeset 58ba8bb3398a (bug 1824612)
2023-05-31 17:28:16 +03:00
Saira Abdulla
cac3d1f236 Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 10:21:37 +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
Mark Banner
0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Bilal
19e224dcb3 Bug 1816987 - ESMified browser/components/enterprisepolicies/schemas r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D174495
2023-04-27 19:23:00 +00:00
Bilal
34ec496fc7 Bug 1816999 - ESMified browser/components/shell. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D175274
2023-04-14 16:59:15 +00:00
Mark Banner
85d8bc064f Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot
Differential Revision: https://phabricator.services.mozilla.com/D174846
2023-04-06 15:07:56 +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
Mike Kaply
a58ae0127e Bug 1803804 - Add a specific signal for enterprise users. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D174489
2023-04-05 14:48:36 +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
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