257 Commits

Author SHA1 Message Date
Gabriele Svelto
9e514a4382 Bug 1977514 - Updated nix to version 0.30.1 a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D258707

Differential Revision: https://phabricator.services.mozilla.com/D262344
2025-08-25 17:27:59 +00:00
Max Leonard Inden
3b461172fe Bug 1966980 - update neqo to v0.13.4 a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D249829

Differential Revision: https://phabricator.services.mozilla.com/D251241
2025-05-29 13:09:09 +00:00
Emilio Cobos Álvarez
caf0070ab3 Bug 1967206 - Update jobserver (and related crates to avoid duplication). r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D250045
2025-05-20 22:53:57 +00:00
Jim Blandy
42e2d2ba30 Bug 1962269 - Update wgpu to upstream 35f131ff (2025-04-23) r=webgpu-reviewers,glandium,supply-chain-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D246498
2025-04-24 02:38:56 +00:00
Erich Gubler
d58d10bee0 Bug 1961207 - build(rust): shim-upgrade itertools 0.10.0 → 0.14.0 r=supply-chain-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D245935
2025-04-22 12:03:45 +00:00
Gabriele Svelto
08a8136801 Bug 1620998 - Out-of-process crash generation for child processes r=afranchuk,geckoview-reviewers,glandium,browser-installer-reviewers,nalexander,owlish
This implements the crash helper service used to move child process crash
report generation out of the main process and into its own process. This is
implemented as a separate executable that is launched on startup by the main
process on the desktop platforms and as a service hosted by a separate process
on Android.

The crash helper process is started when the first exception handler is set
on desktop platforms and before loading libxul on Android. In both cases
starting this process happens asynchronously so that neither the main process
nor child processes have to wait for it to come up. If a crash happens before
the crash helper has started, the crashed process will wait for it to fully
come up and then proceed with regular crash generation.

IPC with the crash helper is implemented using Unix sockets on Linux and macOS
with the former using sequential packets and the latter using stream sockets.
On Windows we use named pipes. In all cases the choice of IPC was dictated both
by the requirement to eventually talk directly to child processes from within
the sandbox, and to external processes in case of Windows as the Windows
Error Reporting exception handler must be able to reach out to the helper from
within a restricted context. These particular requirements are not used yet but
will be as we move more logic out of the main process logic.

Differential Revision: https://phabricator.services.mozilla.com/D231083
2025-04-18 16:37:06 +00:00
Erich Gubler
8f4384a847 Bug 1961030 - build(rust): shim-upgrade strum 0.26.3 → 0.27.1 r=supply-chain-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D245813
2025-04-17 17:50:35 +00:00
Erich Gubler
4e8ca4d873 Bug 1961024 - build(rust): shim-upgrade ron 0.9.0 → 0.10.1 r=supply-chain-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D245811
2025-04-17 17:50:35 +00:00
Erich Gubler
8221b15491 Bug 1958063 - build(rust): shim-upgrade rusqlite 0.31.0 → 0.33.0 r=glandium
Do this by upgrading `application-services` repos to a commit that
_only_ differs from the current one in its `rusqlite` dependency.

Differential Revision: https://phabricator.services.mozilla.com/D244233
2025-04-16 16:25:17 +00:00
Erich Gubler
b30b2aa3e1 Bug 1958063 - build(rust): shim-upgrade hashlink 0.9.1 → 0.10.0 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D244356
2025-04-16 16:25:17 +00:00
Ben Dean-Kawamura
1eb87d72f6 Bug 1959469 - Fix ./mach uniffi generate, r=markh,glandium
The issue was that the `default-hasher` feature wasn't turned on, which
made it so the build hack that substitutes older hashbrown versions with
v0.15.2 was failing.

