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

17547 Коммитов

Автор SHA1 Сообщение Дата
Bob Owen 90e0706ca0 Bug 1859708: Add rule to allow read access to the binary dir for GPU sandbox. r=cmartin
This also changes the way we populate the cached binary dir string, so that when
it is populated, it is done in SandboxBroker::Initialize.

Differential Revision: https://phabricator.services.mozilla.com/D205099
2024-03-19 22:09:10 +00:00
Mark Banner 268dc80fa1 Bug 1885723 - Fix more jsm references in misc code. r=Gijs,necko-reviewers,dom-storage-reviewers,janv,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204845
2024-03-19 08:59:11 +00:00
ffxbld 30510ae714 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D204889
2024-03-18 12:08:58 +00:00
Emilio Cobos Álvarez 0e321f79be Bug 232598 - Return null for unset attributes in XUL. r=smaug,devtools-reviewers,omc-reviewers,zombie,nchevobbe,settings-reviewers,application-update-reviewers,credential-management-reviewers,mossop,aminomancer,bytesized,issammani,sessionstore-reviewers,dao
I just got bit by this in bug 1873833, let's just fix it. There isn't
all that much stuff depending on it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D204496
2024-03-18 09:15:07 +00:00
Jed Davis 7d1252a369 Bug 1885218 - Add more logging for fatal errors during Linux sandbox process launch. r=gcp
In this code there are conditions where we can't proceed, but simply
`MOZ_CRASH`ing isn't ideal, because the crash reporter doesn't work
here, and on non-debug builds the crash string isn't printed to the
terminal, so we get bug reports where we know that something crashed
somewhere but not much else.

Because we already have the `SANDBOX_LOG` macros (which are intended to
be async signal safe), this patch uses them to add some more logging.

This patch also makes sure that `WriteStringToFile` always sets errno to
something when returning failure, because that matters for some of this
new logging.

Differential Revision: https://phabricator.services.mozilla.com/D204574
2024-03-15 23:20:32 +00:00
Rob Wu 9d05fed6bd Bug 1885354 - Hardcode intermediate addons-stage cert r=jschanck
Generated from the crt file from bug 1882192 with:

openssl x509 -inform PEM -in /tmp/cas-cur-intermediate-amo-2024-03-12.crt -outform DER -out security/manager/ssl/addons-stage-intermediate.crt

Differential Revision: https://phabricator.services.mozilla.com/D204778
2024-03-15 22:52:48 +00:00
Rob Wu 853310747b Bug 1885349 - Replace addons-stage.crt with cas-cur r=jschanck
addons-stage.crt is the DER-encoded version of the
cas-cur-root-2024-03-12.crt file from bug 1882192, generated with:

openssl x509 -inform PEM -in /tmp/cas-cur-root-2024-03-12.crt -outform DER -out security/manager/ssl/addons-stage.crt

The four zip files are from bug 1885457, and are the same file, but
signed with the new certificate.

Differential Revision: https://phabricator.services.mozilla.com/D204706
2024-03-15 22:52:46 +00:00
Dennis Jackson d66895f2f6 Bug 1882353 - land NSS NSS_3_99_RTM UPGRADE_NSS_RELEASE, r=nss-reviewers,jschanck
2024-03-15  Dennis Jackson  <djackson@mozilla.com>

	* doc/rst/releases/index.rst, doc/rst/releases/nss_3_99.rst:
	Add release notes for 3.99
	[3594a1841f43] [NSS_3_99_RTM] <NSS_3_99_BRANCH>

	* lib/nss/nss.h, lib/softoken/softkver.h, lib/util/nssutil.h:
	Set version numbers to 3.99 Final
	[38cf2279b626] <NSS_3_99_BRANCH>

2024-03-14  Dennis Jackson  <djackson@mozilla.com>

	* .hgtags:
	Added tag NSS_3_99_BETA3 for changeset eea89805bde9
	[16c587b77059] <NSS_3_99_BRANCH>

