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

567 Коммитов

Автор SHA1 Сообщение Дата
Jan-Erik Rediger df10257b3e Bug 1811218 - Revert patch override for Glean and rkv. r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D167245
2023-01-20 09:28:30 +00:00
Marian-Vasile Laza ea060cc229 Backed out changeset b4dba80235dc (bug 1765921) for causing WR bustages. 2023-01-19 22:17:14 +02:00
Chris H-C 76c4c1615c Bug 1765921 - Rename `fog` crate to `firefox-on-glean` r=TravisLong,supply-chain-reviewers
This matches the empty-and-published-to-crates.io crate, which should allow for
easier optional dependencies in Rust.

Differential Revision: https://phabricator.services.mozilla.com/D165317
2023-01-19 19:55:24 +00:00
Cosmin Sabou c5cbcf0a2e Backed out changeset 218b12b92ccb (bug 1352757) for causing failures on test_transitions_per_property.html. 2023-01-19 19:34:50 +02:00
Tiaan Louw bb0657c1b2 Bug 1352757 - Add lab(), lch(), oklab(), oklch() to specified colors. r=supply-chain-reviewers,emilio
Use new changes from cssparser and use the new lab/lch/oklab/oklch color
formats.

Introduced a new color type AbsoluteColor.  It represents any kind of
color that has absolute numerical values.  It is also tied to a color
space and therefore can be trivially converted to another color space.

Differential Revision: https://phabricator.services.mozilla.com/D163579
2023-01-19 16:17:15 +00:00
Gabriele Svelto 2075a2a0a9 Bug 1793784 - Replace the minidump_writer_linux crate with the minidump-writer crate r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158669
2023-01-10 22:14:30 +00:00
Mike Hommey f26e1e9273 Bug 1807884 - Update warp to 0.3.3. r=webdriver-reviewers,supply-chain-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D165651
2023-01-10 00:50:06 +00:00
Mike Hommey 78f9dfc456 Bug 1807780 - Remove now unused liblowercase. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D165597
2022-12-29 00:05:49 +00:00
Mike Hommey 429af26654 Bug 1807789 - Update darling to 0.14.2. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D165598
2022-12-28 20:53:26 +00:00
Mike Hommey 4f24e132f8 Bug 1804359 - Update uuid to 1.x. r=emilio,janerik,webdriver-reviewers,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164008
2022-12-22 09:11:10 +00:00
Mike Hommey 703a424db9 Bug 1806763 - Remove remaining dependency on nom 6. r=emilio,supply-chain-reviewers
The last use is glsl, waiting for a new release with
https://github.com/phaazon/glsl/pull/154 merged.

Differential Revision: https://phabricator.services.mozilla.com/D165250
2022-12-21 21:18:29 +00:00
Mike Hommey 85d653a9c8 Bug 1804360 - Update goblin to 0.6.0. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164009
2022-12-19 22:55:28 +00:00
Mike Hommey 18d0f30768 Bug 1805809 - Update uniffi to 0.21.1 for more determinism across platforms. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164896
2022-12-19 22:52:29 +00:00
Ryan VanderMeulen 88a2250e32 Backed out 2 changesets (bug 1805809, bug 1804360) for breaking Fenix UI tests (bug 1806321).
Backed out changeset e753835928e7 (bug 1804360)
Backed out changeset 2d62469a1741 (bug 1805809)
2022-12-18 13:42:34 -05:00
Jim Blandy dde6692f0e Bug 1806166: Update wgpu to f14bee67 (2022-12-16) r=nical,supply-chain-reviewers
This brings in various bugfixes and improvements from upstream,
including the fix for bug 1791809 and a workaround for bug 1804530.

In this update, `wgpu_core` leaves the selection of backends to its
users, rather than trying to guess which backends to use itself, based
on the target architecture and operating system. For Firefox, this
means that `gfx/wgpu_bindings/Cargo.toml` is now responsible for
selecting back ends.

Firefox's WebGPU implementation should never use `wgpu`'s GLES
backend. Firefox can now explain this to `wgpu-core`, causing it to
drop its dependency on `glow`, `bitflags_serde_shim` and `slotmap`.
These are no longer vendored, and their exemptions in
`supply-chain/config.toml` can be dropped.

The new `wgpu-core` updates to version 0.37.1+1.3.235 of the `ash`
crate, and this patch moves ash's supply-chain exemption forward to
the new version. We expect to finish vetting that next week, but
because this `wgpu-core` update is urgently needed, we want to extend
the exemption for the time being.

The dependency on `slotmap` had been patched to an empty file in
`build/rust/dummy-web`, which can now be removed.

The new `wgpu-core` no longer uses `cfg_aliases`, so Firefox no longer
needs to vendor that.

Differential Revision: https://phabricator.services.mozilla.com/D164928
2022-12-17 22:25:49 +00:00
Mike Hommey a86772f0b5 Bug 1804360 - Update goblin to 0.6.0. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164009
2022-12-16 22:28:34 +00:00
Mike Hommey 8fd72b5fca Bug 1805809 - Update uniffi to 0.21.1 for more determinism across platforms. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164896
2022-12-16 22:25:57 +00:00
Noemi Erli 439dc54f0c Backed out 2 changesets (bug 1804360, bug 1805809) for causing build bustages CLOSED TREE
Backed out changeset d53c68a9d084 (bug 1804360)
Backed out changeset c7aa21aa29c9 (bug 1805809)
2022-12-16 23:46:24 +02:00
Mike Hommey eb90db3c02 Bug 1804360 - Update goblin to 0.6.0. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164009
2022-12-16 21:24:37 +00:00
Mike Hommey f4b7d29428 Bug 1805809 - Update uniffi to 0.21.1 for more determinism across platforms. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164896
2022-12-16 21:20:02 +00:00
Cristian Tuns f07aa4cd45 Backed out changeset faf4dc4cc2b7 (bug 1804360) as requested by Glandium CLOSED TREE 2022-12-16 16:13:21 -05:00
Mark Hammond 8fd66feff0 Bug 1801295 (part 2) - vendor new application-services with the fix. r=skhamis
Depends on D164781

Differential Revision: https://phabricator.services.mozilla.com/D164782
2022-12-15 22:51:51 +00:00
Mike Hommey 266c958712 Bug 1804360 - Update goblin to 0.6.0. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164009
2022-12-15 09:13:24 +00:00
Mike Hommey cb37196702 Bug 1804586 - Update rusqlite to 0.28. r=markh,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164167
2022-12-13 00:32:35 +00:00
Mike Hommey 03ce56dee2 Bug 1804570 - Update alsa crate to 0.7. r=gsvelto,supply-chain-reviewers
We also artificially update nix to 0.25 in preparation for bug 1793784.