Differential Revision: https://phabricator.services.mozilla.com/D244942
2025-04-16 13:51:54 +00:00
Erich Gubler
3826e3b939 Bug 1947920 - build(rust): shim-upgrade hashbrown 0.14.5 → 0.15.2, upgrade indexmap 2.5.0 → 2.8.0 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D239687
2025-04-08 20:49:59 +00:00
Ben Dean-Kawamura
94fccbed84 Bug 1950665 - Upgrade to UniFFI 0.29.1, r=markh
Differential Revision: https://phabricator.services.mozilla.com/D239796
2025-04-07 20:39:50 +00:00
Cosmin Sabou
a237abc876 Backed out changeset 8955d56a5c82 (bug 1947920) for causing build bustages. CLOSED TREE 2025-04-03 14:52:33 +03:00
Erich Gubler
6c190b1bd8 Bug 1947920 - build(rust): upgrade hashbrown 0.14.5 → 0.15.2 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D239687
2025-04-03 11:31:59 +00:00
Norisz Fay
b263c6627a Backed out 9 changesets (bug 1620998) for causing multiple crash related failures
Backed out changeset 274ab6fba51b (bug 1620998)
Backed out changeset 731b7a72161e (bug 1620998)
Backed out changeset 5dad868cb181 (bug 1620998)
Backed out changeset 49618d90e1da (bug 1620998)
Backed out changeset cc14d8374efa (bug 1620998)
Backed out changeset 31f3cc43e800 (bug 1620998)
Backed out changeset fde49d4de714 (bug 1620998)
Backed out changeset 857c23185317 (bug 1620998)
Backed out changeset 97f0f061357e (bug 1620998)
2025-04-02 02:23:33 +03:00
Gabriele Svelto
6259c76b43 Bug 1620998 - Out-of-process crash generation for child processes r=afranchuk,geckoview-reviewers,glandium,browser-installer-reviewers,nalexander,owlish
This implements the crash helper service used to move child process crash
report generation out of the main process and into its own process. This is
implemented as a separate executable that is launched on startup by the main
process on the desktop platforms and as a service hosted by a separate process
on Android.

The crash helper process is started when the first exception handler is set
on desktop platforms and before loading libxul on Android. In both cases
starting this process happens asynchronously so that neither the main process
nor child processes have to wait for it to come up. If a crash happens before
the crash helper has started, the crashed process will wait for it to fully
come up and then proceed with regular crash generation.

IPC with the crash helper is implemented using Unix sockets on Linux and macOS
with the former using sequential packets and the latter using stream sockets.
On Windows we use named pipes. In all cases the choice of IPC was dictated both
by the requirement to eventually talk directly to child processes from within
the sandbox, and to external processes in case of Windows as the Windows
Error Reporting exception handler must be able to reach out to the helper from
within a restricted context. These particular requirements are not used yet but
will be as we move more logic out of the main process logic.

Differential Revision: https://phabricator.services.mozilla.com/D231083
2025-04-01 15:13:42 +00:00
Cosmin Sabou
e3d0bc89ab Backed out 9 changesets (bug 1620998) for causing build bustages. CLOSED TREE
Backed out changeset 72781375abd5 (bug 1620998)
Backed out changeset 30edb461ed99 (bug 1620998)
Backed out changeset a027ff2de570 (bug 1620998)
Backed out changeset 821e4224085a (bug 1620998)
Backed out changeset e90f6557d883 (bug 1620998)
Backed out changeset 47e7a1a2796e (bug 1620998)
Backed out changeset dbf8543d39d4 (bug 1620998)
Backed out changeset e72d5596ac91 (bug 1620998)
Backed out changeset b351cb3d0b54 (bug 1620998)
2025-04-01 01:34:43 +03:00
Gabriele Svelto
c544442459 Bug 1620998 - Out-of-process crash generation for child processes r=afranchuk,geckoview-reviewers,glandium,browser-installer-reviewers,nalexander,owlish
This implements the crash helper service used to move child process crash
report generation out of the main process and into its own process. This is
implemented as a separate executable that is launched on startup by the main
process on the desktop platforms and as a service hosted by a separate process
on Android.