Differential Revision: https://phabricator.services.mozilla.com/D204796
2024-03-15 18:44:25 +00:00
Dennis Jackson 81d5630102 Bug 1882353 - land NSS NSS_3_99_BETA3 UPGRADE_NSS_RELEASE, r=nss-reviewers,jschanck
Differential Revision: https://phabricator.services.mozilla.com/D204673
2024-03-14 20:07:05 +00:00
Mark Banner 3d5bb40f49 Bug 1884623 - Update more jsm references in production code and docs in misc code. r=mossop,necko-reviewers,profiler-reviewers,julienw,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204185
2024-03-14 17:42:28 +00:00
Sandor Molnar 09d9822ba8 Backed out 3 changesets (bug 1884623) for causing multiple failures CLOSED TREE
Backed out changeset 3a264233ce8e (bug 1884623)
Backed out changeset acdf8a83a49c (bug 1884623)
Backed out changeset de64ce832b8a (bug 1884623)
2024-03-14 17:03:37 +02:00
ffxbld b1c9610bc7 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D204602
2024-03-14 13:03:51 +00:00
Mark Banner fcaf27c6e1 Bug 1884623 - Update more jsm references in production code and docs in misc code. r=mossop,necko-reviewers,profiler-reviewers,julienw,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204185
2024-03-14 12:18:01 +00:00
Mike Hommey 752c080608 Bug 1843207 - Stop using nsCocoaUtils::ToNSString in OSReauthenticatorDarwin.mm. r=nika
and enable it on iOS.

Differential Revision: https://phabricator.services.mozilla.com/D204320
2024-03-13 20:54:20 +00:00
Jed Davis f3c1121926 Bug 1884347 - Fix unprivileged userns detection to handle new a AppArmor feature. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D204326
2024-03-12 22:59:59 +00:00
ffxbld 7c7912018d No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,diannaS
Differential Revision: https://phabricator.services.mozilla.com/D204211
2024-03-11 16:53:34 +00:00
ffxbld a1f0ba0710 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,diannaS
Differential Revision: https://phabricator.services.mozilla.com/D203897
2024-03-07 17:54:07 +00:00
Gregory Pappas ea69b62538 Bug 1883217 - Remove unused defines in IDL files r=webdriver-reviewers,necko-reviewers,credential-management-reviewers,places-reviewers,dom-core,Standard8,valentin,mccr8,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D203347
2024-03-06 19:04:25 +00:00
Paul Bone 9a81fad423 Bug 1866396 - Hard code the number of system calls for Linux on aarch64 r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D202293
2024-03-06 13:00:28 +00:00
Dana Keeler 890c895192 Bug 1883100 - return the algorithms of signatures verified in openSignedAppFileAsync r=jschanck,robwu
nsIX509CertDB.openSignedAppFileAsync supports PKCS#7 signatures with either
SHA-1 or SHA-256 as well as COSE signatures with SHA-256. To deprecate SHA-1,
it would be helpful to know which signatures the implementation actually
encountered and verified. This patch returns this information via the
nsIOpenSignedAppFileCallback.openSignedAppFileFinished callback.

In addition, this patch returns the verified certificate that created each
verified signature.

Differential Revision: https://phabricator.services.mozilla.com/D203304
2024-03-05 19:05:21 +00:00
Mark Banner 4f1d29d324 Bug 1883371 - Enable ESLint rule no-console on production code. r=mossop,webcompat-reviewers,devtools-reviewers,omc-reviewers,twisniewski,nchevobbe,aminomancer
Allow for console.error, console.warn and console.createInstance, but fail for everything else.

