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

1271 Коммитов

Автор SHA1 Сообщение Дата
Adam Gashlin 5097c15b3a Bug 1683003 - Update comedy-rs to remove dependency on failure. r=bytesized
comedy 0.2.0 no longer impls Fail itself. By reenabling the default features
(including std) of failure, the blanket impl will cover that. These features
were disabled to remove a dependency on backtrace, but since bug 1608157 we
are using a version of failure without backtrace by default so that is no
longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D99969
2020-12-17 19:14:35 +00:00
Jan-Erik Rediger 04b73ee4f1 Bug 1682638 - Update to Glean v33.9.1. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D100006
2020-12-17 13:12:08 +00:00
Nicolas Silva 17739343f2 Bug 1679751 - Run Mach vendor rust. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D98657
2020-12-16 14:56:52 +00:00
Asumu Takikawa bd345c38b9 Bug 1335652 - wasm exceptions part 7: vendor the latest wat r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D99594
2020-12-15 20:52: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
Chun-Min Chang 2e5d3014c7 Bug 1681811 - Update mp4parse-rust to 3d9efdc r=jbauman
Import the improvements made in mp4parse-rust repo. The changes would
save some redundant copy when calling avif related APIs and provide the
ability to get the alpha data of the parsed avif image.

Differential Revision: https://phabricator.services.mozilla.com/D98950
2020-12-14 22:31:07 +00:00
Dragana Damjanovic 96b916ebe1 Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin
Differential Revision: https://phabricator.services.mozilla.com/D99665
2020-12-14 18:38:49 +00:00
Xidorn Quan 5b6e237eec Bug 1681957 - Migrate gecko-fuzz-targets away from rkv 0.10. r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D99453
2020-12-12 08:32:40 +00:00
Dan Glastonbury d22631c4d7 Bug 1679094 - Resolve dom::Promise from Rust. r=nika
A very limited interface to allow resolving dom::Promises from Rust code by
marshaling values via nsIVariant.

Differential Revision: https://phabricator.services.mozilla.com/D97905
2020-12-12 02:55:49 +00:00
Csoregi Natalia 3b68bf27c8 Backed out changeset cccdff68c790 (bug 1679094) for causing build bustage. CLOSED TREE 2020-12-12 03:18:44 +02:00
Dan Glastonbury 27752e15a3 Bug 1679094 - Resolve dom::Promise from Rust. r=nika
A very limited interface to allow resolving dom::Promises from Rust code by
marshaling values via nsIVariant.

Differential Revision: https://phabricator.services.mozilla.com/D97905
2020-12-12 00:47:23 +00:00
Xidorn Quan 3173c39eb9 Bug 1681935 - Replace dependency to failure with thiserror in remote crate. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99442
2020-12-11 14:34:23 +00:00
Csoregi Natalia 24146fd642 Backed out changeset a8c087a36965 (bug 1681811) for failures on test_case_mp4. CLOSED TREE 2020-12-11 22:51:06 +02:00
Chun-Min Chang 2c75dfdc7b Bug 1681811 - Update mp4parse-rust to 94fd2f1 r=jbauman
Import the improvements made in mp4parse-rust repo. The changes would
save some redundant copy when calling avif related APIs and provide the
ability to get the alpha data of the parsed avif image.

Differential Revision: https://phabricator.services.mozilla.com/D98950
2020-12-11 18:16:40 +00:00
Emilio Cobos Álvarez d6ccac5546 Bug 1681940 - Update dtoa-short. r=xidorn
Has some minor perf optimizations.

Differential Revision: https://phabricator.services.mozilla.com/D99445
2020-12-11 13:14:13 +00:00
Jan-Erik Rediger ee1003ab9f Bug 1677455 - Update Glean to pull in TSan-fixes. r=Dexter
Depends on D98454

Differential Revision: https://phabricator.services.mozilla.com/D99345
2020-12-10 13:50:59 +00:00
Jan-Erik Rediger 057ef45d94 Bug 1678583 - Clean up FFI bridge & IDL layer. r=chutten
This touches multiple parts at once, including:

* Remove usage of `this->` in C++ code
* Use `nsACString` across the FFI (no need for `ffi-support` anymore)
* Use `AUTF8String` in the IDL definition, so we can pass it on unmodified.

Differential Revision: https://phabricator.services.mozilla.com/D99034
2020-12-10 13:44:47 +00:00
Jan-Erik Rediger 96444a64c1 Bug 1675286 - Implement C++ and JS APIs for events. r=emilio,chutten
Events are special in that they are generic over the type of extra keys
they can handle.
This makes them unsuitable to store in simple hashmaps, as (nearly) every event metric is its own type.

To still keep the nice and statically-checked Rust API, but also have
C++ and JS APIs we defer it all to a big ol' lookup table using `match`
at `record()` time.