The crash helper process is started when the first exception handler is set
on desktop platforms and before loading libxul on Android. In both cases
starting this process happens asynchronously so that neither the main process
nor child processes have to wait for it to come up. If a crash happens before
the crash helper has started, the crashed process will wait for it to fully
come up and then proceed with regular crash generation.

IPC with the crash helper is implemented using Unix sockets on Linux and macOS
with the former using sequential packets and the latter using stream sockets.
On Windows we use named pipes. In all cases the choice of IPC was dictated both
by the requirement to eventually talk directly to child processes from within
the sandbox, and to external processes in case of Windows as the Windows
Error Reporting exception handler must be able to reach out to the helper from
within a restricted context. These particular requirements are not used yet but
will be as we move more logic out of the main process logic.

Differential Revision: https://phabricator.services.mozilla.com/D231083
2025-03-31 21:23:14 +00:00
Erich Gubler
cee0dabc27 Bug 1956123 - build(rust): shim-upgrade unicode-width 0.1.10 → 0.2.0 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D243188
2025-03-29 11:40:39 +00:00
Alexandru Marc
7bee8ec457 Backed out 7 changesets (bug 1950665, bug 1956897, bug 1956123, bug 1953191) for causing fenix btime failures CLOSED TREE
Backed out changeset 22f47c90fd5d (bug 1956123)
Backed out changeset 6522ae70b658 (bug 1956897)
Backed out changeset 806db3f9c36c (bug 1950665)
Backed out changeset bf72ab72dfa6 (bug 1953191)
Backed out changeset d229188b7203 (bug 1953191)
Backed out changeset d73eaaafd097 (bug 1953191)
Backed out changeset 592d875cb61b (bug 1950665)
2025-03-28 19:28:52 +02:00
Erich Gubler
7c9eef1a62 Bug 1956123 - build(rust): shim-upgrade unicode-width 0.1.10 → 0.2.0 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D243188
2025-03-28 10:09:52 +00:00
Ben Dean-Kawamura
ffe793284f Bug 1950665 - Upgrade to UniFFI 0.29,
Differential Revision: https://phabricator.services.mozilla.com/D239796
2025-03-27 20:33:09 +00:00
Cosmin Sabou
ca05bec2fb Backed out 7 changesets (bug 1956132, bug 1956378, bug 1950665, bug 1953191) for causing LateWriteObserver crashes.
Backed out changeset 38ae4256b2ad (bug 1956132)
Backed out changeset cc9d570bc0d1 (bug 1956378)
Backed out changeset 85142db17376 (bug 1950665)
Backed out changeset 251fd670f26e (bug 1953191)
Backed out changeset f79d2c98afbc (bug 1953191)
Backed out changeset 7d91be694ac1 (bug 1953191)
Backed out changeset cb2b3aee545c (bug 1950665)
2025-03-27 00:53:58 +02:00
Ben Dean-Kawamura
f07cda2602 Bug 1950665 - Upgrade to UniFFI 0.29,
Differential Revision: https://phabricator.services.mozilla.com/D239796
2025-03-26 17:12:06 +00:00
Erich Gubler
3fe6f32b23 Bug 1955085 - build(rust): audit and shim-update half 1.8.3 → 2.5.0 r=supply-chain-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D242217
2025-03-21 17:32:17 +00:00
Erich Gubler
e55f763c31 Bug 1894795 - build(rust): upgrade base64 0.21.3 → 0.22.1 r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229933
2025-03-21 02:58:31 +00:00
Chris Martin
27a8c44185 Bug 1950364 - Update and vendor minidump-writer r=glandium,supply-chain-reviewers,gsvelto,nika
Differential Revision: https://phabricator.services.mozilla.com/D239530
2025-03-10 17:05:06 +00:00
Chris Martin
7ecd1ad6b4 Bug 1950364 - Update and vendor tempfile r=glandium,supply-chain-reviewers,nika,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D240093
2025-03-10 17:05:06 +00:00
Mike Hommey
0d9b7da75a Bug 1950258 - Use mozbuild::config items instead of reading extra-bindgen-flags files. r=firefox-build-system-reviewers,sergesanspaille
We add NSS_CFLAGS in preparation of equivalent changes to crates that
are vendored in third-party/rust that use netwerk/socket/neqo/extra-bindgen-flags
(that we thus keep around for now).

