Граф коммитов

16309 Коммитов

Автор SHA1 Сообщение Дата
R. Martinho Fernandes 9c6150db68 Bug 1736763 - correctly delimit ipv6 hostnames for keying certificate overrides r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D136499
2022-01-24 13:07:15 +00:00
Alexandre Lissy 52bcca7a4f Bug 1749606 - Allow clock_gettime() for same-process r=jld,gerald
This is used by the new code from the profiler that is able to detect
unregistered threads. Blocking it will make child-process hit sandbox
violation.

Differential Revision: https://phabricator.services.mozilla.com/D135648
2022-01-21 23:03:26 +00:00
John Schanck a60cfaa300 Bug 1640316 - Add tests for corrupted CRLite information. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D136284
2022-01-20 18:09:24 +00:00
John Schanck 211bff8723 Bug 1747320 - Only query CRLite on covered certificates. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D134566
2022-01-20 18:09:24 +00:00
ffxbld 5a1297e35b No Bug, mozilla-central repo-update HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D136506
2022-01-20 17:50:51 +00:00
Dana Keeler 9af0bfbdd8 Bug 1750089 - remove some unnecessary uses of nsIX509Cert::GetCert() r=jschanck
nsIX509Cert::GetCert() may cause a CERTCertificate to be instantiated. Doing so
can have performance and stability implications, so it's best to avoid it.
This patch avoids it where possible.

Differential Revision: https://phabricator.services.mozilla.com/D135945
2022-01-19 21:24:47 +00:00
Julien Cristau 39453238c6 Bug 1749017 - bring the date back in X509CertValidity::FormatTime. r=gregtatum,keeler
Differential Revision: https://phabricator.services.mozilla.com/D135357
2022-01-19 10:43:08 +00:00
Iulian Moraru d8fce573b5 Backed out 2 changesets (bug 1750089) for causing mochitest failures on browser_webconsole_certificate_messages.js.
Backed out changeset 7ebb345a9293 (bug 1750089)
Backed out changeset 40bd1975208d (bug 1750089)
2022-01-19 04:07:44 +02:00
Dana Keeler 2d07f1cf5d Bug 1750089 - remove some unnecessary uses of nsIX509Cert::GetCert() r=jschanck
nsIX509Cert::GetCert() may cause a CERTCertificate to be instantiated. Doing so
can have performance and stability implications, so it's best to avoid it.
This patch avoids it where possible.

Depends on D135943

Differential Revision: https://phabricator.services.mozilla.com/D135945
2022-01-18 23:54:12 +00:00
ffxbld 8a40305182 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D136115
2022-01-18 15:18:18 +00:00
Barret Rennie 85a8370332 Bug 1747464 - Remove FileUtils.getFile from security/ r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D134901
2022-01-17 17:42:12 +00:00
Norisz Fay 4475b51bcb Backed out changeset d4a6f5cb9b3f (bug 1747320) for breaking connectivity with many https sites (bug 1750188) a=backout 2022-01-14 15:15:26 +02:00
Jed Davis ddb3043ed2 Bug 1744203 - Fix the `connect_abstract_permit` test to handle X11 connections not being allowed. r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D132854
2022-01-13 23:35:08 +00:00
Jed Davis 00df4118bc Bug 1744203 - Fix SandboxTesting when test cases expect a specific error. r=gerard-majax
The original SandboxTesting protocol assumed tests would just care about
whether operations succeeded or failed, but now we have tests that check
for specific error codes.  Currently that doesn't work well: getting an
error with the wrong error code is misreported as the syscall succeeding.

This patch changes the protocol to simply indicate whether the test
passed and give an unstructured message about what happened, and fixes
the `SandboxTestingChild::*Test` methods to include the relevant
information in the message.

Differential Revision: https://phabricator.services.mozilla.com/D132853
2022-01-13 23:35:08 +00:00
Dana Keeler 2e8fed5c24 Bug 1748341 - only instantiate CERTCertificate in nsNSSCertificate if needed r=jschanck
To avoid doing unnecessary work and to reduce NSS resource contention and
crashes, this patch lazily instantiates the CERTCertificate in
nsNSSCertificate.

Depends on D134979

Differential Revision: https://phabricator.services.mozilla.com/D134980
2022-01-13 22:10:52 +00:00
Dana Keeler 6ba439cc95 Bug 1748341 - use mDER over mCert in nsNSSCertificate where possible r=jschanck
To prepare to lazily instantiate the CERTCertificate in nsNSSCertificate, this
patch avoids the CERTCertificate in nsNSSCertificate as much as possible and
instead uses the bytes of the certificate directly.