Differential Revision: https://phabricator.services.mozilla.com/D203456
2024-03-05 16:56:57 +00:00
Mike Hommey 5602fd6a10 Bug 1883567 - Disable applemedia on iOS. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D203560
2024-03-05 09:04:50 +00:00
Dana Keeler ea5085be49 Bug 1881401 - remove expiring oskeystore.self_test metric and related code r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D203321
2024-03-04 22:36:14 +00:00
Christoph Kerschbaumer 239cad0ecb Bug 1877195: Expand mixed-content download protection to all http downloads, r=freddyb,Gijs,anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D200267
2024-03-04 15:18:23 +00:00
ffxbld d3698df8d0 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D203413
2024-03-04 14:45:05 +00:00
Cosmin Sabou 2dde24b573 Backed out changeset a89ec49d7645 (bug 1877195) for causing wpt failures on iframe_sandbox_window_open_download_allow_downloads. CLOSED TREE 2024-03-04 16:24:27 +02:00
Gabriele Svelto aa43fa218e Bug 1831092 - Use the new pull-based API for all crash annotations and remove the global annotations table r=jgilbert,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,padenot,handyman,afranchuk,valentin,alwu,sotaro
This changes comes with several different refactorings all rolled into one,
unfotunately I couldn't find a way to pull them apart:
- First of all annotations now can either recorded (that is, we copy the value
  and have the crash reporting code own the copy) or registered. Several
  annotations are changed to use this functionality so that we don't need to
  update them as their value change.
- The code in the exception handler is modified to read the annotations from
  the mozannotation_client crate. This has the unfortunate side-effect that
  we need three different bits of code to serialize them: one for annotations
  read from a child process, one for reading annotations from the main process
  outside of the exception handler and one for reading annotations from the
  main process within the exception handler. As we move to fully
  out-of-process crash reporting the last two methods will go away.
- The mozannotation_client crate now doesn't record annotation types anymore.
  I realized as I was working on this that storing types at runtime has two
  issues: the first one is that buggy code might change the type of an
  annotation (that is record it under two different types at two different
  moments), the second issue is that types might become corrupt during a
  crash, so better enforce them at annotation-writing time. The end result is
  that the mozannotation_* crates now only store byte buffers, track the
  format the data is stored in (null-terminated string, fixed size buffer,
  etc...) but not the type of data each annotation is supposed to contain.
- Which brings us to the next change: concrete types for annotations are now
  enforced when they're written out. If an annotation doesn't match the
  expected type it's skipped. Storing an annotation with the wrong type will
  also trigger an assertion in debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D195248
2024-03-04 10:24:43 +00:00
Christoph Kerschbaumer 42efa58063 Bug 1877195: Expand mixed-content download protection to all http downloads, r=freddyb,Gijs,anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D200267
2024-03-04 10:03:18 +00:00
Dave Townsend e64906d40d Bug 1864896: Autofix unused function arguments (security). r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D202985
2024-03-01 23:43:53 +00:00
Iulian Moraru ac062aeb95 Backed out changeset 81bb704a27a1 (bug 1877195) for causing wpt failures on iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html. CLOSED TREE 2024-03-01 18:46:45 +02:00
Christoph Kerschbaumer 6222503141 Bug 1877195: Expand mixed-content download protection to all http downloads, r=freddyb,Gijs,anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D200267
2024-03-01 13:04:39 +00:00
Mike Hommey 4ae76f7588 Bug 1882680 - Limit mac-only sources to mac builds. r=firefox-build-system-reviewers,necko-reviewers,media-playback-reviewers,valentin,padenot
Differential Revision: https://phabricator.services.mozilla.com/D203073
2024-03-01 00:01:59 +00:00
ffxbld 751ed2987c No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D203106
2024-02-29 14:34:04 +00:00
Valentin Gosu d79969cac4 Bug 1753204 - Add test for unexpected handshake alert retry without 0rtt r=jschanck,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D202933
2024-02-29 08:00:49 +00:00
Mike Hommey 81a12d0fc3 Bug 1834940 - Add iOS support to client cert modules. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D179018
2024-02-29 01:01:23 +00:00
Mike Hommey 434c5a4b41 Bug 1834908 - Reintroduce iOS support in the build system. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D178998
2024-02-29 00:49:10 +00:00
Gregory Pappas 1dfbfcfd07 Bug 1878401 - part 7 - Pass BrowsingContext to nsIFilePicker::Init in tests r=extension-reviewers,settings-reviewers,credential-management-reviewers,anti-tracking-reviewers,devtools-reviewers,sgalich,pbz,nchevobbe,zombie,migration-reviewers,mconley
Depends on D200551