Differential Revision: https://phabricator.services.mozilla.com/D164165
2022-12-13 00:24:03 +00:00
Mike Hommey ff048ff15c Bug 1804361 - Update memoffset to 0.7.1. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164013
2022-12-12 22:52:59 +00:00
Mark Hammond 15847c3f6a Bug 1804545 - Re-vendor application-services to pickup fix to IDs in sync payload. r=skhamis,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164135
2022-12-08 00:26:37 +00:00
Mark Hammond e925353b45 Bug 1803726 (part 1) - update to a new application-services. r=bdk,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D163672
2022-12-04 10:30:29 +00:00
Mike Hommey 94c0c63594 Bug 1801029 - Upgrade bindgen to 0.63.0. r=emilio,necko-reviewers,supply-chain-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D163375
2022-11-30 22:06:50 +00:00
John Schanck 479f9ec25e Bug 1789520 - rust implementation of nssckbi. r=keeler,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156612
2022-10-31 17:09:43 +00:00
Sammy Khamis 91b6f8fd65 Bug 1791851 - mach vendor changes for tabs component r=teshaq,LougeniaBailey,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D157978
2022-10-25 20:03:21 +00:00
Jan-Erik Rediger 2003f2a8b0 Bug 1796087 - Update to Glean v51.5.0 and UniFFI 0.21.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D159689
2022-10-20 12:42:47 +00:00
Nika Layzell 1e93d06f14 Bug 1794001 - Part 6: Patch rure to remove cdylib and staticlib targets, r=#xpcom-reviewers CLOSED TREE
Cargo will attempt to build all targets for dependencies, and there
appears to be no option to turn that functionality off (see
https://github.com/rust-lang/cargo/issues/11232). If we try to build the
`rure` crate as a cdylib during a PGO build, it causes linker issues,
which make the build fail. As this artifact isn't necessary for our
build, we can patch the crate to remove the cdylib and staticlib
crate-type definitions, making the build pass as only the artifact we
need is built.

Differential Revision: https://phabricator.services.mozilla.com/D159332
2022-10-13 21:46:07 +00:00
pmcmanis b3d8c6d5d8 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 20:19:49 +00:00
Butkovits Atila 1bed1fd6e7 Backed out changeset a5df97f61fec (bug 1793786) for causing build bustages. CLOSED TREE 2022-10-07 16:35:21 +03:00
pmcmanis 5d43825505 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 13:05:21 +00:00
Mark Hammond 5ecc219891 Bug 1790931 - vendor a new application-services so golden_gate doesn't get stale. r=bdk
Differential Revision: https://phabricator.services.mozilla.com/D157402
2022-09-19 23:37:51 +00:00
Jan-Erik Rediger f6a6e37ef5 Bug 1788040 - Update to Glean v51.2.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156937
2022-09-13 12:57:58 +00:00
Dragana Damjanovic f29ba14bfb Bug 1772092 - Neqo version 0.6.1 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D156603
2022-09-07 10:10:27 +00:00
Mark Hammond a1f19c7267 Bug 1787688 (part 1) - vendor a new application-services. r=bdk,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D155815
2022-09-02 00:32:53 +00:00
Mike Hommey 0082be5823 Bug 1788157 - Straighten up uniffi Cargo.toml patches. r=markh
Without strict =version dependencies in the patch, cargo is lost when
new versions are published on crates.io.

Differential Revision: https://phabricator.services.mozilla.com/D156039
2022-08-31 02:35:55 +00:00
Mike Hommey 790d70c82e Bug 1785002 - Force update hashbrown to 0.12.3. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154762
2022-08-16 21:47:43 +00:00
Mike Hommey 8a01779722 Bug 1783985 - Remove compat with rustc < 1.61 from packed_simd. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D154341
2022-08-16 00:56:23 +00:00
Mike Hommey 24252edb7e Bug 1783784 - Update packed_simd_2 to 0.3.8. r=hsivonen,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154063
2022-08-11 06:55:49 +00:00
Mike Hommey 6608b13f64 Bug 1783790 - Fix Cargo.toml patch for uniffi-rs. r=bdk
Differential Revision: https://phabricator.services.mozilla.com/D154038
2022-08-09 21:12:18 +00:00
Ben Dean-Kawamura fd4cfd1807 Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-03 18:59:36 +00:00
Ben Dean-Kawamura 1cf71b7095 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 18:59:35 +00:00
Butkovits Atila a8ad39a288 Backed out 6 changesets (bug 1766045) for causing build bustages. CLOSED TREE
Backed out changeset 113593df6272 (bug 1766045)
Backed out changeset f137315bb6af (bug 1766045)
Backed out changeset d86ad195a9a0 (bug 1766045)
Backed out changeset e8bc2ec40cff (bug 1766045)
Backed out changeset 2d33e41ac507 (bug 1766045)
Backed out changeset 4d5874e16302 (bug 1766045)
2022-08-03 17:40:30 +03:00
Ben Dean-Kawamura 760c603bcb Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-03 13:48:27 +00:00
Ben Dean-Kawamura 703dbdfe3a Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 13:48:27 +00:00
criss 04616ca52e Backed out 2 changesets (bug 1766045) for causing Bp-hybrid failures on UniFFIGeneratedScaffolding.cpp
Backed out changeset 5708672d0e83 (bug 1766045)
Backed out changeset cc77fd5ec7a8 (bug 1766045)
2022-08-03 00:01:58 +03:00
Ben Dean-Kawamura fb5bfb756d Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-02 19:51:48 +00:00
Ben Dean-Kawamura c1816bab45 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-02 19:51:47 +00:00
Ryan Hunt 5b07c7d827 Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers
The baldrdash integration of Cranelift is agreed between SM and CL
to be the wrong shape. Our import of the code base is also old and
causes difficulties for us when upgrading some crates (see bug
1774829). We should remove it for now to unblock bug 1774829.

Differential Revision: https://phabricator.services.mozilla.com/D152806
2022-07-27 22:30:17 +00:00
Gabriele Svelto 607615ac09 Bug 1779097 - Fix issues in midir that would be rejected by recent compilers r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D152507
2022-07-22 21:29:30 +00:00
Travis Long 2855beea72 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-14 13:11:13 +00:00
Norisz Fay 31e76fd90f Backed out changeset ce93635100b6 (bug 1772132) for causing webrender build bustage CLOSED TREE 2022-07-13 22:08:19 +03:00
Travis Long a285a07c6e Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 18:00:35 +00:00
Bogdan Szekely 6030807e22 Backed out changeset 1ff9bb6e4a8c (bug 1772132) for causing build bustage. CLOSED TREE 2022-07-13 16:17:53 +03:00
Travis Long e826b78da5 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 12:59:16 +00:00
smolnar 36788ca992 Backed out changeset ab4790cd94eb (bug 1772132) for causing wrench bustage CLOSED TREE 2022-07-13 12:04:13 +03:00
Travis Long 86debe7916 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 08:43:41 +00:00
Mike Hommey 9e2c3b1a7f Bug 1774513 - Fix neqo-common compatibility with log >= 0.4.16. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D149464
2022-06-23 20:31:56 +00:00
Mike Hommey a211cd2aea Bug 1774501 - Update stylo to itertools:0.10, itoa:1.0 and toml:0.5. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D149454
2022-06-16 20:44:03 +00:00
Mike Hommey 34cf638dd6 Bug 1773399 - Update getrandom to 0.2.7. r=emilio,supply-chain-reviewers,bholley
Differential Revision: https://phabricator.services.mozilla.com/D149326
2022-06-15 22:03:20 +00:00
Butkovits Atila 4f215efcf9 Backed out changeset 8f87ffd7365c (bug 1773399) for causing build bustages. CLOSED TREE 2022-06-16 00:43:00 +03:00
Mike Hommey 644033c9d8 Bug 1773399 - Update getrandom to 0.2.7. r=emilio,supply-chain-reviewers,bholley
Differential Revision: https://phabricator.services.mozilla.com/D149326
2022-06-15 21:26:20 +00:00
Mike Hommey 527752ca63 Bug 1773399 - Update idna to 0.2.3. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148737
2022-06-14 20:32:28 +00:00
Sebastian Hengst d0dce2754d Backed out 2 changesets (bug 1772092) for causing frequent crashes (bug 1774118 and bug 1774125). a=backout
Backed out changeset ec91915d325c (bug 1772092)
Backed out changeset 1aadfdf2c854 (bug 1772092)
2022-06-14 10:16:35 +02:00
Dragana Damjanovic 0141e578c4 Bug 1772092 - Update neqo to version 0.6.0 r=necko-reviewers,kershaw,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147855
2022-06-13 11:05:08 +00:00
criss 44a8e72bfb Backed out 2 changesets (bug 1772092) for causing build bustages. CLOSED TREE
Backed out changeset 30a2c0f4c97f (bug 1772092)
Backed out changeset 7dd164e9428c (bug 1772092)
2022-06-09 13:29:59 +03:00
Dragana Damjanovic c530c7b6b8 Bug 1772092 - Update neqo to version 0.6.0 r=necko-reviewers,kershaw,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147855
2022-06-09 10:09:52 +00:00
Mike Hommey 04162811ce Bug 1773189 - Avoid windows-sys dependencies being pulled in by `cargo update`. r=emilio
Some crates in our graph have dependencies on parking_lot >= 0.11,
<=0.12, meaning `cargo update` might pull parking_lot 0.12, which brings
windows-sys.

mio >= 0.8.1 also pulls windows-sys in.

Differential Revision: https://phabricator.services.mozilla.com/D148587
2022-06-08 22:41:53 +00:00
Jan-Erik Rediger 2428c3ec64 Bug 1771743 - Upgrade rkv to include dependency updates. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D148504
2022-06-08 09:45:30 +00:00
Mike Hommey 8279f183b4 Bug 1773180 - Update cexpr to 0.6. r=emilio
Now that nom 7 was pulled in by glean/uniffi in bug 1768834, we don't
need to prevent cexpr from pulling it.

Differential Revision: https://phabricator.services.mozilla.com/D148575
2022-06-08 00:27:41 +00:00
Emilio Cobos Álvarez 255763ef57 Bug 1773070 - Unify Gecko and Servo EventState/ElementState bits. r=smaug
Add a dom/base/rust crate called just "dom" where we can share these.

Most of the changes are automatic:

  s/mozilla::EventStates/mozilla::dom::ElementState/
  s/EventStates/ElementState/
  s/NS_EVENT_STATE_/ElementState::/
  s/NS_DOCUMENT_STATE_/DocumentState::/

And so on. This requires a new cbindgen version to avoid ugly casts for
large shifts.

Differential Revision: https://phabricator.services.mozilla.com/D148537
2022-06-07 23:09:52 +00:00
Mike Hommey f42205257e Bug 1772986 - Update crates that depend on hashbrown 0.9. r=gfx-reviewers,emilio,nical
Differential Revision: https://phabricator.services.mozilla.com/D148476
2022-06-07 20:28:05 +00:00
Jan-Erik Rediger 8182bee632 Bug 1768834 - Switch to Glean with UniFFI integration r=glandium,chutten
Upgrades to Glean v50.0.1, which comes with a rewritten core and
UniFFI-powered bindings.
Glean has some API changes, so we swap it over to that. Mostly mechanical changes.
Also upgrades to inherent v1.0 in fog.
This matches what Glean uses internally and gets rid of one duplicated crate.

Also upgrades to glean-parser==6.0.1

One crate duplication now (change in `python/mozbuild/mozbuild/vendor/vendor_rust.py` required).
Some new crates now vendored.
These are transitive dependencies of Glean dependencies, all with valid
licenses and already used in other products (mobile).

Differential Revision: https://phabricator.services.mozilla.com/D146062
2022-06-07 12:37:20 +00:00
Mike Hommey 89e0a977d1 Bug 1684384 - Update glsl to 6.0. r=gfx-reviewers,lsalzman
Derived from patch by Dimitri Sabadie.

Differential Revision: https://phabricator.services.mozilla.com/D100511
2022-06-07 06:17:35 +00:00
Mark Hammond af7332ea7a Bug 1772953 - update to a recent application-services. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D148458
2022-06-07 01:04:28 +00:00
Mark Hammond 428e1a95f3 Bug 1772070 - vendor the current application-services. r=janerik,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147833
2022-06-03 12:41:13 +00:00
Mike Hommey 762def9bb8 Bug 1772068 - Force update toml to 0.5. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147839
2022-06-02 01:06:14 +00:00
Mike Hommey 37504e8bcb Bug 1772068 - Force update paste to 1.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147838
2022-06-02 01:06:14 +00:00
Mike Hommey 600bc7f33d Bug 1772068 - Force update env_logger to 0.9. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147837
2022-06-02 01:06:13 +00:00
Mike Hommey 46156fb100 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 22:05:53 +00:00
Marian-Vasile Laza 03a1ff18e4 Backed out 6 changesets (bug 1772068, bug 1710421) for causing multiple web-platform failures. CLOSED TREE
Backed out changeset 7dc183461431 (bug 1772068)
Backed out changeset 437682fe4871 (bug 1772068)
Backed out changeset 717912ea0672 (bug 1772068)
Backed out changeset 6790f990c322 (bug 1772068)
Backed out changeset 33831638ba99 (bug 1710421)
Backed out changeset b35aaa56fa54 (bug 1710421)
2022-06-01 15:01:10 +03:00
Mike Hommey 7a0f51774b Bug 1772068 - Force update toml to 0.5. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147839
2022-06-01 10:36:16 +00:00
Mike Hommey 9d7c444899 Bug 1772068 - Force update paste to 1.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147838
2022-06-01 10:36:16 +00:00
Mike Hommey 37111304e0 Bug 1772068 - Force update env_logger to 0.9. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147837
2022-06-01 10:36:15 +00:00
Mike Hommey d50e4bf7f4 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 09:57:13 +00:00
Marian-Vasile Laza 5d7edc0d2e Backed out 2 changesets (bug 1710421) for causing web-platform failures on context.rs. CLOSED TREE
Backed out changeset bdd6f29ebeeb (bug 1710421)
Backed out changeset 1739da34411f (bug 1710421)
2022-06-01 10:34:41 +03:00
Mike Hommey 2bfc571ce5 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 06:44:07 +00:00
Mike Hommey b523023954 Bug 1770894 - Force update hashbrown to 0.11. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147379
2022-05-31 22:05:03 +00:00
Mike Hommey 1cda4fe2c7 Bug 1770894 - Force update rand to 0.8. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147377
2022-05-31 22:05:01 +00:00
Cosmin Sabou d3d37bf987 Backed out 4 changesets (bug 1770894) for causing build bustages.
Backed out changeset d4bd20e7ac74 (bug 1770894)
Backed out changeset ae6ffff33128 (bug 1770894)
Backed out changeset 2e4f492a8222 (bug 1770894)
Backed out changeset 13111f4c114a (bug 1770894)
2022-05-31 01:18:01 +03:00
Mike Hommey 0c40e18d9f Bug 1770894 - Force update hashbrown to 0.11. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147379
2022-05-30 21:37:38 +00:00
Mike Hommey 27d763e0af Bug 1770894 - Force update rand to 0.8. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147377
2022-05-30 21:37:37 +00:00
Mike Hommey f686964c71 Bug 1770894 - Force update memmap2 to 0.3. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147255
2022-05-30 21:37:35 +00:00
Mike Hommey a10c04a7dc Bug 1770894 - Patch redox_users with an empty crate. r=emilio
We don't support redox, so we might as well avoid pulling dependencies
we'll never need and may pull duplicates.

Differential Revision: https://phabricator.services.mozilla.com/D147250
2022-05-30 21:37:33 +00:00
Mike Hommey f9d9d6369f Bug 1770894 - Force update itertools to 0.10. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147249
2022-05-30 21:37:33 +00:00
Mike Hommey 8f5e659734 Bug 1770894 - Force update cfg-if to 1.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147248
2022-05-30 21:37:32 +00:00
Mike Hommey 0f7d648b3b Bug 1770894 - Force update bindgen to 0.59. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147150
2022-05-30 21:37:30 +00:00
Mike Hommey beaa7521c7 Bug 1769902 - Update the itoa crate to 1.0.x. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D146662
2022-05-18 21:04:31 +00:00
M. Sirringhaus 208ea397be Bug 1766759 - Use PID when populating the LinuxDsoDebug stream. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D145062
2022-05-10 07:15:15 +00:00
Bas Schouten a46cd6bcd5 Bug 1751693 - Followup: Address missed review comment by glandium. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D144386
2022-04-22 04:59:07 +00:00
Bas Schouten 6932a162a8 Bug 1751693: Add telemetry probe to measure glyph rasterization time and the required plumbing for WR. r=jrmuizel,nical
Differential Revision: https://phabricator.services.mozilla.com/D140681
2022-04-22 04:39:52 +00:00
Mike Hommey 6b078d7de3 Bug 1660745 - Update encoding_rs to 0.8.31 and packed_simd to 0.3.7. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D88002
2022-04-20 06:24:28 +00:00
Emilio Cobos Álvarez 5c525da4a0 Bug 1755956 - Add initial boilerplate for origin trials. r=smaug,hsivonen
This patch imports and implements all the infrastructure for origin
trial tokens, minus the crypto stuff / token verification.

We still don't hook it anywhere. The intended setup for now would be to
have the `OriginTrials` object hanging off the `Document` (or global
perhaps, not sure yet). That has a self-descriptive API to enable trials
(UpdateFromToken), and check enabledness status (IsEnabled).

There are some tests in the origin-trial-token crate
(third_party/rust/origin-trial-token/tests.rs). No test for the DOM code
yet because this isn't hooked into yet.

Differential Revision: https://phabricator.services.mozilla.com/D139033
2022-02-18 13:57:30 +00:00
Nika Layzell 3207c4d890 Bug 1746533 - Part 1: Use custom vendored version of async-task, r=emilio
This version adds a new `FallibleTask` wrapper type which allows polling the
task without panicking.

Differential Revision: https://phabricator.services.mozilla.com/D136945
2022-01-26 15:36:13 +00:00
Mike Hommey e013590cd1 Bug 1751331 - Add a mozbuild crate that exposes some build configuration items. r=firefox-build-system-reviewers,andi
This will be used as a central point of authority rather than individual
crates figuring things out on their own.

Differential Revision: https://phabricator.services.mozilla.com/D136558
2022-01-25 21:29:50 +00:00
criss 592389ca2d Backed out 10 changesets (bug 1751331) for causing bustages. CLOSED TREE
Backed out changeset 5ce212465a26 (bug 1751331)
Backed out changeset 14d62b8ffa5a (bug 1751331)
Backed out changeset 76f46bd9afa1 (bug 1751331)
Backed out changeset 147faaad046f (bug 1751331)
Backed out changeset f85b049d12f9 (bug 1751331)
Backed out changeset 16d8d3f8378b (bug 1751331)
Backed out changeset 1cd9386a3927 (bug 1751331)
Backed out changeset 20faacba6db6 (bug 1751331)
Backed out changeset 7d17f75bcb38 (bug 1751331)
Backed out changeset 28b9aab1f174 (bug 1751331)
2022-01-25 13:00:25 +02:00
Mike Hommey 68e6c861f5 Bug 1751331 - Add a mozbuild crate that exposes some build configuration items. r=firefox-build-system-reviewers,andi
This will be used as a central point of authority rather than individual
crates figuring things out on their own.

Differential Revision: https://phabricator.services.mozilla.com/D136558
2022-01-25 09:03:02 +00:00
Mike Hommey cca868ba68 Bug 1730004 - Add a crate with diagnostic / nightly asserts. r=nika,emilio
Original patch by emilio.

Differential Revision: https://phabricator.services.mozilla.com/D125190
2022-01-07 21:24:45 +00:00
Mike Hommey cf732621d4 Bug 1748779 - Update midir and coremidi. r=gsvelto
The midir update reduces the differences with upstream to the coremidi
version.

And now the coremidi override is done via a patch at the top-level. The
revision we were using is gone, but it turns out the new master is
identical in content (at least, as far as vendoring is concerned).

Differential Revision: https://phabricator.services.mozilla.com/D135194
2022-01-07 09:14:10 +00:00
Mike Hommey 01c4ac46ad Bug 1748779 - Move dummy-web in-tree. r=firefox-build-system-reviewers,andi
It will make it easier to adjust those dummy libs when necessary.

Differential Revision: https://phabricator.services.mozilla.com/D135192
2022-01-07 09:14:10 +00:00
Henri Sivonen cc4a22e024 Bug 1747394 - Check for space-like bytes instead of just space after a copyright sign. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D134609
2021-12-23 13:37:43 +00:00
Henri Sivonen 917c511c5f Bug 1731482 - Detect lone windows-1252 copyright sign as window-1252. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D134605
2021-12-23 13:14:34 +00:00
Gabriele Svelto 97a5174c27 Bug 1201598 - Add a midir-based implementation for WebMIDI r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D131351
2021-12-21 11:34:52 +00:00
Dana Keeler e06d1bceee Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,glandium,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Depends on D130820

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-18 01:30:24 +00:00
Mike Hommey bd5b9568e1 Bug 1744886 - Override the vcpkg and cmake crates. r=firefox-build-system-reviewers,andi,mhentges
with mostly empty crates.

We don't want cargo to be unexpectedly calling into other build systems.

Differential Revision: https://phabricator.services.mozilla.com/D133848
2021-12-17 01:16:06 +00:00
Marian-Vasile Laza 18ee06e0b2 Backed out 2 changesets (bug 1744886) for causing build bustages. CLOSED TREE
Backed out changeset 6453423359d0 (bug 1744886)
Backed out changeset 7383efc30b77 (bug 1744886)
2021-12-16 02:13:41 +02:00
Mike Hommey 4b86be51fc Bug 1744886 - Override the vcpkg and cmake crates. r=firefox-build-system-reviewers,andi
with mostly empty crates.

Differential Revision: https://phabricator.services.mozilla.com/D133848
2021-12-15 21:40:22 +00:00
Mike Hommey 7fc0016de5 Bug 1744886 - Reorder Cargo.toml patches for convenience. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D133847
2021-12-15 21:40:22 +00:00
Cosmin Sabou 045a43b2c8 Backed out 2 changesets (bug 1712837) for causing an increase in crashes (bug 1735798). a=backout
Backed out changeset 51773d1ab7b5 (bug 1712837)
Backed out changeset 97b0a77e4ce7 (bug 1712837)
2021-12-15 12:24:03 +02:00
Dana Keeler fe0468b14a Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-13 23:59:08 +00:00
Cristian Tuns 9ad5101118 Backed out changeset 5396b58ddae7 (bug 1712837) for causing Android ARMv7 build bustages. a=backout 2021-12-10 09:35:39 -05:00
Dana Keeler c52192ebff Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-10 00:24:49 +00:00
Mike Hommey d82eec0cb3 Bug 1744677 - Remove Cargo.toml patch for wasmtime crates. r=rhunt
Apart from Cargo.toml being garbled by cargo on publication, what's
vendored is exactly the same as on crates.io, so we don't need to use a
patch to pull from git anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133040
2021-12-08 05:40:54 +00:00
Mike Hommey 5f59304205 Bug 1744668 - Upgrade viaduct to the version from application-services v84.0.0. r=markh
This removes the need for the local prost-derive patch.
Viaduct itself has not changed a whole lot.

Differential Revision: https://phabricator.services.mozilla.com/D133025
2021-12-08 05:23:04 +00:00
Sandor Molnar 40b66aba95 Backed out 3 changesets (bug 1744668) for causing multiple failures. CLOSED TREE
Backed out changeset 46c822b70a3f (bug 1744668)
Backed out changeset a1b048e394fe (bug 1744668)
Backed out changeset 49b593d05354 (bug 1744668)
2021-12-08 04:18:29 +02:00
Mike Hommey 4f85247807 Bug 1744668 - Upgrade viaduct to the version from application-services v87.1.0. r=markh
This removes the need for the local prost-derive patch.
Viaduct itself has not changed a whole lot.

Differential Revision: https://phabricator.services.mozilla.com/D133025
2021-12-07 21:25:29 +00:00
Mike Hommey ff6f9d7f54 Bug 1738133 - Undo workaround for https://github.com/rust-lang/rust/issues/88576. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D133015
2021-12-07 06:37:26 +00:00
Mike Hommey 0d44c1b862 Bug 1744643 - Upgrade cc to v1.0.72. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D133014
2021-12-07 01:55:42 +00:00
Andreea Pavel 041f6f706d Backed out 2 changesets (bug 1712837) for win build bustages on a CLOSED TREE
Backed out changeset e754af875d57 (bug 1712837)
Backed out changeset 020eaab241a8 (bug 1712837)
2021-12-07 02:21:09 +02:00
Dana Keeler 8d68ea1d86 Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-06 23:43:32 +00:00
Matthew Gregan ab4500a609 Bug 1743740 - Rename vendored mio 0.6 to make it possible to vendor later mio versions. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D132537
2021-12-02 05:39:49 +00:00
Csoregi Natalia 59f022092c Backed out 2 changesets (bug 1712837) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset e3ed61b61357 (bug 1712837)
Backed out changeset 19b9dfd60749 (bug 1712837)
2021-12-01 22:36:35 +02:00
Dana Keeler c02a76841b Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-01 18:10:34 +00:00
Marian-Vasile Laza 133cd29435 Backed out 2 changesets (bug 1712837) for causing mochitest and marionette test failures. CLOSED TREE
Backed out changeset ecfd23a7ef69 (bug 1712837)
Backed out changeset 51529cb4682e (bug 1712837)
2021-11-11 01:52:57 +02:00
Dana Keeler 15ebcb5e82 Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-11-10 21:48:47 +00:00
Mike Hommey d5c0037acd Bug 1739040 - Pick cc upstream patch for GCC 11 on armhf linux. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D130228
2021-11-03 03:30:29 +00:00
Mike Hommey 3e2e10708d Bug 1736459 - Handle null RawHandles in winapi-util. r=xpcom-reviewers,nika
This works around a regression in rust 1.56's libstd.

Differential Revision: https://phabricator.services.mozilla.com/D129571
2021-10-27 22:35:56 +00:00
Mike Hommey 23c14710ec Bug 1730397 - Update packed_simd to a version that supports rustc >= 1.56. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D125604
2021-09-17 08:55:04 +00:00
Cristian Tuns ddab55fd76 Backed out changeset 74e579530088 (bug 1730397) as requested by Glandium. CLOSED TREE 2021-09-17 02:56:11 -04:00
Mike Hommey 077579366c Bug 1730397 - Update packed_simd to a version that supports rustc >= 1.56. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D125604
2021-09-17 04:12:36 +00:00
Marian-Vasile Laza b228e7547d Backed out changeset 9af854b99136 (bug 1730397) as requested by the dev for causing SM bustages. CLOSED TREE 2021-09-15 11:42:13 +03:00
Mike Hommey 74279e7019 Bug 1730397 - Update packed_simd to a version that supports rustc >= 1.56. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D125604
2021-09-15 07:53:21 +00:00
Mike Hommey 1639e1ee88 Bug 1730397 - Apply prost-derive fix for function name collision. r=emilio
This applies edb1464b71
to our copy of prost 0.6.1.

Differential Revision: https://phabricator.services.mozilla.com/D125507
2021-09-15 07:53:20 +00:00
Dzmitry Malyshau 5695f517a5 Bug 1726626 - Move gfx/wgpu into a 3rd party dependency r=jgilbert,bholley
This update makes wgpu a vendored dependency instead of having it in gfx/wgpu.

## Notes


It relies on https://phabricator.services.mozilla.com/D123157

It has a quirk related to OpenGL ES backend. Previousy, we manually had to disable GL backend
in order to avoid vendoring WASM dependencies in. This time, manual editing is more complicated,
so instead this change adds a few cargo patch lines to point WASM dependencies to dummy projects.

The update also totally removes SPIRV-Cross, since the latest `wgpu` doesn't depend on it any more.
The compiled binary size for Gecko should improve with this.

Differential Revision: https://phabricator.services.mozilla.com/D123153
2021-09-03 16:52:08 +00:00
Gabriele Svelto 55e8eba74b Bug 1728431 - Update the vendored nix crate to version 0.15 r=KrisWright
This patch bumps the minidump_writer_linux crate but does not import any new
changes, the only difference is that it now depends on nix 0.15

Differential Revision: https://phabricator.services.mozilla.com/D124175
2021-09-02 06:13:52 +00:00
Dzmitry Malyshau c196398803 Bug 1726628 - Switch cargo resolver to 2 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D123157
2021-09-01 21:11:33 +00:00
Mike Hommey 0b4372e828 Bug 1721968 - Remove support for lucetc for rlbox. r=firefox-build-system-reviewers,shravanrn,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D120700
2021-08-11 21:58:52 +00:00
Jan-Erik Rediger 1dc3abde95 Bug 1670261 - Upgrade Glean, include glean-ffi and re-export its symbols. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D121084
2021-08-10 07:49:07 +00:00
Butkovits Atila 0474a346a1 Backed out 6 changesets (bug 1670261) for causing perma android bustage. CLOSED TREE
Backed out changeset 58ab9d5d45b7 (bug 1670261)
Backed out changeset e68f58dd9c24 (bug 1670261)
Backed out changeset af093190c4f7 (bug 1670261)
Backed out changeset 150c73837e22 (bug 1670261)
Backed out changeset c42784eeccee (bug 1670261)
Backed out changeset 45ab05c0c371 (bug 1670261)
2021-08-03 15:11:22 +03:00
Jan-Erik Rediger 7c32951ef9 Bug 1670261 - Upgrade Glean, include glean-ffi and re-export its symbols. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D121084
2021-08-02 16:22:45 +00:00
Henri Sivonen 78a66d15e6 Bug 1719674 - Make packed_simd compile with Rust 1.54. r=glandium
Cherry-pick upstream commits
58ba720df8
728d47506f
to update the shuffle API for const generics and to remove the unnecessary `const_fn`
feature gate.

Differential Revision: https://phabricator.services.mozilla.com/D119538
2021-07-15 08:42:08 +00:00
M. Sirringhaus 086d5c7b45 Bug 1714465 - Add ThreadNamesStream support to minidump_writer_linux. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D117154
2021-06-30 15:03:52 +00:00
Henri Sivonen b5366f5a31 Bug 1716709 - Remove RUSTC_BOOTSTRAP for xmldecl. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D117980
2021-06-17 06:44:25 +00:00
Mike Hommey 4665615833 Bug 1716518 - Upgrade crossbeam-related crates to newer releases. r=emilio
crossbeam-channel to v0.5.1
crossbeam-deque to v0.7.3
crossbeam-epoch to v0.8.2
crossbeam-utils to v0.6.6, v0.7.2, and v0.8.5

autocfg 0.1.6 ends up removed because nothing uses it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D117750
2021-06-15 20:39:43 +00:00
Deian Stefan ba18513783 Bug 1710685 - Part 1: Update RLBox lucetc to fix clock() on mac r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D116544
2021-06-08 17:40:21 +00:00
Henri Sivonen bd9a21c236 Bug 1706862 - Make chardetng detect half-width katakana. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D115209
2021-05-31 11:52:17 +00:00
Yury Delendik 986df9d9d5 Bug 1712634 - Update cranelift to version 0.74. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D115845
2021-05-25 17:38:20 +00:00
Csoregi Natalia b40f2c7919 Backed out 2 changesets (bug 1710685) for causing build bustage. CLOSED TREE
Backed out changeset 52b5058cff53 (bug 1710685)
Backed out changeset 0693e56e6e85 (bug 1710685)
2021-05-18 19:41:33 +03:00
Deian Stefan 00baae6102 Bug 1710685 - Part 1: Update RLBox lucetc to fix clock() on mac r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D114923
2021-05-18 15:25:00 +00:00
M. Sirringhaus cca1566127 Bug 1710099 - Update the minidump_writer_linux crate to replace the unmaintained memmap crate. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D114728
2021-05-10 13:00:45 +00:00
Yury Delendik 50fe06fce0 Bug 1706427 - Update wasmparser and cranelift. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D112806
2021-05-04 14:59:40 +00:00
Mike Hommey d674f870ce Bug 1709237 - Upgrade the failure crate to 0.1.8. r=emilio
Replace the use of a third-party github repo with a in-tree patch.

Differential Revision: https://phabricator.services.mozilla.com/D114191
2021-05-04 02:22:45 +00:00
Mike Hommey 64db9121c0 Bug 1708634 - Hack mio so that it depends on winapi 0.3 and miow 0.3. r=emilio
Ultimately, we'd want to upgrade to mio 0.7, but that's much more
involved.

Differential Revision: https://phabricator.services.mozilla.com/D113919
2021-04-30 09:17:56 +00:00
M. Sirringhaus 024220247f Bug 1706033 - Fix potential crash with out-of-bounds indexing r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D112554
2021-04-21 08:33:29 +00:00
Henri Sivonen 822fc2ac55 Bug 1702246 - Make the encoding detector tolerate extensions to legacy CJK encodings. r=emk
This patch tries to address the issue that legacy CJK extensions have various
extended variants where the core of the encoding is compatible but the edges
are incompatible. Without this patch, we reject e.g. Big5 if it has a single
character from the UAO extension or a single Windows end-user-defined character.

Likewise for the other legacy CJK encodings.

This patch tolerates:

* All Big5 extensions (the motivating part of this patch).
* Windows EUDC for EUC-KR.
* Classic Mac OS extensions to Shift_JIS, EUC-KR, GBK, and Big5 to the
  extent practical considering conflicting definitions of what constitutes
  a lead byte in the Encoding Standard but a single-byte extension in
  Classic Mac OS.
* JIS X 0213 / 2004 extensions to Shift_JIS and EUC-JP. (It's unclear if
  these have actual deployment.)

Tolerating means that the occurrence of an extension character doesn't
disqualify a candidate but only applies a penalty to the pending score.
If there is enough other convincing content, it should be able to overcome
the penalty.

Differential Revision: https://phabricator.services.mozilla.com/D111372
2021-04-13 13:14:35 +00:00
M. Sirringhaus 02ec742536 Bug 1676109 - Remove font and cache mappings from the Linux minidumps r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D99338
2021-04-12 20:58:08 +00:00
Gabriele Svelto 277338b229 Bug 1682509 - Add a Windows Error Reporting exception module capable of writing out crash reports r=dmajor
This is a minimal implementation of a WER exception module that can intercept
crashes of Firefox processes and write out a fully formed crash report, that is
a minidump, an .extra file containing the minimum annotations required by
Socorro and an event file.

The module in and by itself is not functional: an entry needs to be added to
the registry and the processes which want to be monitored need to register it
at runtime. With this patch applied it will only be built but it won't be
packaged with Firefox nor it will be used when doing local development.

The module implementation has a few notable properties:

* We use an empty C++ shim (mozwer) to build the module DLL. This is
  because the build system doesn't support building DLLs directly from Rust.
* The actual implementation is written in Rust (mozwer-rust) and exposes the
  callbacks that will be invoked by the WER service.
* We use the winapi crate to access Windows native functionality but given it
  is missing some bits (including upstream!) we declare them in our crate for
  the time being.
* The minidump uses the same options we use in Firefox and should be of
  similar size. I manually tested different type of crashes including
  __fastail() ones and they're all reliably captured.
* The .extra file contains only the annotations that are strictly required for
  submitting the crash to crash-stats.mozilla.org. More should be added in the
  future. The existing annotations are all extracted from within the module
  code because we have no way to access the ones that were stored in Firefox'
  crashed processes (nor should we, since we hope to catch crashes that happen
  even before Firefox sets up crash reporting internally).
* The module does not distinguish between main process and content process
  crashes at the moment. This will need to be implemented when we hook it up
  with the crash reporting code within Firefox.
* We use libc's time() function to get the crash time in order to be consistent
  with what the regular exception handler does.

Differential Revision: https://phabricator.services.mozilla.com/D101708
2021-04-07 07:55:23 +00:00
Henri Sivonen b98488aa92 Bug 673087 - Honor encoding declared via XML declaration in text/html. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D107806
2021-03-23 09:52:04 +00:00
Jeff Muizelaar 3c8ae4c16e Bug 1698295 - Build glsl with opt-level=2 to improve build times. r=glandium
This changes reduces the time spent in swgl shader translation
from 24s to 12s.

Differential Revision: https://phabricator.services.mozilla.com/D108327
2021-03-16 14:28:07 +00:00
M. Sirringhaus bcaf9b7cc1 Bug 1695646 - minidump_writer_linux mapping merge logic wrong r=gsvelto
The logic missed a pair of brackets, leading to memory regions
being merged that shouldn't have been merged (anonymous regions
with access flags set getting merged into the previous mapping)

