Commit graph

2102 commits

Author SHA1 Message Date
Mike Hommey
f0ee4a497a Bug 1853084 - Upgrade mio to 0.8.8. r=emilio,supply-chain-reviewers
Now that windows-sys is vendored, we can upgrade mio to a version that
uses it.

Differential Revision: https://phabricator.services.mozilla.com/D188154
2023-09-18 19:55:21 +00:00
Mike Hommey
4b2bb2c544 Bug 1853084 - Vendor windows-sys. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D188153
2023-09-18 19:55:17 +00:00
John Schanck
0dc5162e6f Bug 1851656 - add fuzzing.webauthn.authenticator_config pref. r=keeler,jkratzer
Differential Revision: https://phabricator.services.mozilla.com/D187509
2023-09-06 17:58:02 +00:00
Drew Willcoxon
d9464e5021 Bug 1851256 - Part 1: Vendor the application-services suggest Rust component into mozilla-central. r=lina
This is part 1 of 3 and vendors the [suggest component](https://github.com/mozilla/application-services/tree/main/components/suggest) from
application-services into m-c. `suggest` depends on `remote_settings`, so it was
also vendored. Part 2 will generate JS bindings with uniffi.

This is my first time doing this so I'll explain how I generated this patch in
case I did something wrong:

1. I manually added `suggest` to the following files:
   * Top-level `Cargo.toml`
   * `toolkit/library/rust/shared/Cargo.toml`
   * `toolkit/library/rust/shared/lib.rs` -- I followed the example of `tabs`,
     not sure if `suggest::uniffi_reexport_scaffolding!()` is necessary
2. I ran `./mach vendor rust`

That's it, there were no errors or problems.

Differential Revision: https://phabricator.services.mozilla.com/D187323
2023-09-05 21:11:57 +00:00
Dana Keeler
58b11864ed Bug 1840135 - introduce rust implementation of nsIDataStorage r=nkulatova,nika,mak
Differential Revision: https://phabricator.services.mozilla.com/D181904
2023-09-05 17:14:51 +00:00
Stanca Serban
17fb8bac17 Backed out changeset 50b448b2d902 (bug 1532281) for causing Linux build bustages. CLOSED TREE 2023-09-05 11:38:18 +03:00
stransky
60dc5e2272 Bug 1532281 [Linux] Don't build with dbus-glib r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D187208
2023-09-05 08:14:21 +00:00
Iulian Moraru
02731904bb Backed out changeset e69a7143b38d (bug 1840135) for causing failures on test_sss_sanitizeOnShutdown.js.CLOSED TREE 2023-09-01 07:55:01 +03:00
Dana Keeler
b88348a253 Bug 1840135 - introduce rust implementation of nsIDataStorage r=nkulatova,nika,mak
Differential Revision: https://phabricator.services.mozilla.com/D181904
2023-08-31 18:20:43 +00:00
Norisz Fay
b16c6e1f04 Backed out changeset 568451480af9 (bug 1840135) for causing bustage on DataStorageManager.cpp CLOSED TREE 2023-08-31 03:12:12 +03:00
Dana Keeler
05774ab008 Bug 1840135 - introduce rust implementation of nsIDataStorage r=nkulatova,nika,mak
Differential Revision: https://phabricator.services.mozilla.com/D181904
2023-08-30 22:17:11 +00:00
Jeff Muizelaar
c3b462663f Bug 1849487. Futher improve miter joining. r=lsalzman
This avoids numerical stability problems when computing the
miter pointer intersection when the lines are nearly parallel.

Differential Revision: https://phabricator.services.mozilla.com/D187057
2023-08-30 01:42:23 +00:00
Jeff Muizelaar
bbe138bbe0 Bug 1841020. Improve miter joining. r=lsalzman
This updates aa-stroke to c7bc7190f6d3115bc81640c0433649c1fce9491c
which fixes some degenerate behaviour when mitering parallel lines.

Differential Revision: https://phabricator.services.mozilla.com/D186859
2023-08-28 01:10:12 +00:00
Cristian Tuns
7042a4a444 Backed out changeset efeef29d315b (bug 1841020) as requested by jrmuizel. CLOSED TREE 2023-08-26 09:16:22 -04:00
Jeff Muizelaar
148a8b6a3f Bug 1841020. Improve miter joining. r=lsalzman
This updates aa-stroke to fef8702c4c8afd7d47e7a5aafb6fa347c96b50be
which fixes some degenerate behaviour when mitering parallel lines.

Differential Revision: https://phabricator.services.mozilla.com/D186859
2023-08-25 20:39:36 +00:00
Jeff Muizelaar
4647149548 Bug 1848532 - Update aa-stroke to fix butt caps. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D186085
2023-08-13 04:23:24 +00:00
alwu
299d261ee0 Bug 1848033 - part1 : update mp4parse-rust to revision d262e40e7b80f949dcdb4db21caa6dbf1a8b2043. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D185858
2023-08-10 17:37:13 +00:00
Paul Adenot
fa478cfce0 Bug 1823953 - Create libgkcodecs, move libvorbis and libogg to it. r=firefox-build-system-reviewers,geckoview-reviewers,glandium,owlish
We need to use libvorbis both from libavcodec and libxul during a transition
period while re-architecturing things, so this moves libvorbis and libogg (a
dependency) to a separate shared lib, linked when needed.

Differential Revision: https://phabricator.services.mozilla.com/D173458
2023-08-08 12:12:39 +00:00
Makoto Kato
80aa728f71 Bug 1719535 - Part 4. Add ICU4X Data Provider. r=platform-i18n-reviewers,dminor,sylvestre
ICU4X will be used by ECMA-402 implementation at future. So we should link it
to SpiderMonkey instead of libxul only.

Depends on D178157

Differential Revision: https://phabricator.services.mozilla.com/D167673
2023-08-07 06:23:48 +00:00
Narcis Beleuzu
5f38b60d74 Backed out changeset 320d429c6102 (bug 1846706) for bustages on Android 2023-08-02 23:01:21 +03:00
Matthew Gregan
a729f37dc3 Bug 1846706 - Enable AudioIPC on Android when android:isolatedProcess is enabled. r=cubeb-reviewers,padenot
p1: Minimal change required to enable testing.  p2 covers remoting some Android-specific items.

Differential Revision: https://phabricator.services.mozilla.com/D185142
2023-08-02 19:05:19 +00:00
Sandor Molnar
13c7e4a350 Backed out 14 changesets (bug 1719535) for causing mochitest failures in accessible/tests/browser/mac/browser_text_basics.js CLOSED TREE
Backed out changeset 338c2c8d91af (bug 1719535)
Backed out changeset 3fdb2e999aba (bug 1719535)
Backed out changeset 63b9d2064827 (bug 1719535)
Backed out changeset 09c216cdbbc8 (bug 1719535)
Backed out changeset 29977dc00fb3 (bug 1719535)
Backed out changeset d3f8850a343b (bug 1719535)
Backed out changeset 90f1f621031f (bug 1719535)
Backed out changeset 52ca9bdc5bd4 (bug 1719535)
Backed out changeset 94536f0d5a1f (bug 1719535)
Backed out changeset d615264f9f5f (bug 1719535)
Backed out changeset f16f9e583378 (bug 1719535)
Backed out changeset e1abdee07587 (bug 1719535)
Backed out changeset 45f9ad406428 (bug 1719535)
Backed out changeset caa2b8a731dc (bug 1719535)
2023-08-02 14:55:26 +03:00
Makoto Kato
696dad9f78 Bug 1719535 - Part 4. Add ICU4X Data Provider. r=platform-i18n-reviewers,dminor,sylvestre
ICU4X will be used by ECMA-402 implementation at future. So we should link it
to SpiderMonkey instead of libxul only.

Depends on D178157

Differential Revision: https://phabricator.services.mozilla.com/D167673
2023-08-02 10:32:49 +00:00
Cristian Tuns
5d6b51256b Backed out 57 changesets (bug 1839389, bug 1840869, bug 1840399, bug 1840402, bug 1823953, bug 1828912, bug 1826382, bug 1837160, bug 1839391, bug 1833654) for causing build bustages in ogg_<something> CLOSED TREE
Backed out changeset 61356e1447e3 (bug 1823953)
Backed out changeset 85785505b6d6 (bug 1823953)
Backed out changeset 46a61cbfe8a8 (bug 1833654)
Backed out changeset 83e3de80337b (bug 1833654)
Backed out changeset 1a10c12874ac (bug 1840399)
Backed out changeset 6b087145b67f (bug 1833654)
Backed out changeset b9ac857ad43f (bug 1840399)
Backed out changeset 4b841e8dd033 (bug 1823953)
Backed out changeset 650e35803834 (bug 1823953)
Backed out changeset c11b58ac0709 (bug 1823953)
Backed out changeset c0249c90bc31 (bug 1823953)
Backed out changeset 8929288d5aec (bug 1823953)
Backed out changeset 828792b886bd (bug 1823953)
Backed out changeset 873f1d4a8875 (bug 1840869)
Backed out changeset a25abd05302c (bug 1823953)
Backed out changeset d4b1eb442c36 (bug 1840399)
Backed out changeset c25509d72a96 (bug 1840399)
Backed out changeset 0f72a0626a28 (bug 1840402)
Backed out changeset 82e7574364ce (bug 1840399)
Backed out changeset 93073105f063 (bug 1840399)
Backed out changeset 56ec8e3405e9 (bug 1840399)
Backed out changeset ff15dad37ab8 (bug 1840399)
Backed out changeset 0655ebd61eda (bug 1840399)
Backed out changeset 7bca1ae06c7d (bug 1828912)
Backed out changeset 8a5a849cfe5f (bug 1828912)
Backed out changeset 3d8422a2038a (bug 1828912)
Backed out changeset f08ee5de9370 (bug 1823953)
Backed out changeset a4eb210620ff (bug 1823953)
Backed out changeset aa8914cd55be (bug 1839391)
Backed out changeset 3ea1f43e4024 (bug 1823953)
Backed out changeset 3efe02ffa1c8 (bug 1826382)
Backed out changeset 81c4553ec23d (bug 1839391)
Backed out changeset 130894e4a781 (bug 1839391)
Backed out changeset 9a0247b0fc85 (bug 1839391)
Backed out changeset 11a923064382 (bug 1839391)
Backed out changeset 98ffb66160c3 (bug 1837160)
Backed out changeset a80dda9a220a (bug 1837160)
Backed out changeset 251b4ef97a2b (bug 1837160)
Backed out changeset 7372632eb32f (bug 1837160)
Backed out changeset c5d54bc3ee26 (bug 1839389)
Backed out changeset b232ec1bbc2d (bug 1833654)
Backed out changeset fc7ba125c2fe (bug 1833654)
Backed out changeset 8a47f6882e61 (bug 1823953)
Backed out changeset e29810541b53 (bug 1828912)
Backed out changeset bcf10730c8c9 (bug 1828912)
Backed out changeset 8df8290b6c33 (bug 1826382)
Backed out changeset 2811d12803cf (bug 1826382)
Backed out changeset 3fc718561ec9 (bug 1826382)
Backed out changeset 7827183776e1 (bug 1823953)
Backed out changeset a3eb5f228d9a (bug 1826382)
Backed out changeset 3113ad2e0987 (bug 1823953)
Backed out changeset 4b1dc01525af (bug 1823953)
Backed out changeset f7f4a7585ceb (bug 1823953)
Backed out changeset 93042f1becec (bug 1823953)
Backed out changeset b9ca30a0a066 (bug 1823953)
Backed out changeset 1000c4a6a92a (bug 1823953)
Backed out changeset 05dc13775fd6 (bug 1823953)
2023-08-01 09:37:39 -04:00
Paul Adenot
3cc8cb3732 Bug 1823953 - Create libgkcodecs, move libvorbis and libogg to it. r=firefox-build-system-reviewers,geckoview-reviewers,glandium,owlish DONTBUILD
We need to use libvorbis both from libavcodec and libxul during a transition
period while re-architecturing things, so this moves libvorbis and libogg (a
dependency) to a separate shared lib, linked when needed.

Differential Revision: https://phabricator.services.mozilla.com/D173458
2023-08-01 12:41:03 +00:00
Jan-Erik Rediger
1c2fbc9d73 Bug 1840044 - Update to Glean 53.1.0, UniFFI 0.24.1 and latest application-services. r=TravisLong,nika,markh,supply-chain-reviewers
Update:
  - Glean to v53.1.0
  - UniFFI to v0.24.1
  - application-services to a recent nightly that uses the above
    versions

- Updated `rusqlite` in toolkit/library/rust/shared/Cargo.toml
- Updated `uniffi-bindgen-gecko-js` to work with the new UniFFI.  Also
  updated it's askama version.
- Vetted new cargo dependencies

Ran `mach uniffi generate` to regenerate the code.

Differential Revision: https://phabricator.services.mozilla.com/D181872
2023-07-26 15:34:27 +00:00
Paul Adenot
5748871a23 Bug 1842375 - Update mp4parse-rust to 12142fda2ba0870. r=media-playback-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D184225
2023-07-24 12:51:47 +00:00
Sandor Molnar
fb1981e4cf Backed out changeset 93b5aead9fb9 (bug 1840044) for causing multiple failures, incl. build bustages CLOSED TREE 2023-07-20 22:00:20 +03:00
Jan-Erik Rediger
f74614d6b0 Bug 1840044 - Update to Glean 53.1.0, UniFFI 0.24.1 and latest application-services. r=TravisLong,nika,markh,supply-chain-reviewers
Update:
  - Glean to v53.1.0
  - UniFFI to v0.24.1
  - application-services to a recent nightly that uses the above
    versions

- Updated `rusqlite` in toolkit/library/rust/shared/Cargo.toml
- Updated `uniffi-bindgen-gecko-js` to work with the new UniFFI.  Also
  updated it's askama version.
- Vetted new cargo dependencies

Ran `mach uniffi generate` to regenerate the code.

Differential Revision: https://phabricator.services.mozilla.com/D181872
2023-07-20 17:22:56 +00:00
Masatoshi Kimura
df85c08d7f Bug 1842497 - Unship d3dcompiler_47.dll. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D183100
2023-07-15 12:29:51 +00:00
Masatoshi Kimura
cba55b285f Bug 1842497 - Unship all Universal CRT DLLs. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D183099
2023-07-15 12:29:51 +00:00
Jeff Muizelaar
70883a5bcd Bug 1843143 - Update aa-stroke to improve handling of round joins. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D183415
2023-07-13 11:44:29 +00:00
Mike Hommey
39ed3add07 Bug 1838354 - Change how the rust workspace hack is added. r=firefox-build-system-reviewers,webdriver-reviewers,ahochheiden,whimboo
First, instead of using a path, use a version, which is more convenient
(via a patch in the top-level Cargo.toml).

Second, we make the build system itself enforce its presence for any
crate that is hooked to the build system as a program or library.

Finally, for each crate depending on the workspace hack, we add a
feature named after it, and make the build system enforce that the
feature is set. For now, this remains unused, but the end goal is to
have each of those features enable the dependencies each of these
crates need, so that if crate A and B need dependency D, but crate C
doesn't, building crate C doesn't build D.

Differential Revision: https://phabricator.services.mozilla.com/D180910
2023-06-21 07:31:44 +00:00
serge-sans-paille
afb505be6b Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Do not apply this on Android as it's using some extra symbols from
libxul.

Exclude Android from the targets as it requires some extra symbols.

Differential Revision: https://phabricator.services.mozilla.com/D179806
2023-06-20 19:57:25 +00:00
Lee Salzman
d112ec183e Bug 1839459 - Elide empty closed sub-paths instead of emitting a start point. r=jrmuizel
There is a corner case that triggers an assert in wpf-gpu-raster if an empty sub-path
starts off a path. Just avoid the problem by eliding the sub-path, but at least handle
close correctly as per the Canvas2D closePath spec:

"The closePath() method, when invoked, must do nothing if the object's path has no subpaths.
Otherwise, it must mark the last subpath as closed, create a new subpath whose first point
is the same as the previous subpath's first point, and finally add this new subpath to the path."

Differential Revision: https://phabricator.services.mozilla.com/D181543
2023-06-20 18:04:20 +00:00
Noemi Erli
fb0da48dca Backed out changeset 2f9f01f9fe93 (bug 1836369) for causing build bustages 2023-06-20 13:11:28 +03:00
serge-sans-paille
399b715c88 Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Do not apply this on Android as it's using some extra symbols from
libxul.

Differential Revision: https://phabricator.services.mozilla.com/D179806
2023-06-20 09:35:57 +00:00
Lee Salzman
bc3b0421e7 Bug 1839070 - Emit a start point if close is called immediately after move_to. r=jrmuizel
wpf-gpu-raster would blindly modify the last point type in a path when call was closed, even
if move_to preceded it directly and outputted no actual point type. In this case, we need to
ensure that we emit a start point if close is called immediately after move_to.

Differential Revision: https://phabricator.services.mozilla.com/D181358
2023-06-19 19:54:24 +00:00
Iulian Moraru
1fbc20fee6 Backed out changeset fe77912afbd3 (bug 1836369) - for causing valgrind bustages on moz-automation.mk. CLOSED TREE 2023-06-15 11:24:42 +03:00
serge-sans-paille
c466bdec21 Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Do not apply this on Android as it's using some extra symbols from
libxul.

Differential Revision: https://phabricator.services.mozilla.com/D179806
2023-06-15 06:04:01 +00:00
Cristian Tuns
f33bfa217e Backed out changeset 5e5ece1f117a (bug 1836369) for causing Bug 1837869 a=backout 2023-06-12 07:17:25 -04:00
Mike Hommey
b0c4622bd0 Bug 1837353 - Don't build the mozannotation crates when the crash reporter is disabled. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D180395
2023-06-09 20:30:29 +00:00
serge-sans-paille
9056a63841 Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Differential Revision: https://phabricator.services.mozilla.com/D179806
2023-06-09 19:31:18 +00:00
Norisz Fay
bfab8fdfe8 Backed out changeset 2766c50b0ce5 (bug 1836369) for causing android build bustages CLOSED TREE 2023-06-09 15:16:18 +03:00
serge-sans-paille
c1ead64934 Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Differential Revision: https://phabricator.services.mozilla.com/D179806
2023-06-09 10:01:58 +00:00
Dana Keeler
94c26534c8 Bug 1834862 - implement nsICryptoHash in rust r=jschanck,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179727
2023-06-07 23:03:21 +00:00
Iulian Moraru
6cded0a2aa Backed out changeset 2b647eb982bc (bug 1834862) for causing build bustages. CLOSED TREE 2023-06-07 20:12:09 +03:00
Dana Keeler
60f76d0a57 Bug 1834862 - implement nsICryptoHash in rust r=jschanck,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179727
2023-06-07 15:56:37 +00:00
Gabriele Svelto
4c87f445a6 Bug 1776197 - mozannotation_server crate implementation r=afranchuk
This crate contains the logic used to find the annotations within another
process and pull them out.

Depends on D173697

Differential Revision: https://phabricator.services.mozilla.com/D173698
2023-06-07 12:34:31 +00:00
Gabriele Svelto
73a3085a6b Bug 1776197 - mozannotation_client implementation r=afranchuk
This crate contains the required bits to store annotations in a process and
let the mozannotation_server crate find them and pull them out. Functionally
there's not much happening here as all the actual functionality is in
mozannotation_server.

Differential Revision: https://phabricator.services.mozilla.com/D173697
2023-06-07 12:34:30 +00:00