Differential Revision: https://phabricator.services.mozilla.com/D200552
2024-02-28 21:29:39 +00:00
Gregory Pappas dab4d876a4 Bug 1878401 - part 5 - Update nsIFilePicker users in security/ to pass BrowsingContext to init r=keeler
Depends on D200549

Differential Revision: https://phabricator.services.mozilla.com/D200550
2024-02-28 21:29:39 +00:00
Sandor Molnar 3951121cc6 Backed out 8 changesets (bug 1878401, bug 1879041) for causing build bustages on widget/nsBaseFilePicker.cpp CLOSED TREE
Backed out changeset 2e2b8df3bdd6 (bug 1879041)
Backed out changeset 6d6952f9df2c (bug 1878401)
Backed out changeset 30b5bb590d3e (bug 1878401)
Backed out changeset 9a4b830334b9 (bug 1878401)
Backed out changeset 3c3d67f1fcb7 (bug 1878401)
Backed out changeset c83ba4026822 (bug 1878401)
Backed out changeset 6bcb670ce475 (bug 1878401)
Backed out changeset f263b196df96 (bug 1878401)
2024-02-28 17:56:48 +02:00
Gregory Pappas 8a677e7f39 Bug 1878401 - part 7 - Pass BrowsingContext to nsIFilePicker::Init in tests r=extension-reviewers,settings-reviewers,credential-management-reviewers,anti-tracking-reviewers,devtools-reviewers,sgalich,pbz,nchevobbe,zombie,migration-reviewers,mconley
Depends on D200551

Differential Revision: https://phabricator.services.mozilla.com/D200552
2024-02-28 15:07:46 +00:00
Gregory Pappas 29d8ee8369 Bug 1878401 - part 5 - Update nsIFilePicker users in security/ to pass BrowsingContext to init r=keeler
Depends on D200549

Differential Revision: https://phabricator.services.mozilla.com/D200550
2024-02-28 15:07:46 +00:00
ffxbld 70fab457e7 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D202707
2024-02-26 15:43:02 +00:00
Mark Banner 05a17ea470 Bug 1881262 - Disable ESLint rule no-useless-escape across the code as it isn't very useful. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D202321
2024-02-26 11:35:41 +00:00
Dana Keeler ced13ae9a8 Bug 1881117 - avoid unnecessary work when importing third party certificates on Windows r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D202271
2024-02-23 00:13:07 +00:00
Dana Keeler 5222fcff10 Bug 1881117 - add convenience functions for listing third party certificates r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D202270
2024-02-23 00:13:07 +00:00
John Schanck f2870147ca Bug 1876442 - remove OCSP_AGE_AT_CRLITE_OVERRIDE probe. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D199681
2024-02-22 23:26:41 +00:00
Natalia Csoregi e11c42d844 Backed out 2 changesets (bug 1881117) for causing bustage on nsNSSComponent.cpp. CLOSED TREE
Backed out changeset c21d937e3026 (bug 1881117)
Backed out changeset b63dd341a4aa (bug 1881117)
2024-02-22 23:59:22 +02:00
Dana Keeler bf6e9bd6aa Bug 1881117 - avoid unnecessary work when importing third party certificates on Windows r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D202271
2024-02-22 19:20:25 +00:00
Dana Keeler a390434a54 Bug 1881117 - add convenience functions for listing third party certificates r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D202270
2024-02-22 19:20:25 +00:00
Bob Owen 84fdc8a66f Bug 1878638 p4: Remove BrokerServices::AddTargetPeer. r=handyman
This was removed from chromium and we no longer need to add it back.

Differential Revision: https://phabricator.services.mozilla.com/D200905
2024-02-22 19:03:56 +00:00