Differential Revision: https://phabricator.services.mozilla.com/D106772
2021-03-05 13:32:27 +00:00
Dzmitry Malyshau 27e5308381 Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug
This is another WebGPU API update, it picks up a lot of changes that were made recently:
  - new bind group layout
  - new render pipeline descriptor
  - new vertex formats
  - limits
  - compressed texture formats
  - index format
  - query sets
  - and more small ones!

It also brings in the updated `gfx/wgpu` to support these API changes.

Differential Revision: https://phabricator.services.mozilla.com/D107013
2021-03-04 21:25:46 +00:00
Brindusan Cristian cae8a0ef30 Backed out changeset 0c0c723b0a0e (bug 1622846) for build bustages in Device.h. CLOSED TREE 2021-03-04 22:02:58 +02:00
Dzmitry Malyshau 65199ec16a Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug
This is another WebGPU API update, it picks up a lot of changes that were made recently:
  - new bind group layout
  - new render pipeline descriptor
  - new vertex formats
  - limits
  - compressed texture formats
  - index format
  - query sets
  - and more small ones!

It also brings in the updated `gfx/wgpu` to support these API changes.

Differential Revision: https://phabricator.services.mozilla.com/D107013
2021-03-04 17:48:28 +00:00
Mike Hommey 39a14165d0 Bug 1694318 - Remove the mozjs_sys rust crate. r=jandem
The mozjs_sys crate is actually responsible for all the problems
encountered with the js crate we just removed, but the sm-mozjs-crate
task that builds and runs tests for it doesn't fail because... there is
actually no test to build and run, so all it builds is a static library,
which doesn't expose all the problems that exist.