Differential Revision: https://phabricator.services.mozilla.com/D239831
2025-02-27 19:31:17 +00:00
Mike Hommey
d51e87a23e Bug 1950258 - Use BINDGEN_SYSTEM_FLAGS instead of CC_BASE_FLAGS for bindgen. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D239829
2025-02-27 19:31:16 +00:00
Erich Gubler
92d6cc8d4b Bug 1949858 - build(rust): shim-upgrade core-graphics-types 0.1.3 → 0.2.0, core-foundation 0.9.4 → 0.10.0, core-foundation-sys 0.8.6 → 0.8.7 r=gfx-reviewers,glandium,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D239209
2025-02-24 15:29:54 +00:00
Butkovits Atila
d1846f9d0f Backed out 2 changesets (bug 1949858) for causing WebRender failures. CLOSED TREE
Backed out changeset 311381302426 (bug 1949858)
Backed out changeset a43a261a4dbb (bug 1949858)
2025-02-24 16:55:15 +02:00
Erich Gubler
de677e28d2 Bug 1949858 - build(rust): shim-upgrade core-graphics-types 0.1.3 → 0.2.0, core-foundation 0.9.4 → 0.10.0, core-foundation-sys 0.8.6 → 0.8.7 r=gfx-reviewers,glandium,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D239209
2025-02-24 13:41:46 +00:00
Butkovits Atila
515aa5ce36 Backed out 2 changesets (bug 1949858) forcausing wrench bustages. CLOSED TREE
Backed out changeset a38ace2f6538 (bug 1949858)
Backed out changeset a56ed79b9609 (bug 1949858)
2025-02-22 06:25:42 +02:00
Erich Gubler
489cb02b0e Bug 1949858 - build(rust): shim-upgrade core-graphics-types 0.1.3 → 0.2.0, core-foundation 0.9.4 → 0.10.0, core-foundation-sys 0.8.6 → 0.8.7 r=gfx-reviewers,glandium,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D239209
2025-02-22 03:48:43 +00:00
Erich Gubler
4966460459 Bug 1945932 - refactor(geckodriver): use yaml-rust instead of serde_yaml r=webdriver-reviewers,glandium,supply-chain-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D237824
2025-02-13 21:46:10 +00:00
Alex Franchuk
25b3af062c Bug 1945648 - Remove MOZ_BUILDID from the mozbuild crate r=pehrsons,glandium
This was causing dependents of mozbuild to be rebuilt often and
unnecessarily.

Differential Revision: https://phabricator.services.mozilla.com/D237105
2025-02-07 14:35:58 +00:00
teoxoy
af754ac852 Bug 1941540 - Update wgpu to revision aa7bec65b90028e4db6ec8def8589b52097d92f9. r=webgpu-reviewers,glandium,supply-chain-reviewers,ErichDonGubler,nical
Differential Revision: https://phabricator.services.mozilla.com/D234312
2025-01-20 16:09:05 +00:00
Mike Hommey
05055e2777 Bug 1940864 - Refresh rust workspace hack. r=firefox-build-system-reviewers,sergesanspaille
Notes:
- because minidump-analyzer is not a root crate, it doesn't need the
workspace hack.
- allocator-api2 was added in bug 1912019, we don't need to work around
its use in hashbrown anymore.

Differential Revision: https://phabricator.services.mozilla.com/D233788
2025-01-14 01:00:49 +00:00
Erich Gubler
6e2875ea7c Bug 1939787 - build(rust): migrate thiserror 1 → 2 r=glandium,webgpu-reviewers,supply-chain-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D233191
2025-01-10 22:29:57 +00:00
Erich Gubler
fc9ac9cdaf Bug 1939787 - build(webgpu): update WGPU to 5543961a71cc8e5399b696fae3f6aae82c019717 r=glandium,webgpu-reviewers,supply-chain-reviewers,jimb
This migration was non-trivial!

