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

1147 Коммитов

Автор SHA1 Сообщение Дата
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
Emilio Cobos Álvarez c314a37ea6 Bug 1668514 - Update crossbeam-channel. r=janerik
It's used by both webrender and fog, and it contains a subtle soundness
issue which may affect us, see:

 * https://github.com/crossbeam-rs/crossbeam/pull/533
 * https://twitter.com/khuey_/status/1311641831201857537

Quoting for posterity:

> There is a 0.4.4 on a branch and it contains a reversion for the UB
> mentioned in https://github.com/crossbeam-rs/crossbeam/pull/533.
>
> This was causing corruption of jemalloc structures (and ultimately a
> deadlock) for us.

Update the crate resolving the issue.

Differential Revision: https://phabricator.services.mozilla.com/D92046
2020-10-02 19:15:26 +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
Tooru Fujisawa 913954320b Bug 1668776 - Update opcode for bug 1667258. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D92203
2020-10-02 10:37:24 +00:00
Dan Mosedale 56fe9ac25f Bug 1668704 - upgrade serde to 1.0.116 so we can vendor in Nimbus SDK r=markh
Differential Revision: https://phabricator.services.mozilla.com/D92164
2020-10-02 01:10:38 +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
Valentin Gosu b9501927ed Bug 1616252 - Exclude domains in /etc/hosts from using TRR r=necko-reviewers,dragana
This patch adds a task that is dispatched to the background thread when TRR
is first enabled. This may mean during the TRRService initialization at
startup or later when the pref is flipped.

The task will call into rust_parse_etc_hosts which does the actual file
opening and parsing. We pass the path to the file, that being either
/etc/hosts or the Windows equivalent obtained by calling
SHGetSpecialFolderPathA.

The rust code opens the file and proceeds to read it line by line while
accumulating all the hostnames in an array. Since these files can be
quite large, on the order of several megabytes, we need to make sure we
don't block shutdown doing this - so once more than 100 domains have
accumulated in the array we call back into C++ code to add them to the
exclusion list. The callback will return true if we should continue to
parse the file or false otherwise.

We also change the tests to use "excluded" rather than localhost when
testing the excluded-domains prefs, since localhost is unually present
in /etc/hosts and may interfere with the test.

We also use an atomic sTRRServicePtr to make sure that we don't have
a data race between the TRRService being freed and the callbacks of the
parsing.

Differential Revision: https://phabricator.services.mozilla.com/D90663
2020-10-01 07:01:58 +00:00
Dragana Damjanovic cb3f1acfbd Bug 1668019 - Update neqo to version 0.4.12 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91873
2020-09-30 10:51:34 +00:00
Jonathan Kew 1643382733 Bug 1667192 - patch 1 - Update to mapped_hyph v0.4.0, to get FFI access to hyphenation table compilation. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D91408
2020-09-30 12:51:17 +00:00
Jan-Erik Rediger e284db0882 Bug 1662123 - Measure the time it takes to initialize FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90850
2020-09-29 16:01:47 +00:00
Bogdan Tara 31bcac6a70 Backed out 4 changesets (bug 1662123, bug 1662122) for RustMozCrash raptor crashed CLOSED TREE
Backed out changeset 832848e2277f (bug 1662123)
Backed out changeset 4930629bf758 (bug 1662123)
Backed out changeset a05a1b934110 (bug 1662122)
Backed out changeset 47e17a661b8e (bug 1662122)
2020-09-28 21:13:41 +03:00
Jan-Erik Rediger e32e416a86 Bug 1662123 - Measure the time it takes to initialize FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90850
2020-09-28 14:29:48 +00:00
Sebastian Hengst e391849424 Backed out 4 changesets (bug 1662123, bug 1662122) for build bustage because of missing toolkit/components/glean/api/src/metrics.rs. CLOSED TREE
Backed out changeset 36ef41fa3470 (bug 1662123)
Backed out changeset 69089070fb49 (bug 1662123)
Backed out changeset 86d5740e32a2 (bug 1662122)
Backed out changeset 060270c0220f (bug 1662122)
2020-09-28 13:46:12 +02:00
Jan-Erik Rediger c503da69ce Bug 1662123 - Measure the time it takes to initialize FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90850
2020-09-28 10:09:28 +00:00
Zibi Braniecki 5bbfa14bf4 Bug 1667307 - Update fluent-rs to 0.13. r=kamidphish
Differential Revision: https://lando.services.mozilla.com/D91390/
2020-09-27 02:04:35 +02:00
Jan-Erik Rediger 54cbab74c5 Bug 1659109 - Add a dispatch queue for FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D88837
2020-09-23 07:25:16 +00:00
Csoregi Natalia 9d0405e881 Backed out 5 changesets (bug 1659109) for bustage on src/dispatcher/mod.rs. CLOSED TREE
Backed out changeset fbe0ea62f4bb (bug 1659109)
Backed out changeset b3671a7196cf (bug 1659109)
Backed out changeset 0ffc40c1046a (bug 1659109)
Backed out changeset aa9157143036 (bug 1659109)
Backed out changeset 32c3d23de6ea (bug 1659109)
2020-09-22 23:06:06 +03:00
Jan-Erik Rediger 50409c63c4 Bug 1659109 - Add a dispatch queue for FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D88837
2020-09-17 16:43:10 +00:00
Andy Grover 99792ccf29 Bug 1649495 - Add network.http.http3.enable_qlog pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-22 08:28:44 +00:00
Jeff Muizelaar 0f0c9a9a0c Bug 1666057. Convert qcms to rust. r=aosmond
The conversion was done with c2rust and then manually cleaned up some.
There's still lots of unsafe code remaining but I'd rather do the rest
of the cleanup in-tree so that it's easier to catch and revert
regressions.