The content of this crate in mozilla-central is also outdated compared
to servo upstream.

Differential Revision: https://phabricator.services.mozilla.com/D106390
2021-03-02 08:09:35 +00:00
Mike Hommey 93e7a214c2 Bug 1694318 - Remove the js rust crate. r=jandem,sheehan
The sm-rust-bindings task that builds and runs tests for it actually only
doesn't fail by three(!) distinct happenstances of chance:
- It somehow doesn't hit a race condition that can happen, but that
  attempting to change the build process for jsglue.cpp did,
- The second call to `cargo test` without `--feature debugmozjs` only
  works because nothing was cleaned up from the first and the second
  build uses artifacts from the first that are otherwise not there if
  only running the second.
- The addition of rust code to spidermonkey (the jsrust crate in
  js/src/rust) somehow didsn't cause problems in the current
  configuration, but in other configurations (which fixing the second
  thing above unveils) the build fails because of the multiple
  definition of rust_eh_personality between the jsrust staticlib and the
  rust stdlib that rustc links to test programs.

On top of all the above, the content of the crate in mozilla-central
has not received updates from upstream servo in years, and doesn't
reflect what servo actually uses.

Differential Revision: https://phabricator.services.mozilla.com/D106389
2021-03-02 08:09:35 +00:00
Matthew Gregan 2220e66486 Bug 1693270 - Switch audioipc-2 to vendored code - remove old linting paths. a=lint-fix
CLOSED TREE