Depends on D134978

Differential Revision: https://phabricator.services.mozilla.com/D134979
2022-01-13 22:10:51 +00:00
Dana Keeler a5b07a3a15 Bug 1748341 - remove superfluous nsNSSCertificate "constructors" r=necko-reviewers,kershaw,jschanck
nsNSSCertificate had a few functions that acted as constructors. This patch
removes these unnecessary functions and uses actual constructors.

Depends on D134977

Differential Revision: https://phabricator.services.mozilla.com/D134978
2022-01-13 22:10:51 +00:00
Dana Keeler 020dbe7b52 Bug 1748341 - misc nsNSSCertificate cleanup r=jschanck
This removes some leftover cruft in nsNSSCertificate.

Differential Revision: https://phabricator.services.mozilla.com/D134977
2022-01-13 22:10:50 +00:00
Csoregi Natalia 70ac86b966 Bug 1736605 - Fix lint. r=fix CLOSED TREE 2022-01-13 23:26:26 +02:00
Chris Martin b7ee1508ef Bug 1736605- Enable out-of-process WebGL without HW accel
Currently, there are situations where Remote WebGL is disabled due to
lack of HW support (For example, if it is run in a Virtual Machine)

This makes it so that the WebGL remoting is enabled anyway, since it is
needed for Win32k Lockdown.

Differential Revision: https://phabricator.services.mozilla.com/D135650
2022-01-13 20:51:22 +00:00
John Schanck e4407de1ad Bug 1747320 - Only query CRLite on covered certificates. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D134566
2022-01-13 19:27:46 +00:00
Bob Owen 5237bb3b74 Bug 1750033: Re-enable win32k lockdown for file content processes when pref set. r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D135895
2022-01-13 18:17:08 +00:00
R. Martinho Fernandes 73a91c8fd6 Bug 1736763: Correctly parse IPv6 hosts in certificate overrides r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D135617
2022-01-13 14:29:41 +00:00
ffxbld 60d27d6358 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D135850
2022-01-13 13:41:59 +00:00
Butkovits Atila 20fcf81609 Backed out changeset 28880b7218fc (bug 1736605) for causing Xpcshell failrues at test_TelemetryEnvironment.js. CLOSED TREE 2022-01-13 00:44:32 +02:00
Mike Hommey 0160eb2a59 Bug 1747773 - Build NSS with clang's integrated assembler on x86_64. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134742
2022-01-12 21:48:20 +00:00
Butkovits Atila 3a214de2f6 Merge mozilla-central to autoland. CLOSED TREE 2022-01-12 23:40:05 +02:00
Butkovits Atila 435a77f1a1 Merge autoland to mozilla-central. a=merge 2022-01-12 23:13:24 +02:00
Alexandre Lissy 161f130b0a Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D126297
2022-01-12 20:52:58 +00:00
Chris Martin d9c4fe1b24 Bug 1736605- Enable out-of-process WebGL without HW accel r=jgilbert
Currently, there are situations where Remote WebGL is disabled due to
lack of HW support (For example, if it is run in a Virtual Machine)

This makes it so that the WebGL remoting is enabled anyway, since it is
needed for Win32k Lockdown.

Differential Revision: https://phabricator.services.mozilla.com/D135649
2022-01-12 19:08:42 +00:00
Narcis Beleuzu 255a2c1d2d Backed out 4 changesets (bug 1748341) for causing Bug 1749735 . a=pascal
Backed out changeset 667470bfefbb (bug 1748341)
Backed out changeset 4c8bf5c43e12 (bug 1748341)
Backed out changeset 7aa1f58a893e (bug 1748341)
Backed out changeset 1e1f1620d1bb (bug 1748341)
2022-01-12 18:31:40 +02:00
Cristian Tuns 189d64b412 Backed out changeset 8b97bc59958e (bug 1749017) for causing xpcshell failures on test_nsIX509CertValidity.js CLOSED TREE 2022-01-12 09:14:51 -05:00
Julien Cristau 279ea846f7 Bug 1749017 - bring the date back in X509CertValidity::FormatTime. r=gregtatum,keeler
Differential Revision: https://phabricator.services.mozilla.com/D135357
2022-01-12 13:19:41 +00:00
Dennis Jackson 0622807c18 Bug 1748469 - Update hardcoded ECHConfigs in Firefox Unit Tests r=mt,necko-reviewers,kershaw
This will need to be landed in conjunction with the ECH changes in NSS.

