Commit Graph

119 Commits

Author SHA1 Message Date
Mark Banner
5d1820b074 Bug 1799314 - Convert consumers of testing modules to import ES modules direct (browser/). r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161914
2022-11-17 12:00:30 +00:00
Kirk Steuber
8bbbac70d4 Bug 1727820 - Change nsIUpdateChecker consumers to use the new interface r=bhearsum
This patch misses one notable nsIUpdateChecker consumer: AppUpdater. This patch stack makes major changes to AppUpdater, so those changes will be made in their own patch later in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159295
2022-10-26 07:44:31 +00:00
Iulian Moraru
902802bebe Backed out 18 changesets (bug 1727820) for causing mochitest failures. CLOSED TREE
Backed out changeset 04a0c1cbeeb3 (bug 1727820)
Backed out changeset a6633d97ba02 (bug 1727820)
Backed out changeset dd7cd58bdf72 (bug 1727820)
Backed out changeset 06b53d536ef1 (bug 1727820)
Backed out changeset 2cbec56223e5 (bug 1727820)
Backed out changeset 7ccc00d36f16 (bug 1727820)
Backed out changeset 023595d9cb76 (bug 1727820)
Backed out changeset 3dafccf3cf28 (bug 1727820)
Backed out changeset c60b9a6a79ce (bug 1727820)
Backed out changeset 9bbb0f0f1caf (bug 1727820)
Backed out changeset 6d8cf5f78de8 (bug 1727820)
Backed out changeset 8ed9a62d4c5a (bug 1727820)
Backed out changeset d429cf593dae (bug 1727820)
Backed out changeset 67ba1beb529a (bug 1727820)
Backed out changeset 15762d60d97e (bug 1727820)
Backed out changeset 04f5ad71363a (bug 1727820)
Backed out changeset 137f1da67f91 (bug 1727820)
Backed out changeset 5b91828ded9b (bug 1727820)
2022-10-26 01:25:06 +03:00
Kirk Steuber
c6ba4aa673 Bug 1727820 - Change nsIUpdateChecker consumers to use the new interface r=bhearsum
This patch misses one notable nsIUpdateChecker consumer: AppUpdater. This patch stack makes major changes to AppUpdater, so those changes will be made in their own patch later in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159295
2022-10-25 18:10:18 +00:00
William Durand
511ed597cf Bug 1797050 - Part 2 - Use browser_specific_settings instead of applications in existing browser/components/enterprisepolicies/ tests. r=rpl,mkaply
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`,
which will be unsupported in Manifest Version 3+. This patch prepares the introduction of a new warning
(that is usually converted into an error in the test environment).

Differential Revision: https://phabricator.services.mozilla.com/D160058
2022-10-25 14:58:57 +00:00
Norisz Fay
11a2b4ece2 Backed out 18 changesets (bug 1727820) for causing mochitest failures on browser_updateAsk.js CLOSED TREE
Backed out changeset 577d5618fcd1 (bug 1727820)
Backed out changeset 9e6a904ec81d (bug 1727820)
Backed out changeset d95a38c6e8b4 (bug 1727820)
Backed out changeset dc9b7d7e97ae (bug 1727820)
Backed out changeset 464b501ae051 (bug 1727820)
Backed out changeset 9729c6dd1aac (bug 1727820)
Backed out changeset 3c67eac7d52e (bug 1727820)
Backed out changeset 7c2a0dfca2d2 (bug 1727820)
Backed out changeset 2021fb0cba9e (bug 1727820)
Backed out changeset 7a02de8e6ca6 (bug 1727820)
Backed out changeset 6e9017360297 (bug 1727820)
Backed out changeset 0bfff694ce96 (bug 1727820)
Backed out changeset 746d1c708507 (bug 1727820)
Backed out changeset 3b14d8d1fb94 (bug 1727820)
Backed out changeset c8a1417f3528 (bug 1727820)
Backed out changeset 69ef434ae92c (bug 1727820)
Backed out changeset ad646b770b07 (bug 1727820)
Backed out changeset 18b9dd91761f (bug 1727820)
2022-10-25 05:31:39 +03:00
Kirk Steuber
80f78afa02 Bug 1727820 - Change nsIUpdateChecker consumers to use the new interface r=bhearsum
This patch misses one notable nsIUpdateChecker consumer: AppUpdater. This patch stack makes major changes to AppUpdater, so those changes will be made in their own patch later in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159295
2022-10-24 20:53:21 +00:00
Mark Banner
5407bdffa8 Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Mark Banner
dd58975736 Bug 1445134 - Load policy engines from enterprise policies at search service startup. r=mkaply,mcheang
Rather than having the enterprise policy push engine information to the search service, this pulls it from the policies whilst initialisation is in progress. This will ensure the search service always has the correct information for policy engines even if the search settings file is modified.

Differential Revision: https://phabricator.services.mozilla.com/D156538
2022-10-18 07:21:47 +00:00
Mark Banner
0fdad6488f Bug 1445134 - Move most of browser_policy_search_engine.js to an xpcshell-test as it doesn't need to be run as mochitest. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D158859
2022-10-18 07:21:45 +00:00
Butkovits Atila
46c834c673 Backed out 6 changesets (bug 1445134) for causing xpcshell failures. CLOSED TREE
Backed out changeset 59f902b761b5 (bug 1445134)
Backed out changeset 2ec41e23c593 (bug 1445134)
Backed out changeset b0dc583fff47 (bug 1445134)
Backed out changeset a09ccaf19501 (bug 1445134)
Backed out changeset 2d736481d13d (bug 1445134)
Backed out changeset 57ec56757493 (bug 1445134)
2022-10-17 17:54:39 +03:00
Mark Banner
c09198c67b Bug 1445134 - Load policy engines from enterprise policies at search service startup. r=mkaply,mcheang
Rather than having the enterprise policy push engine information to the search service, this pulls it from the policies whilst initialisation is in progress. This will ensure the search service always has the correct information for policy engines even if the search settings file is modified.

Differential Revision: https://phabricator.services.mozilla.com/D156538
2022-10-17 12:56:07 +00:00
Mark Banner
920a4a27fb Bug 1445134 - Move most of browser_policy_search_engine.js to an xpcshell-test as it doesn't need to be run as mochitest. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D158859
2022-10-17 12:56:05 +00:00
Mark Banner
be3e5b9f71 Bug 1789254 - Migrate enterprisepolicies (browser and toolkit) to ESM. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D156463
2022-09-08 14:40:06 +00:00
Norisz Fay
6008f8d423 Backed out 3 changesets (bug 1789254) for causing bc failures on browser_xpcom_graph_wait.js CLOSED TREE
Backed out changeset bea1e1ba4a14 (bug 1789254)
Backed out changeset 4086aaa5f3d0 (bug 1789254)
Backed out changeset 131cac1d1146 (bug 1789254)
2022-09-08 17:14:00 +03:00
Mark Banner
97344659e3 Bug 1789254 - Migrate enterprisepolicies (browser and toolkit) to ESM. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D156463
2022-09-08 12:43:32 +00:00
Mark Banner
19b7fb742e Bug 1782659 - Enable ESlint rule no-unused-vars on the global scope for browser/ xpcshell-tests. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D153433
2022-08-05 08:38:50 +00:00
Tooru Fujisawa
48c568867c Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
James Teow
6b2fbf088c Bug 1773771 - Add GoToIntranetSiteForSingleWordEntryInAddressBar enterprise policy r=mkaply,flod
Differential Revision: https://phabricator.services.mozilla.com/D148952
2022-06-30 16:21:44 +00:00
Mike Kaply
50e0a46202 Bug 1770960 - Enterprise policy for using system print dialog. r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D147212
2022-05-27 19:59:12 +00:00
Kirk Steuber
8bf87d7b40 Bug 1762957 - Tests for Update Pinning r=bhearsum
Note that these tests only ensure that the pin is properly added to the update URL and to the telemetry. They do not test that the update applied will be of the correct version. This is because we are not attempting to have Firefox check if the update provided is valid given the pin, we are leaving it to the update server (Balrog) to find and serve the correct version.

Differential Revision: https://phabricator.services.mozilla.com/D143788
2022-05-16 20:55:07 +00:00
Mike Kaply
09fbd2879d Bug 1722050 - Add policy for opening executable files based on domain/extension pairs. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144214
2022-05-12 15:22:38 +00:00
Bogdan Szekely
f0940a9a03 Backed out changeset 0a74e9a67faa (bug 1722050) for causing xpcshell failures on test_sorted_alphabetically.js. CLOSED TREE 2022-05-12 17:19:37 +03:00
Mike Kaply
5b3ec8b9b8 Bug 1722050 - Add policy for opening executable files based on domain/extension pairs. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144214
2022-05-12 13:17:30 +00:00
Doug Thayer
3b737ed548 Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Mike Kaply
f63f640b03 Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D142886
2022-04-14 19:41:32 +00:00
Mike Kaply
9a61be5fde Bug 1751037 - Properly disable PDFjs permissions. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D137778
2022-02-10 14:15:11 +00:00
Mike Kaply
a356924793 Bug 1750233 - Allow JSON policy to be a REG_SZ. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D136380
2022-01-21 18:17:01 +00:00
Barret Rennie
d4d0b38902 Bug 1745357 - Remove osfile.jsm from browser/components/enterprisepolicies r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D133831
2021-12-16 22:16:02 +00:00
Mike Kaply
4f8a55b680 Bug 1745065 - Add support for managing more ciphers in policy. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D133374
2021-12-10 15:12:33 +00:00
Mike Kaply
558f3681bd Bug 1741204 - Consolidate cookie policy into one Behavior policy. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D131825
2021-11-23 18:57:53 +00:00
Mike Kaply
16bdde2b1a Bug 1737605 - Parse JSON directly from GPO so it's properly validated. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D129845
2021-11-05 20:10:53 +00:00
raquelvargas
600bed0652 Bug 1733549 - Remove uses of ChromeUtils.import(..., null) in enterprise policy code. r=Standard8,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D129649
2021-11-05 09:49:47 +00:00
Valentin Gosu
93dc0642e3 Bug 1732961 - DNSOverHTTPS policy test should use https r=mkaply
While it doesn't make much of a difference for the prefs, setting them to a
plain http:// scheme makes it be ignored by the TRR implementation and has
no effect. I'd hate it to have other people copy paste this code and not
understand why TRR isn't working.

Differential Revision: https://phabricator.services.mozilla.com/D126958
2021-09-30 11:58:50 +00:00
Geoff Brown
a00c449c2d Bug 1730213 - Explicitly skip tests under browser/ on android; r=ahal
These tests are excluded from android test runs in moz.build. Including
an explicit annotation in each manifest avoids scheduling confusion.
browser-chrome and plain-chrome tests in browser/ are of no concern,
since those test types are never scheduled on android.

Differential Revision: https://phabricator.services.mozilla.com/D125266
2021-09-13 15:22:27 +00:00
Dana Keeler
5a31f9b4a6 Bug 1724072 - allow enabling 3DES only when deprecated versions of TLS are enabled r=rmf
Chrome has removed 3DES completely[0], but we're still seeing some uses of it
in telemetry. Our assumption is that this is either due to old devices that
can't be upgraded, and hence probably use TLS 1.0, or servers that bafflingly
choose 3DES when there are other, better, ciphersuites in common.
This patch allows 3DES to only be enabled when deprecated versions of TLS are
enabled. This should protect users against the latter case (where 3DES is
unnecessary) while allowing them to use it in the former case (where it may be
necessary).

NB: The only 3DES ciphersuite gecko makes possible to enable is
TLS_RSA_WITH_3DES_EDE_CBC_SHA. This patch also changes the preference
corresponding to this ciphersuite from "security.ssl3.rsa_des_ede3_sha" to
"security.ssl3.deprecated.rsa_des_ede3_sha".

[0] https://www.chromestatus.com/feature/6678134168485888

Differential Revision: https://phabricator.services.mozilla.com/D121797
2021-08-24 01:25:07 +00:00
Mike Kaply
a84915a124 Bug 1722544 - Allow SanitizeOnShutdown policy to be false. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D122031
2021-08-13 02:20:49 +00:00
Narcis Beleuzu
a43b352fd3 Backed out changeset 4f793a75cd93 (bug 1724072) for geckoview failures . CLOSED TREE 2021-08-10 19:19:35 +03:00
Dana Keeler
607c77eadc Bug 1724072 - allow enabling 3DES only when deprecated versions of TLS are enabled r=rmf
Chrome has removed 3DES completely[0], but we're still seeing some uses of it
in telemetry. Our assumption is that this is either due to old devices that
can't be upgraded, and hence probably use TLS 1.0, or servers that bafflingly
choose 3DES when there are other, better, ciphersuites in common.
This patch allows 3DES to only be enabled when deprecated versions of TLS are
enabled. This should protect users against the latter case (where 3DES is
unnecessary) while allowing them to use it in the former case (where it may be
necessary).

NB: The only 3DES ciphersuite gecko makes possible to enable is
TLS_RSA_WITH_3DES_EDE_CBC_SHA. This patch also changes the preference
corresponding to this ciphersuite from "security.ssl3.rsa_des_ede3_sha" to
"security.ssl3.deprecated.rsa_des_ede3_sha".

[0] https://www.chromestatus.com/feature/6678134168485888

Differential Revision: https://phabricator.services.mozilla.com/D121797
2021-08-10 15:25:37 +00:00
Mike Kaply
ed4834dc3f Bug 1715965 - Handle errors for local XPIs installed by policy. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D120763
2021-07-27 14:42:43 +00:00
Iulian Moraru
4e871ab90b Backed out changeset e3e4ce3c1020 (bug 1715965) for causing xpcshell failures on test_addon_update.js. CLOSED TREE 2021-07-27 00:43:47 +03:00
Mike Kaply
a954e6f60f Bug 1715965 - Handle errors for local XPIs installed by policy. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D120763
2021-07-26 20:55:31 +00:00
Mike Kaply
18721e0477 Bug 1719301 - Remove version number from Windows SSO pref and policy. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119187
2021-07-06 18:18:53 +00:00
Mike Kaply
73c98237a0 Bug 1716360 - Add policy for Windows 10 SSO. r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D118042
2021-06-23 17:01:23 +00:00
Valentin Gosu
66643c5bf0 Bug 1574475 - Remove FTP proxy code r=necko-reviewers,preferences-reviewers,mixedpuppy,mkaply,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111248
2021-04-28 09:33:46 +00:00
Mike Kaply
4a29ffd947 Bug 1706119 - Add enterprise policy for open-protocol-handler permission. r=emalysz,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113034
2021-04-26 19:17:11 +00:00
Narcis Beleuzu
359bfccedf Backed out 8 changesets (bug 1574475, bug 1699222) for build bustages on moz.build . CLOSED TREE
Backed out changeset 6c2c039872b3 (bug 1574475)
Backed out changeset 8a2a04743c5f (bug 1699222)
Backed out changeset 9437c60798d6 (bug 1574475)
Backed out changeset 7ef1884ac11b (bug 1574475)
Backed out changeset ec8c237d5298 (bug 1574475)
Backed out changeset 4a760b3f5d53 (bug 1574475)
Backed out changeset b229b0eea1e7 (bug 1574475)
Backed out changeset 03d34a2f10a6 (bug 1574475)
2021-04-22 18:10:59 +03:00
Valentin Gosu
52e46d11c4 Bug 1574475 - Remove FTP proxy code r=necko-reviewers,preferences-reviewers,mixedpuppy,mkaply,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111248
2021-04-22 13:41:34 +00:00
Mike Kaply
b1da93faf8 Bug 1697566 - Correct implementation of SkipOnboarding policy. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D107894
2021-03-12 20:02:49 +00:00
Michael Kaply
054c11bbe5 Bug 1660810 - Theme installed via policy should be enabled. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D96621
2020-11-12 01:00:21 +00:00