Build fix - remove obsolete media/audioipc path from linting exclusions.

Differential Revision: https://phabricator.services.mozilla.com/D105510
2021-02-17 20:40:57 +00:00
M. Sirringhaus 1f377765b0 Bug 1666733 - Add error reporting to minidump generation (Linux) r=gsvelto
Linux only, as part of the oxidization effort (Bug 1620993) of breakpad.

Differential Revision: https://phabricator.services.mozilla.com/D103895
2021-02-10 10:05:37 +00:00
M. Sirringhaus d4644353c1 Bug 1666733 - Rebase to latest upstream changes (ARM specific, which is still deactivated) r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D104537
2021-02-10 10:05:36 +00:00
Julian Seward c757334be6 Bug 1689950 - Vendor in CL a25399760e9f12b679aa267dd2af7cfedc72bb71. Part 1: hash changes. r=yury.
Revendor CL to a25399760e9f12b679aa267dd2af7cfedc72bb71 from
https://github.com/mozilla-spidermonkey/wasmtime, branch firefox85.
This pulls in three code-correctness fixes that have accumulated in
the past month:
https://github.com/bytecodealliance/wasmtime/pull/{2548,2556,2559}.

Differential Revision: https://phabricator.services.mozilla.com/D103672
2021-02-01 16:18:47 +00:00
M. Sirringhaus 5d4a325c23 Bug 1688882 - Always inform the main process that a minidump has been generated, even if it's incomplete r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D103041
2021-01-28 14:17:34 +00:00
Henri Sivonen 9b210c311e Bug 1686463 - Gather telemetry about automatic encoding detection outcomes. r=chutten,emk
Differential Revision: https://phabricator.services.mozilla.com/D102397
2021-01-24 00:11:07 +00:00
Mike Hommey dbc3d9867f Bug 1685697 - Hide the rustc output from autocfg. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101861
2021-01-15 12:19:13 +00:00
Mike Hommey e4bf32e4f8 Bug 1686888 - Stop building dump_syms. r=gsvelto
Now that we use an external dump_syms, we don't need to build
breakpad's.