I've dropped support for SSE1 (Firefox requires SSE2) and Altivec
(not wanting to deal with fixing Rust's Altivec support).

transform_neon.rs manually implements a bunch of intrinsics, this
can be fixed when we can depend on Rust 1.48.

The fuzz target is changed to a cargo-fuzz target.

Some of the gtests are moved to Rust.

Differential Revision: https://phabricator.services.mozilla.com/D90782
2020-09-21 18:40:51 +00:00
Butkovits Atila 49f424b435 Backed out changeset f82548378b79 (bug 1649495) for xpc failures at test_upgrade.js. CLOSED TREE 2020-09-21 15:45:00 +03:00
Andy Grover 63993e1a49 Bug 1649495 - Add network.http.http3.qlog_enabled pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-21 11:00:26 +00:00
Mihai Alexandru Michis 51875c07f4 Backed out changeset 932516ec74bb (bug 1649495) for causing bustages in nsHttpHandler
CLOSED TREE
2020-09-18 15:55:06 +03:00
Andy Grover 96ac4b6334 Bug 1649495 - Add network.http.http3.qlog_enabled pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-18 07:02:15 +00:00
Bogdan Tara a4e517dc98 Backed out 4 changesets (bug 1659109) for dispatcher related bustage CLOSED TREE
Backed out changeset 9a824e53d6f0 (bug 1659109)
Backed out changeset 1ef4a64d4e39 (bug 1659109)
Backed out changeset 98e349acacfd (bug 1659109)
Backed out changeset c42a568625d0 (bug 1659109)
2020-09-17 19:33:54 +03:00
Jan-Erik Rediger 33a96c6eb0 Bug 1659109 - Add a dispatch queue for FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D88837
2020-09-14 09:42:35 +00:00
David Teller d621561a4a Bug 1635494 - nsIProcessToolsService;r=lina
A small xpcom module implemented in Rust, designed to provide low-level tools to deal with processes
from JS. For the moment, the only notable feature is `kill()`, designed to be used from about:processes

Differential Revision: https://phabricator.services.mozilla.com/D82552
2020-09-17 14:03:41 +00:00
Tooru Fujisawa 084f4ffe27 Bug 1662383 - Remove {EmitResult,SmooshResult}.top_level_script. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D88970
2020-09-16 15:10:55 +00:00
Razvan Maries 0c958444a7 Backed out 2 changesets (bug 1635494) for Windows build bustages. CLOSED TREE
Backed out changeset 14456b365a11 (bug 1635494)
Backed out changeset 2608db2fa8be (bug 1635494)
2020-09-16 16:33:17 +03:00
David Teller d76fedbfbb Bug 1635494 - nsIProcessToolsService;r=lina
A small xpcom module implemented in Rust, designed to provide low-level tools to deal with processes
from JS. For the moment, the only notable feature is `kill()`, designed to be used from about:processes

Differential Revision: https://phabricator.services.mozilla.com/D82552
2020-09-16 10:03:33 +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
Narcis Beleuzu b62f859c3e Backed out 2 changesets (bug 1635494) for bustages on processtools/src/lib.rs . CLOSED TREE
Backed out changeset aab5984f73db (bug 1635494)
Backed out changeset a91e04073f9f (bug 1635494)
2020-09-15 22:54:38 +03:00
David Teller 8cf0a3a591 Bug 1635494 - nsIProcessToolsService;r=lina
A small xpcom module implemented in Rust, designed to provide low-level tools to deal with processes
from JS. For the moment, the only notable feature is `kill()`, designed to be used from about:processes

Differential Revision: https://phabricator.services.mozilla.com/D82552
2020-07-23 15:03:17 +00:00
Alexis Beingessner e5dd298d13 Bug 1654807 - update thin-vec to 0.2.1 for potential endianess fix. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87019
2020-09-14 17:32:40 +00:00
Dragana Damjanovic 93fcbece5c Bug 1664321 - Update neqo to 0.4.11 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D89828
2020-09-14 07:50:57 +00:00
Nicholas Nethercote 5d45da52f2 Bug 1664105 - Upgrade `ron` to 0.6.2. r=kvark
Also update `base64` so that all webrender code is on the same version, as
required by the `webrender-lint-tidy` check.

Differential Revision: https://phabricator.services.mozilla.com/D89698
2020-09-11 06:22:37 +00:00
Cosmin Sabou 598ffecbd5 Backed out changeset 16d4d1f1a447 (bug 1664105) for linux webrender tidy bustage. CLOSED TREE 2020-09-11 08:13:57 +03:00
Nicholas Nethercote cc286890ec Bug 1664105 - Upgrade `ron` to 0.6.2. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D89698
2020-09-10 14:31:34 +00:00
J.C. Jones 0b80ebcbcb Bug 1664298 - Upgrade authenticator-rs to v0.3.0 r=kjacobs
https://github.com/mozilla/authenticator-rs/releases/tag/v0.3.0

Major changes:

 * Move to Rust 2018 edition #125
 * Remove dependency on boxfnonce #121
 * Reworked error handling #130
 * Added a higher-level AuthenticatorService that can use multiple backends #123
 * Changed the C API to use the new AuthenticatorService #123
 * Added a Status channel for backends #122
 * Now obtaining HID report sizes from the descriptors #12
 * Add authenticator USB and Firmware details to the C API #93

Differential Revision: https://phabricator.services.mozilla.com/D89823
2020-09-10 23:49:02 +00:00
Nicolas Silva b1c3ab9869 Bug 1662827 - Move the api senders to the webrender crate. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D89387
2020-09-09 12:45:00 +00:00
Emilio Cobos Álvarez 188dcede21 Bug 1663715 - Update syn and proc-macro2 so that Firefox can build on Rust nightly again. r=froydnj
Generated with:

  cargo update -p syn --precise 1.0.40
  ./mach vendor rust

Rust issue: https://github.com/rust-lang/rust/issues/76482

Differential Revision: https://phabricator.services.mozilla.com/D89473
2020-09-08 17:00:48 +00:00
Mihai Alexandru Michis 002a3217ae Backed out 4 changesets (bug 1662827) for causing webrender bustages.
Backed out changeset 4d216f67247b (bug 1662827)
Backed out changeset 25ef3ef3c69d (bug 1662827)
Backed out changeset 461e4e35a0e3 (bug 1662827)
Backed out changeset 40366bd1a0f7 (bug 1662827)
2020-09-08 17:11:19 +03:00
Nicolas Silva a7e48b6370 Bug 1662827 - Move the api senders to the webrender crate. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D89387
2020-09-08 13:06:16 +00:00
Emily McDonough 22fb22631b Bug 1662518 part 1 - Add semver to gkrust_util r=emilio
We will use this for CUPS version parsing.

Differential Revision: https://phabricator.services.mozilla.com/D89034
2020-09-02 23:49:02 +00:00
Zibi Braniecki 51dd2eebad Bug 1662309 - Update fluent-rs to 0.12. r=kamidphish
Differential Revision: https://phabricator.services.mozilla.com/D88942
2020-09-02 20:06:41 +00:00