On the WebGPU side, a change in how load and store operations in render
attachments were represented meant that we needed to re-work FFI for
`RenderPassDepthStencilAttachment` and `RenderPassColorAttachment`, with
most of the effort going towards the former. These types, along with
`Option`, needed FFI-friendly replacements for `Option` and the related
types in `wgpu-core`.

There was also some housekeeping done to avoid duplicate dependencies:

* Create `thiserror` shim that downgrades v2 → v1. Otherwise, v2 would
  be brought in by the new WGPU. We can't go in the opposite direction
  yet, because `bitsclient` has code that breaks on upgrade. The next
  patch in this series addresses this, and reverses the direction of the
  shim.
* Also remove the now-unused shim adapting from `cfg_aliases` 0.1 to
  0.2.

Co-Authored-By: Jim Blandy <jimb@red-bean.com>

Differential Revision: https://phabricator.services.mozilla.com/D233192
2025-01-10 22:29:56 +00:00
Alexandru Marc
7bd67e126f Backed out 2 changesets (bug 1939787) for causing BR bustages @ rust.mk CLOSED TREE
Backed out changeset 8d3e2a8a98d3 (bug 1939787)
Backed out changeset d2074191b678 (bug 1939787)
2025-01-10 23:47:52 +02:00
Erich Gubler
303a20a350 Bug 1939787 - build(rust): migrate thiserror 1 → 2 r=glandium,webgpu-reviewers,supply-chain-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D233191
2025-01-10 20:15:31 +00:00
Erich Gubler
c7b29db5f0 Bug 1939787 - build(webgpu): update WGPU to 5543961a71cc8e5399b696fae3f6aae82c019717 r=glandium,webgpu-reviewers,supply-chain-reviewers,jimb
This migration was non-trivial!

On the WebGPU side, a change in how load and store operations in render
attachments were represented meant that we needed to re-work FFI for
`RenderPassDepthStencilAttachment` and `RenderPassColorAttachment`, with
most of the effort going towards the former. These types, along with
`Option`, needed FFI-friendly replacements for `Option` and the related
types in `wgpu-core`.

There was also some housekeeping done to avoid duplicate dependencies:

* Create `thiserror` shim that downgrades v2 → v1. Otherwise, v2 would
  be brought in by the new WGPU. We can't go in the opposite direction
  yet, because `bitsclient` has code that breaks on upgrade. The next
  patch in this series addresses this, and reverses the direction of the
  shim.
* Also remove the now-unused shim adapting from `cfg_aliases` 0.1 to
  0.2.

Differential Revision: https://phabricator.services.mozilla.com/D233192
2025-01-10 20:15:30 +00:00
Jason Kratzer
30921736f7 Bug 1934980 - Add a javascript interface for interacting with Nyx, r=decoder,glandium,firefox-build-system-reviewers,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D231001
2024-12-20 20:55:28 +00:00
Sylvestre Ledru
07402313cb Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Generated with rustfmt 1.8.0-stable (90b35a6239 2024-11-26)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D231117
2024-12-04 16:26:33 +00:00
Alex Franchuk
cfe9ad57d5 Bug 1912131 - Update minidump-writer to 0.10.1 r=gsvelto,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D221977
2024-09-20 15:27:10 +00:00
Norisz Fay
02e6d94d31 Backed out changeset 2ff7570a00ed (bug 1912131) for causing NonZero related build bustage 2024-09-13 20:44:57 +03:00
Alex Franchuk
d444981893 Bug 1912131 - Update minidump-writer to 0.10.1 r=gsvelto,glandium,supply-chain-reviewers
This is using a git rev for now as a new version hasn't been released
yet.

Differential Revision: https://phabricator.services.mozilla.com/D221977
2024-09-13 16:40:28 +00:00