This means we also don't need the dump_syms_rust_demangle crate anymore.

Differential Revision: https://phabricator.services.mozilla.com/D101865
2021-01-15 10:31:48 +00:00
M. Sirringhaus 5299ba12e6 Bug 1620993 - Rewrite the Linux-specific minidump writer code in Rust r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D98744
2021-01-14 11:01:59 +00:00
Razvan Maries 21321565f6 Backed out changeset 9fabf5ced4d3 (bug 1620993) for OSX Build bustages. CLOSED TREE 2021-01-13 12:57:41 +02:00
M. Sirringhaus 3665b8d70a Bug 1620993 - Rewrite the Linux-specific minidump writer code in Rust r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D98744
2021-01-13 10:37:29 +00:00
Emilio Cobos Álvarez 3bd15f9e8e Bug 1684261 - Fix build with rust nightly. r=jrmuizel
Fixes errors like:

  dependency (nix) specification is ambiguous. Only one of `branch`, `tag` or `rev` is allowed.

I've left the most specific dependency, but for wgpu the rev is not
right, so I've kept the branch which effectively preserves behavior.

Differential Revision: https://phabricator.services.mozilla.com/D100485
2020-12-26 18:16:05 +00:00
Adam Gashlin f949e155a3 Bug 1681574: Remove the old update agent skeleton. r=nalexander
I'm keeping the --enable-update-agent config option and the corresponding
MOZ_UPDATE_AGENT config flag and define, as these should still be useful.

As we never shipped this there is no need to keep anything around to
clean up the scheduled tasks.

Differential Revision: https://phabricator.services.mozilla.com/D99574
2020-12-15 19:00:25 +00:00
Julian Seward 7564a2282f Bug 1681485 - Revendor Cranelift to 3334d92350da40b90d2529c147db3ea44918b558. r=lth.
Revendor Cranelift to 3334d92350da40b90d2529c147db3ea44918b558
from https://github.com/mozilla-spidermonkey/wasmtime branch firefox85.
The (only) purpose is to pull in this fix for an apparently rare but serious
LICM bug:

Fix missing modification of jump table in LICM.
See https://github.com/bytecodealliance/wasmtime/pull/1697

Differential Revision: https://phabricator.services.mozilla.com/D99230
2020-12-10 06:51:48 +00:00
shravanrn@gmail.com d475a75904 Bug 1670878: Instantiating a large number of wasm library sandboxes crashes due to overuse of file descriptors r=tjr
Instantiating a wasm library duplicates a file descriptor for /dev/null 3 times to be used as input, output and error streams for the wasm sandboxed code. When a lot of sandboxes are created and destroyed, a lot of descriptors are duplicated and closed. While this should be fine, POSIX does not seem to happy with the opening and closing of many file descriptors --- this could perhaps be some strange interaction with Firefox's seccomp filters and cross-process file descriptor handling as it is difficult to repro this outside of firefox.

However, the simpler fix here was to just eliminate the duplication of /dev/null and return an error when input, output or error streams are accessed by wasm sandboxed code. This means calls to printf will fail, but no code I know off actually checks the int error code returned by printf and this change is certainly compatible with existing sandboxed components.

Differential Revision: https://phabricator.services.mozilla.com/D99160
2020-12-09 21:54:03 +00:00
Julian Seward 7e62d43bab Bug 1681450 - Revendor Cranelift to 3b01b4b850bafb981a04383198c0b50d041dc5ef. r=lth.
Revendor Cranelift to 3b01b4b850bafb981a04383198c0b50d041dc5ef
from https://github.com/mozilla-spidermonkey/wasmtime branch firefox85.
The (only) purpose is to pull in this:

commit 31bac3eafbfda8f1ffb504cdeb75505d48537336
Merge: 93c199363 34d9931ed
Author: Nick Fitzgerald <fitzgen@gmail.com>
Date: Wed Nov 25 13:09:05 2020 -0800

Merge pull request #2450 from bytecodealliance/cfallin/fix-wasm-reachable

Fix Wasm translator bug: end of toplevel frame is branched-to only for fallthrough returns.

Differential Revision: https://phabricator.services.mozilla.com/D99204
2020-12-09 12:05:52 +00:00
Julian Seward 5638b306c1 Bug 1678785 - AddressSanitizer: SEGV [@ vixl::Memory::Read]. r=lth.
Differential Revision: https://phabricator.services.mozilla.com/D98932
2020-12-07 16:26:17 +00:00
Julian Seward f082e74406 Bug 1680509 - Vendor in CL ac58a436ed84d1a88b4ff24367c5972cf8d3d405. Part 1: hash and API changes. r=yury.
Revendor CL to ac58a436ed84d1a88b4ff24367c5972cf8d3d405 from
https://github.com/mozilla-spidermonkey/wasmtime, branch firefox85.

This pulls in a version of our private wasmtime tree that properly refers to
our private versions of the regalloc.rs and wasm-tools trees, also at
https://github.com/mozilla-spidermonkey.  With this patch in place, we will be
decoupled from upstream commits to wasmtime, wasm-tools (wasmparser), and
regalloc.rs.

Differential Revision: https://phabricator.services.mozilla.com/D98647
2020-12-03 20:01:22 +00:00
Emilio Cobos Álvarez 04229a0075 Bug 1680080 - Optimize proc macros / build dependencies. r=glandium,firefox-build-system-reviewers,mhentges
On a very parallel debug build, I see a long time just waiting for
bindgen / style compilation / geckoservo.

Turns out that a bunch of this is just proc macros / build scripts.

Optimizing it saves between 10 and 17 seconds of my debug build. We
might want to consider running bindgen much like cbindgen rather than
rebuilding it all the time, which should help a lot more, but my guess
is that this should still help with the pretty hot custom derives that
the style crate runs.

This needs rust 1.41, so the requirement for tools/crashreporter needs
to be bumped as a consequence. To make things simpler, it was bumped
to 1.47 while we're at it.

Differential Revision: https://phabricator.services.mozilla.com/D98366
2020-12-04 01:35:51 +00:00
Henri Sivonen c55405f18e Bug 1678175 - Avoid detecting windows-1252 euro sign as GBK. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D98005
2020-11-29 08:07:45 +00:00
Julian Seward f28cf588c0 Bug 1677452 - Update Cranelift to firefox85 / dcc52ba3f69d3de7cdbd787b936825d9c61e3c27 and wasmparser to 0.67: Part 1 - hash and API changes. r=lth.
This updates the relevant CL and wasmparser versions:

* wasmparser 0.67

* Cranelift/wasmtime to dcc52ba3f69d3de7cdbd787b936825d9c61e3c27
  on branch firefox85 at https://github.com/mozilla-spidermonkey/wasmtime

It also includes the following changes needed to track CL/wasmparser ABI changes:

* test suite: track improvements to validation-failure expected outputs.

* wasm/cranelift/src/bindings/mod.rs, ModuleEnvironment::signature: track
  CL-side changes towards module-linking support.

* wasm/cranelift/src/wasm2clif.rs: FuncEnvironment::translate_memory_copy:
  track CL-side changes for supporting multiple memories.

Differential Revision: https://phabricator.services.mozilla.com/D97587
2020-11-19 18:50:12 +00:00
Dzmitry Malyshau f9116a751d Bug 1622846 - Serialize WebGPU descriptors via Serde for IPC r=jgilbert,webidl,smaug
This PR updates wgpu to the latest and changes the way we pass object descriptors to the GPU process.
Instead of trying to convert them between DOM-CPP-IPDL-FFI-Rust, we now do DOM-FFI-Rust
and serialize them by serde into ipc::ByteBuf objects.

Differential Revision: https://phabricator.services.mozilla.com/D94908
2020-11-07 02:43:09 +00:00
Csoregi Natalia 1a3ae2644d Backed out changeset bdd3d7eb5927 (bug 1622846) for linux bustage on gfx/wgpu/wgpu-types/src/lib.rs. CLOSED TREE 2020-11-07 00:48:50 +02:00
Dzmitry Malyshau 505438ed91 Bug 1622846 - Serialize WebGPU descriptors via Serde for IPC r=jgilbert,webidl,smaug
This PR updates wgpu to the latest and changes the way we pass object descriptors to the GPU process.
Instead of trying to convert them between DOM-CPP-IPDL-FFI-Rust, we now do DOM-FFI-Rust
and serialize them by serde into ipc::ByteBuf objects.