Note:
While passing `extras` works it's not yet perfect.
The C++ API is hard to use.
The JavaScript API works, but is not documented.
Additionally `testGetValue` doesn't work yet for events in either language.

Differential Revision: https://phabricator.services.mozilla.com/D97450
2020-12-10 13:20:04 +00:00
Emilio Cobos Álvarez 1c2975501b Bug 1632469 - Update smallvec. r=manishearth
Differential Revision: https://phabricator.services.mozilla.com/D72146
2020-12-10 11:10:05 +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
Tooru Fujisawa 157d9e67fe Bug 1678170 - Update opcode for bug 1673553. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D99073
2020-12-10 00:47:28 +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
Csoregi Natalia e85a77d963 Backed out changeset d7cb07ecc30a (bug 1678170) for causing spidermonkey failures. CLOSED TREE 2020-12-09 18:16:50 +02:00
Tooru Fujisawa 6febe8808b Bug 1678170 - Update opcode for bug 1673553. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D99073
2020-12-09 14:33:19 +00:00
Victor Porof 781260432a Bug 1681492 - Update rkv to 0.16.1, r=janerik
Depends on D99210

Differential Revision: https://phabricator.services.mozilla.com/D99211
2020-12-09 12:19:52 +00:00
Cristina Coroiu dfff858221 Backed out 8 changesets (bug 1677455, bug 1678583, bug 1677962, bug 1675286) for xpcshell failures at toolkit/components/glean/xpcshell/test_Glean.js on a CLOSED TREE
Backed out changeset ab0d5057817b (bug 1677455)
Backed out changeset 1e26d2cecfe7 (bug 1678583)
Backed out changeset 555eb48642be (bug 1678583)
Backed out changeset 7346565f35b4 (bug 1678583)
Backed out changeset 0e40c4b34ec7 (bug 1678583)
Backed out changeset b3b6cfebc8e3 (bug 1677962)
Backed out changeset 6c6a59d7c472 (bug 1675286)
Backed out changeset 45c8c0f1d7bf (bug 1675286)
2020-12-09 16:38:20 +02: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
Jan-Erik Rediger c218ef2435 Bug 1678583 - Clean up FFI bridge & IDL layer. r=chutten
This touches multiple parts at once, including:

* Remove usage of `this->` in C++ code
* Use `nsACString` across the FFI (no need for `ffi-support` anymore)
* Use `AUTF8String` in the IDL definition, so we can pass it on unmodified.

Differential Revision: https://phabricator.services.mozilla.com/D99034
2020-12-09 09:44:27 +00:00
Jan-Erik Rediger 94353fd333 Bug 1675286 - Implement C++ and JS APIs for events. r=emilio,chutten
Events are special in that they are generic over the type of extra keys
they can handle.
This makes them unsuitable to store in simple hashmaps, as (nearly) every event metric is its own type.

To still keep the nice and statically-checked Rust API, but also have
C++ and JS APIs we defer it all to a big ol' lookup table using `match`
at `record()` time.

Note:
While passing `extras` works it's not yet perfect.
The C++ API is hard to use.
The JavaScript API works, but is not documented.
Additionally `testGetValue` doesn't work yet for events in either language.

Differential Revision: https://phabricator.services.mozilla.com/D97450
2020-12-09 08:51:44 +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
Jan-Erik Rediger 3a44990fe0 Bug 1680230 - Update Glean to 33.7.0. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D98905
2020-12-07 14:32:58 +00:00
Victor Porof 173311ea52 Bug 1680230 - Part 2: Vendor, r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D98595
2020-12-07 14:01:36 +00:00
Victor Porof 9c281e0cd5 Bug 1654192 - Part 1: Update RKV dependency to safe-mode, r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D85314
2020-12-07 07:24:34 +00:00
Xidorn Quan 8799a09b16 Bug 1661961 - Upgrade cstr to 0.2.x. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D98839
2020-12-07 08:01:04 +00:00
Mihai Alexandru Michis d88071abc9 Backed out 5 changesets (bug 1654192, bug 1680230) for causing tsan bc failures in RWLock.
CLOSED TREE

Backed out changeset 804ccdf33ae8 (bug 1680230)
Backed out changeset 2ced955ab891 (bug 1680230)
Backed out changeset b09ca0548784 (bug 1654192)
Backed out changeset a92f0deb07b2 (bug 1654192)
Backed out changeset 26abc175808e (bug 1654192)
2020-12-07 09:21:15 +02:00
Victor Porof 7a13ba6687 Bug 1680230 - Part 2: Vendor, r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D98595
2020-12-04 20:49:48 +00:00
Victor Porof 0e467487a3 Bug 1654192 - Part 1: Update RKV dependency to safe-mode, r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D85314
2020-12-07 06:49:31 +00:00
Emilio Cobos Álvarez 80b8ba4acd Bug 1671170 - Downgrade smallvec to 1.3. r=markh
See https://github.com/servo/rust-smallvec/issues/243 and the PRs in the
comments.