Differential Revision: https://phabricator.services.mozilla.com/D135205
2022-01-12 10:40:38 +00:00
Benjamin Beurdouche 84a342941b Bug 1748820 - land NSS 44e6341be5e8 UPGRADE_NSS_RELEASE, r=beurdouche
Differential Revision: https://phabricator.services.mozilla.com/D135690
2022-01-12 10:40:38 +00:00
Dana Keeler c3d9c4a9fb Bug 1748341 - only instantiate CERTCertificate in nsNSSCertificate if needed r=jschanck
To avoid doing unnecessary work and to reduce NSS resource contention and
crashes, this patch lazily instantiates the CERTCertificate in
nsNSSCertificate.

Depends on D134979

Differential Revision: https://phabricator.services.mozilla.com/D134980
2022-01-12 00:40:14 +00:00
Dana Keeler b3e9aadfa8 Bug 1748341 - use mDER over mCert in nsNSSCertificate where possible r=jschanck
To prepare to lazily instantiate the CERTCertificate in nsNSSCertificate, this
patch avoids the CERTCertificate in nsNSSCertificate as much as possible and
instead uses the bytes of the certificate directly.

Depends on D134978

Differential Revision: https://phabricator.services.mozilla.com/D134979
2022-01-12 00:40:14 +00:00
Dana Keeler aff97c6002 Bug 1748341 - remove superfluous nsNSSCertificate "constructors" r=necko-reviewers,kershaw,jschanck
nsNSSCertificate had a few functions that acted as constructors. This patch
removes these unnecessary functions and uses actual constructors.

Depends on D134977

Differential Revision: https://phabricator.services.mozilla.com/D134978
2022-01-12 00:40:14 +00:00
Dana Keeler 3efb3751c8 Bug 1748341 - misc nsNSSCertificate cleanup r=jschanck
This removes some leftover cruft in nsNSSCertificate.

Differential Revision: https://phabricator.services.mozilla.com/D134977
2022-01-12 00:40:13 +00:00
Kershaw Chang f159addb13 Bug 1741425 - Enable more xpcshell tests with socket process, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D134484
2022-01-11 09:50:14 +00:00
Kershaw Chang 5d806765a0 Bug 1741425 - Enable more mochitest with socket process, r=ahal,webdriver-reviewers,preferences-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134485
2022-01-11 09:49:45 +00:00
Dana Keeler 089b93e8b8 Bug 1749071 - remove unused nsIX509Cert.equals method r=jschanck,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135425
2022-01-10 18:30:10 +00:00
ffxbld 75f8385828 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D135493
2022-01-10 13:51:30 +00:00
Nika Layzell e8f83d2043 Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D135166
2022-01-07 20:35:15 +00:00
Dana Keeler 740734288a Bug 1748409 - regenerate expiring test certificates for 2022 r=jschanck
* the certificates were regenerated using `./mach generate-test-certs`
* the build/pgo/certs/ changes were made using
  `./mach python build/pgo/genpgocert.py`
* the zip files in security/manager/ssl/tests/unit/test_signed_apps/ were
  updated per the directions in the corresponding moz.build file
* security/manager/ssl/tests/unit/test_cert_override_read.js needed manual
  updating

Differential Revision: https://phabricator.services.mozilla.com/D135283
2022-01-07 02:13:06 +00:00
ffxbld 0ccecaefc0 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D135204
2022-01-06 14:09:41 +00:00
Benjamin Beurdouche 5e9a31bd81 Bug 1743993 - land NSS NSS_3_74_RTM UPGRADE_NSS_RELEASE, r=beurdouche DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D135210
2022-01-06 12:04:02 +00:00
Jed Davis ccb10230cc Bug 1746290 - Remove `intr` from the `PRemoteSandboxBroker` protocol. r=nika,bobowen
`PRemoteSandboxBroker::LaunchApp` is similar to `PGMP::StartPlugin`:
it's basically a sync message but it's in the parent-to-child direction,
which isn't allowed for normal `sync` messages.  However, nested sync
messages can support that; `intr` isn't required.

Differential Revision: https://phabricator.services.mozilla.com/D133963
2022-01-05 22:04:45 +00:00
Dana Keeler b33a35a704 Bug 1746529 - only create CERTCertificates on the socket thread in certificate verification r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D134188
2022-01-03 23:57:46 +00:00
ffxbld ce4a36bacc No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D134945
2022-01-03 13:44:49 +00:00