Differential Revision: https://phabricator.services.mozilla.com/D94908
2020-11-06 18:59:27 +00:00
Henri Sivonen 33c996c701 Bug 1667736 - Update packed_simd to compile on Rust 1.48. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D91572
2020-10-30 08:29:53 +00:00
Chris Fallin 7a5957abe6 Bug 1669055: Vendor Cranelift e22e2c3722f2fbccd3c8d3230119fa04c332c69c. r=jseward
This patch pulls in an updated Cranelift with a new validation strategy,
introduced by bytecodealliance/wasmtime#2059. This new design validates
the Wasm module as it parses the function bodies. A subsequent patch
will adapt Baldrdash to work with this.

Differential Revision: https://phabricator.services.mozilla.com/D92503
2020-10-07 06:25:50 +00:00
Razvan Maries 8674a04012 Backed out 2 changesets (bug 1655042, bug 1669055) for build bustages. CLOSED TREE
Backed out changeset 0807415f1ea5 (bug 1655042)
Backed out changeset bb5e11920e1a (bug 1669055)
2020-10-07 09:20:25 +03:00
Chris Fallin b1ad6c43eb Bug 1669055: Vendor Cranelift e22e2c3722f2fbccd3c8d3230119fa04c332c69c. r=jseward
This patch pulls in an updated Cranelift with a new validation strategy,
introduced by bytecodealliance/wasmtime#2059. This new design validates
the Wasm module as it parses the function bodies. A subsequent patch
will adapt Baldrdash to work with this.

Differential Revision: https://phabricator.services.mozilla.com/D92503
2020-10-07 03:44:43 +00:00
Butkovits Atila ad041bcdda Backed out changeset 34fddbf97cc7 (bug 1669055) for bustages complaining about rust. CLOSED TREE 2020-10-07 01:44:54 +03:00
Chris Fallin b560ffb6f2 Bug 1669055: Vendor Cranelift e22e2c3722f2fbccd3c8d3230119fa04c332c69c. r=jseward
This patch pulls in an updated Cranelift with a new validation strategy,
introduced by bytecodealliance/wasmtime#2059. This new design validates
the Wasm module as it parses the function bodies. A subsequent patch
will adapt Baldrdash to work with this.