Differential Revision: https://phabricator.services.mozilla.com/D98802
2020-12-05 17:12:44 +00:00
Alexis Beingessner d2495438a1 Bug 1674770 - update parking_lot to get tsan fixes. r=glandium
Although this doesn't fix the particular false positive we hit, more fixes
is good to get

Differential Revision: https://phabricator.services.mozilla.com/D98649
2020-12-04 17:02:33 +00:00
Emilio Cobos Álvarez 96a85ab8c6 Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam
The changes should be trivial.

The third_party changes are up for review in
https://github.com/servo/rust-cssparser/pull/277 (and of course I'll
land with a bump to 0.28 rather than the override after that gets r+'d).

The basic idea is that with this we have the actual start offset of the
rule, so we wouldn't include html comments or other invalid stuff we
discard during sanitization in bug 1680084. But that's a separate
change.

Differential Revision: https://phabricator.services.mozilla.com/D98677
2020-12-04 10:47:55 +00:00
Julian Seward 4434d99732 Bug 1680509 - Vendor in CL ac58a436ed84d1a88b4ff24367c5972cf8d3d405. Part 2: results of "mach vendor rust". r=yury.
Depends on D98647

Differential Revision: https://phabricator.services.mozilla.com/D98648
2020-12-04 07:01:55 +00:00
Razvan Maries e755870785 Backed out changeset 54068f044426 (bug 1680558) for perma failures on browser_resources_stylesheets.js. CLOSED TREE 2020-12-04 06:48:30 +02:00
Emilio Cobos Álvarez 659a6773ad Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam
The changes should be trivial.

The third_party changes are up for review in
https://github.com/servo/rust-cssparser/pull/277 (and of course I'll
land with a bump to 0.28 rather than the override after that gets r+'d).

The basic idea is that with this we have the actual start offset of the
rule, so we wouldn't include html comments or other invalid stuff we
discard during sanitization in bug 1680084. But that's a separate
change.

Differential Revision: https://phabricator.services.mozilla.com/D98677
2020-12-04 03:14:36 +00:00
Alessio Placitelli 302025c613 Bug 1662868 - Vendor Glean 33.5.0. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D98356
2020-12-03 11:56:26 +00:00
Alessio Placitelli bfe7b8f5e5 Bug 1662868 - Use the inherent crate in FOG and update Cargo.lock. r=janerik,chutten
Differential Revision: https://phabricator.services.mozilla.com/D98059
2020-12-03 11:54:22 +00:00
Mihai Alexandru Michis d2849190f6 Backed out 15 changesets (bug 1662868) for causing xpcshell thread leaks.
CLOSED TREE

Backed out changeset fe1462617a8d (bug 1662868)
Backed out changeset 99df04f55be1 (bug 1662868)
Backed out changeset 21f7b675b3b9 (bug 1662868)
Backed out changeset 33a5ec2378cd (bug 1662868)
Backed out changeset be7a168ee182 (bug 1662868)
Backed out changeset 1803b5acd0f8 (bug 1662868)
Backed out changeset 98415dd8ee7e (bug 1662868)
Backed out changeset 6e38bfcb8587 (bug 1662868)
Backed out changeset 43245bce408a (bug 1662868)
Backed out changeset b727f5c658f5 (bug 1662868)
Backed out changeset f631a1d04d0a (bug 1662868)
Backed out changeset 6a5e0257086c (bug 1662868)
Backed out changeset 82c6c1b7a24a (bug 1662868)
Backed out changeset 6f4740140fe1 (bug 1662868)
Backed out changeset 2f342eaea13e (bug 1662868)
2020-12-02 18:24:59 +02:00
Alessio Placitelli ac981d2db9 Bug 1662868 - Vendor Glean 33.5.0. r=chutten
Depends on D98299

Differential Revision: https://phabricator.services.mozilla.com/D98356
2020-12-01 18:45:12 +00:00
Alessio Placitelli 9876ebaea1 Bug 1662868 - Use the inherent crate in FOG and update Cargo.lock. r=janerik,chutten
Differential Revision: https://phabricator.services.mozilla.com/D98059
2020-12-01 16:56:20 +00:00
Julian Seward 4f05523121 Bug 1680043 - Remove redundant Cargo.toml dependency on wasmparser 0.67. r=yury.
js/src/wasm/cranelift/Cargo.toml lists wasmparser as a dependency, but this is
(confusingly) not necessary, since we use the version re-exported by Cranelift
(IIUC).  So let's remove the dependency.

Differential Revision: https://phabricator.services.mozilla.com/D98372
2020-12-01 19:08:12 +00:00
Razvan Maries 1122f1dd53 Backed out changeset f4d2921dbb2a (bug 1679977) for build bustages. CLOSED TREE 2020-12-01 17:13:30 +02:00