Differential Revision: https://phabricator.services.mozilla.com/D92503
2020-10-06 16:52:57 +00:00
Chris Fallin 2e04279f34 Bug 1668398: vendor Cranelift 57fed697920cb888c6cb7e406d13518f7edd12ea. r=bbouvier
This patch pulls in the latest version of Cranelift, which includes
necessary updates to support some recent work on the Wasm backend (e.g.,
support for the new ABI in PR #2223).

Differential Revision: https://phabricator.services.mozilla.com/D92000
2020-10-02 20:02:51 +00:00
Butkovits Atila 983d99240d Backed out changeset 92a01ad5e890 (bug 1668398) for bustages complaining about ABIMachineSpec. CLOSED TREE 2020-10-02 03:49:26 +03:00
Chris Fallin 65f126f9c6 Bug 1668398: vendor Cranelift b8f0dc429f2b886e7423122223393b2c7ee3cd4f. r=bbouvier
This patch pulls in the latest version of Cranelift, which includes
necessary updates to support some recent work on the Wasm backend (e.g.,
support for the new ABI in PR #2223).

Differential Revision: https://phabricator.services.mozilla.com/D92000
2020-10-01 17:28:30 +00:00
Chris Fallin 0931312b73 Bug 1664453: vendor Cranelift to 379aed8092cd1241ec7839e77d05557b1dceb234 to resolve two Wasm translation bugs. r=jseward
This Cranelift update to revision 379aed8092cd1241ec7839e77d05557b1dceb234
includes its PRs #2197 and #2194, which fix two Wasm translation bugs, as well a
other miscellaneous updates and fixes.

Fixes both Bug 1664453 and Bug 1663861.

Differential Revision: https://phabricator.services.mozilla.com/D90306
2020-09-15 20:01:26 +00:00
Benjamin Bouvier 1893cc05f1 Bug 1661723; Bump Cranelift to a7f7c23bf9c37c642da962d575b7c99007918872; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D88784
2020-08-31 16:34:29 +00:00
Mihai Alexandru Michis 261d01524b Backed out changeset d0f173a90792 (bug 1519636) for causing bustages.
CLOSED TREE
2020-08-31 10:14:58 +03:00
Sylvestre Ledru 939dd426e6 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D88713
2020-08-31 06:51:21 +00:00
Julian Seward 4586eba01b Bug 1660976 - Bump Cranelift to 7c856542854bc8c5da9d5fb1a0b41f3c660d8484; r=bbouvier.
Differential Revision: https://phabricator.services.mozilla.com/D88132
2020-08-25 10:55:46 +00:00
Chris Fallin b4d17c8c71 Bug 1659803: Bump Cranelift to rev 924782191b1cdd85438b707d20a82fbcc8ad40e1. r=jseward
This PR pulls in the latest version of Cranelift, which pulls in
regalloc.rs v0.0.30 and consequently includes some improvements in
memory allocation rate during compilation. No behavior changes expected.

Differential Revision: https://phabricator.services.mozilla.com/D87479
2020-08-18 19:07:53 +00:00
Chris Fallin c95dc245f5 Bug 1659139: Update vendored Cranelift to 279534e27611ee4a13e4590a0a10ffc0fdb95a33. r=jseward
This pulls in an upgrade to regalloc.rs v0.0.29, which brings several
performance improvements.

Differential Revision: https://phabricator.services.mozilla.com/D87096
2020-08-14 18:36:25 +00:00
Chris Fallin 32d18173b8 Bug 1657895: fix fuzzbug by vendoring Cranelift to rev e88d74903102266a18e97489557760b9be67f782. r=jseward
This pulls in (in addition to other miscellaneous changes) a Cranelift
PR which fixes a Wasm translation issue in which the value stack was not
properly restored to have the if-block-parameters in the else-branch
after the if-branch ended in an unreachable opcode:

https://github.com/bytecodealliance/wasmtime/pull/2120

Differential Revision: https://phabricator.services.mozilla.com/D86459
2020-08-10 20:21:48 +00:00
shravanrn@gmail.com 12c83a7c60 Bug 1649631 - Fix wasi issues in clang-11 builds r=froydnj,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D85741
2020-08-06 19:22:24 +00:00
Chris Fallin 534b2e3e86 Bug 1657062: vendor Cranelift to rev fc88898e9ad7766feadfa0954c4594fcccd86b92 to fix fuzzbug. r=jseward
This patch vendors in the latest version of Cranelift, including the
following PR, which fixes this fuzzbug:

https://github.com/bytecodealliance/wasmtime/pull/2097

Differential Revision: https://phabricator.services.mozilla.com/D86044
2020-08-05 17:40:30 +00:00
Julian Seward ac0184c255 Bug 1657131 - Bump cranelift version to 25e31739a63b7a33a4a34c961b88606c76670e46. r=cfallin.
Differential Revision: https://phabricator.services.mozilla.com/D85886
2020-08-04 18:53:20 +00:00
Chris Fallin d70b8edad9 Bug 1655848: vendor in new Cranelift to fix fuzzbug. r=jseward
This patch vendors in the latest version of Cranelift, rev
026fb8d388964c7c1bace7019c4fe0d63c584560. This includes a fix for bug
1655848 (from GitHub PR #2081), as well as several other miscellaneous
changes.

Differential Revision: https://phabricator.services.mozilla.com/D85773
2020-08-03 16:53:46 +00:00
Benjamin Bouvier 2269596e45 Bug 1654813 - Bump Cranelift to dd098656111396afa58e90084a705744e836bf10; r=cfallin
This is waiting on https://github.com/bytecodealliance/wasmtime/pull/2068 to be
landed first.

Differential Revision: https://phabricator.services.mozilla.com/D84711
2020-07-31 17:57:34 +00:00
Nathan Froyd 9d38c2fd4a Bug 1655929 - bump upstream versions of rlbox + lucet; r=firefox-build-system-reviewers,rstewart
We need this bump for a couple of reasons:

1. It enables floating the libc crate version, which makes keeping up-to-date
   with upstream changes easier.
2. It enables floating the getrandom crate version, which enables updating
   getrandom to a version with less buggy behavior around the Linux
   `getrandom` syscall on some architectures.

We also take this opportunity to sync up our vendored lucet with the lucet
that we use to build things in taskcluster.

Differential Revision: https://phabricator.services.mozilla.com/D85408
2020-07-30 15:55:30 +00:00
Nick Alexander 89e6512181 Bug 1636539 - Part 2: Add defaultagent-static Rust crate fetching remote disabled flag. r=bytesized
This lays out a Rust crate and statically links it into
`windows-default-agent.exe`.  It declares a single-method API (which
will be invoked in the next commit).

Strings cross the C/C++ <-> Rust FFI boundary as null-terminated
UTF-8.  (This will matter more if and when we use ETag and
If-None-Match to get 304 results.)

Errors are reported as Windows result codes, with the "customer" bit
set to encode certain classes of failure.

The bulk of the work is in implementing a
[Viaduct](https://github.com/mozilla/application-services/tree/master/components/viaduct)
backend built on top of `wininet.dll`.  The motivation is that if and
when this Remote Settings Rust client grows features (say,
Content-Signature: verification), then by using Viaduct there is a
smooth path to consume the client inside Firefox itself, because
Viaduct already has a backend on top of Necko.  That makes this
abstraction relatively low friction: it exists, is in-tree already,
and has a path to use in Gecko proper.

It is expected that the layer above this will handle "gracefully
failing", either open or closed; and will mirror Remote Settings
configuration to the registry so that testers can use prod/stage/dev
easily.

For follow-up:

- Configure logging to use the Windows event logger.  See [Bug
  1648617](https://bugzilla.mozilla.org/show_bug.cgi?id=1648617).

- Consider propagating errors into the Telemetry we send.

Differential Revision: https://phabricator.services.mozilla.com/D78579
2020-07-21 22:17:26 +00:00
Chris Fallin 1438721c3a Bug 1653502: Update vendored Cranelift to fix fuzzbug. r=bbouvier
This patch pulls in revision 1b3b2dbfd00492161032760992a8699d19b640ca of
Cranelift. This includes PR bytecodealliance/wasmtime#2042, which fixes
bug 1653502 by properly masking the shift amount in a shift incorporated
into an aarch64 arithmetic instruction.

This patch also includes various other miscellaneous Cranelift
improvements that have been merged since the last version-bump,
including some aarch64 codegen improvements.

Differential Revision: https://phabricator.services.mozilla.com/D84101
2020-07-20 10:04:31 +00:00
Chris Fallin c07df47355 Bug 1633721, part 1 of 2: Bump Cranelift to revision 5e0268a542f612fee36d0256ed1f6a0e18dc02b3. r=bbouvier
This patch updates the vendored version of Cranelift, pulling in the
reference-types support recently merged in Cranelift's PR
bytecodealliance/wasmtime#1852. Usage of this update to support reftypes
in SpiderMonkey on aarch64 is added in the subsequent commit.

Differential Revision: https://phabricator.services.mozilla.com/D83582
2020-07-16 19:15:05 +00:00
Chris Fallin 35cf81d389 Bug 1648885 and Bug 1649432: vendor latest Cranelift to get Spectre mitigations and fix fuzzbug. r=bbouvier
This patch pulls in Cranelift revision
47a218f908e6bdeb7a0fb65ed74e58a0b608080d, which incorporates several
relevant changes:

- It includes the Spectre mitigation for explicit heap bounds checks
  merged in PR bytecodealliance/wasmtime#1930, resolving Bug 1648885.

- It includes the fix for an out-of-bounds subtraction on large shift
  amounts merged in PR bytecodealliance/wasmtime#1954, resolving Bug
  1649432.

We need to temporarily disable the `wasm/limits.js` jit-test on
Cranelift configurations because it now needs shared memory to work, and
the Cranelift backend does not support this yet. Given that this should
be ready in the next month at most (requires atomics support on AArch64,
which is currently being examined), it seems simpler to temporarily
disable the test on aarch64 than to try to disentangle the bits that
depend on shared memories explicitly.

This patch also edits the `regexp/bug1445907.js` jit-test to run only if
Wasm debugging is supported. This is needed for the test not to fail
with `--wasm-compiler=cranelift` (which disables Baseline, the only Wasm
compiler that supports debugging).

Differential Revision: https://phabricator.services.mozilla.com/D81936
2020-07-02 15:47:56 +00:00
J.C. Jones b3dd4acf6b Bug 1649227 - Upgrade authenticator-rs to v0.2.13 r=kjacobs
https://crates.io/crates/authenticator/0.2.13
- Support for Linux on MIPS
- Fix a race condition in the main state machine causing repeated signature requests

Differential Revision: https://phabricator.services.mozilla.com/D81604
2020-06-29 21:26:19 +00:00
Ted Campbell 4b5638af5a Bug 1642708 - Remove BinAST Rust modules r=arai,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77947
2020-06-17 13:57:07 +00:00
Csoregi Natalia e722c196bc Backed out 5 changesets (bug 1642708) for build bustages. CLOSED TREE
Backed out changeset d307b00c7e1b (bug 1642708)
Backed out changeset d210a60ad435 (bug 1642708)
Backed out changeset bcc2728b5ca5 (bug 1642708)
Backed out changeset 1c245d4e8244 (bug 1642708)
Backed out changeset ad613fa94a83 (bug 1642708)
2020-06-17 16:51:16 +03:00
Ted Campbell b08256508e Bug 1642708 - Remove BinAST Rust modules r=arai,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77947
2020-06-17 13:22:41 +00:00
Benjamin Bouvier 23b40c5736 Bug 1645336: Bump Cranelift to 238ae3bf2111847f60089656eb97fc9345295b1f; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D79659
2020-06-15 10:16:20 +00:00
Chris Fallin 771d76eb57 Bug 1641504: Bump Cranelift to 4d5fdfcbba1a8f38002a4223d7a329fc795d0e9f. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-11 23:34:39 +00:00
Razvan Maries d641e64a5e Backed out 3 changesets (bug 1641504) for valgrind bustages. CLOSED TREE
Backed out changeset 95646dbd26a1 (bug 1641504)
Backed out changeset bf1919e75e65 (bug 1641504)
Backed out changeset dedeac296eaa (bug 1641504)
2020-06-11 23:56:02 +03:00
Chris Fallin 6944be383a Bug 1641504: Bump Cranelift to e3d89c8a92a5fadedd75359b8485d23ac45ecf29. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-09 22:37:06 +00:00
Dzmitry Malyshau 6c3a233284 Bug 1636068 - Update spirv-cross to 0.20.0 r=groves
This change updates spirv-cross to a new version.
Unlike the previous one, it now points to a SPIRV-Cross submodule in
https://github.com/kvark/SPIRV-Cross behind "gecko3" branch, which will guarantee the rev
to be accessible.

Differential Revision: https://phabricator.services.mozilla.com/D75648
2020-05-16 02:27:33 +00:00
Benjamin Bouvier 9d52aedf32 Bug 1618595 - Bump Cranelift to b7cfd39b531680217537cfcf5294a22077a0a58d; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D73251
2020-04-30 11:57:24 +00:00
Dzmitry Malyshau 06da709344 Bug 1629891 - Fix spirv-cross revision in root Cargo.toml overrides r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D70900

--HG--
extra : moz-landing-system : lando
2020-04-14 17:18:05 +00:00
Dzmitry Malyshau e8a60d2eab Bug 1624174 - Update wgpu to get the coordinate spaces right r=jgilbert
The updated wgpu has the coordinate space fixes.
Depends on

  - https://phabricator.services.mozilla.com/D70421
  - https://phabricator.services.mozilla.com/D70432
  - https://phabricator.services.mozilla.com/D70646

Differential Revision: https://phabricator.services.mozilla.com/D70140

--HG--
rename : third_party/rust/rendy-descriptor/Cargo.toml => third_party/rust/gfx-descriptor/Cargo.toml
rename : third_party/rust/rendy-memory/Cargo.toml => third_party/rust/gfx-memory/Cargo.toml
rename : third_party/rust/rendy-memory/src/allocator/dynamic.rs => third_party/rust/gfx-memory/src/allocator/general.rs
rename : third_party/rust/rendy-memory/src/heaps/heap.rs => third_party/rust/gfx-memory/src/heaps/heap.rs
rename : third_party/rust/rendy-memory/src/utilization.rs => third_party/rust/gfx-memory/src/stats.rs
extra : moz-landing-system : lando
2020-04-13 13:42:15 +00:00
Benjamin Bouvier 0c19028f8f Bug 1626967: bump Cranelift to 6a68130d5b0296379fae0b8de5fbb8a1499b67a5; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D69977

--HG--
extra : moz-landing-system : lando
2020-04-10 09:52:55 +00:00
Sebastian Hengst b5fa1b7063 Backed out 4 changesets (bug 1626967) for breaking Raptor tests godot-c and wm-c. a=backout
Backed out changeset 985eea91c36c (bug 1626967)
Backed out changeset 837dab8ce31c (bug 1626967)
Backed out changeset f48ad40e60af (bug 1626967)
Backed out changeset 29aaf3ff21ea (bug 1626967)

--HG--
extra : amend_source : 8f86b92aa59cde8a0fdc9fec7b9994c79a6f19df
2020-04-08 10:06:47 +02:00
Benjamin Bouvier 5333bbb793 Bug 1626967: bump Cranelift to 6a68130d5b0296379fae0b8de5fbb8a1499b67a5; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D69977

--HG--
extra : moz-landing-system : lando
2020-04-07 10:43:14 +00:00
Michal Novotny e4de0c38d1 Bug 1587353 - Add an http3 test server r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D48666

--HG--
extra : moz-landing-system : lando
2020-03-28 20:06:41 +00:00
Jon Bauman 6ec77fef76 Bug 1624057 - Update mp4parse-rust to 63ca8c6. r=kinetik
Also update the update-rust.sh script in a couple ways:
- Stop copying the source for mp4parse_fallible into the tree; use crates.io
- Include submodules in mp4parse-rust checkout; needed for tests
- Exclude unnecessary build.rs from mp4parse_fallible, it was causing problems
- Update mp4rust_capi/Cargo.toml patch to exclude cdylib. It's only necessary for test_ffi and causes build problems otherwise

Differential Revision: https://phabricator.services.mozilla.com/D68139

--HG--
extra : moz-landing-system : lando
2020-03-26 02:08:51 +00:00
Benjamin Bouvier e8a9503af3 Bug 1620284 - Bump Cranelift to 5cfcbeb59d477e028c6fb312f1cf63aa711fcc3c; r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D65557

--HG--
extra : moz-landing-system : lando
2020-03-25 14:43:05 +00:00
Michael Woerister 5327bb2166 Bug 1623085 - Only explicitly set number of Rust codegen-units for target artifacts. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D67162

--HG--
extra : moz-landing-system : lando
2020-03-17 16:47:52 +00:00