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

1144 Коммитов

Автор SHA1 Сообщение Дата
Dragana Damjanovic f6bbab0c30 Bug 1652573 - Update to neqo version 0.4.8 r=agrover,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83397
2020-07-15 19:49:36 +00:00
Jamie Nicol c18dcab954 Bug 1609191 - Ensure shader sources are always unique to workaround adreno crash. r=gw
On some Adreno 505 and 506 devices we are encountering driver crashes during
glLinkProgram(). The only circumstance in which we have been able to reproduce
locally is when the show-overdraw debug option is enabled. The reason appears to
be that, due to shader optimisation, the debug overdraw variants of many shaders
have identical source code. The crash seems to occur when linking a shader which
has identical source code to a previously linked shader.

This does not, however, explain the non-insignificant numbers of crashes in the
wild because a) it's unlikely many users are enabling overdraw debugging, and b)
some crash reports predate the commit which enabled shader
optimisation. However, it is possible that for a different reason we are
compiling multiple shaders with identical source code.

To attempt to work around this crash this change adds a random comment to the
end of each shader source string, on the affected devices.

Differential Revision: https://phabricator.services.mozilla.com/D83571
2020-07-15 15:39:47 +00:00
Coroiu Cristina a96ed5ec72 Backed changeset bbe5ed51273b (Bug 1609191) for webrender failures. CLOSED TREE 2020-07-15 17:55:12 +03:00
Jamie Nicol 3141d488db Bug 1609191 - Ensure shader sources are always unique to workaround adreno crash. r=gw
On some Adreno 505 and 506 devices we are encountering driver crashes during
glLinkProgram(). The only circumstance in which we have been able to reproduce
locally is when the show-overdraw debug option is enabled. The reason appears to
be that, due to shader optimisation, the debug overdraw variants of many shaders
have identical source code. The crash seems to occur when linking a shader which
has identical source code to a previously linked shader.

This does not, however, explain the non-insignificant numbers of crashes in the
wild because a) it's unlikely many users are enabling overdraw debugging, and b)
some crash reports predate the commit which enabled shader
optimisation. However, it is possible that for a different reason we are
compiling multiple shaders with identical source code.

To attempt to work around this crash this change adds a random comment to the
end of each shader source string, on the affected devices.

Differential Revision: https://phabricator.services.mozilla.com/D83571
2020-07-15 14:29:35 +00:00
Jeff Muizelaar d2f53ff680 Bug 1651889. Update to gleam 0.12.1. r=kvark
This should fix a crash caused by an unexpected pixel type.

Differential Revision: https://phabricator.services.mozilla.com/D83167
2020-07-11 02:21:13 +00:00
Cosmin Sabou 8cf86d8b74 Backed out changeset 1a8c020ebbda (bug 1651889) for gleam related bustages. 2020-07-11 00:50:06 +03:00
Jeff Muizelaar 9f9ac49bd8 Bug 1651889. Update to gleam 0.12.1. r=kvark
This should fix a crash caused by an unexpected pixel type.

Differential Revision: https://phabricator.services.mozilla.com/D83167
2020-07-10 20:52:49 +00:00
Narcis Beleuzu 573b28be3c Backed out 2 changesets (bug 1561207) for bustages on lib.rs. CLOSED TREE
Backed out changeset c0d2201bd2fa (bug 1561207)
Backed out changeset 7931e2be169c (bug 1561207)
2020-07-10 15:56:59 +03:00
Paul Adenot 757e54125e Bug 1561207 - mach vendor rust. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D82719
2020-07-10 12:24:34 +00:00
Dragana Damjanovic 7ab560a9be Bug 1651489 - Update neqo. r=agrover
Bug 1651489 - Update neqo_glue to support new neqo API(neqo version 0.4.6).

Differential Revision: https://phabricator.services.mozilla.com/D82932
2020-07-10 04:35:17 +00:00
Tooru Fujisawa be67ca2eb8 Bug 1651545 - Update jsparagus for bug 1642476. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D82874
2020-07-09 09:41:04 +00:00
Tooru Fujisawa 2e3d4f1ff0 Bug 1649900 - Update jsparagus. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D82095
2020-07-03 10:03:19 +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
Andy Grover 05abb6839b Bug 1649512 - Update to Neqo 0.4.5 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81763
2020-07-01 08:11:35 +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
lougeniac64 499048fe86 (Bug 1635487) Wired up sync logging for extension pref storage r=lina,markh
Differential Revision: https://phabricator.services.mozilla.com/D80975
2020-06-27 19:15:17 +00:00
Csoregi Natalia 5bb8a015e6 Backed out changeset 8cd7fabbe270 (bug 1635487) for multiple leaks. CLOSED TREE 2020-06-27 10:43:15 +03:00
lougeniac64 bce2c33963 (Bug 1635487) Wired up sync logging for extension pref storage r=lina,markh
Differential Revision: https://phabricator.services.mozilla.com/D80975
2020-06-27 06:26:22 +00:00
Nick Alexander 8b37b1e5eb Bug 1648617 - Extract `wineventlog` crate from updateagent for more general use. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D81232
2020-06-27 00:55:59 +00:00
Razvan Maries eb909a6e55 Backed out changeset fec02fef5e73 (bug 1635487) for Android bustages. CLOSED TREE 2020-06-27 03:05:27 +03:00
lougeniac64 893cb93c43 (Bug 1635487) Wired up sync logging for extension pref storage r=lina,markh
Differential Revision: https://phabricator.services.mozilla.com/D80975
2020-06-26 21:19:17 +00:00
Emilio Cobos Álvarez 5dc443249c Bug 1648334 - Use less unsafe in gecko_logger. r=froydnj,valentin
We were storing LogModule::mName as an &'static str in the map... That's
not fine.

The Arc shenanigans were also more complicated than they need to be IMO.

This uses a plain atomic bool to keep the fast path snappy.

Differential Revision: https://phabricator.services.mozilla.com/D81007
2020-06-25 15:23:16 +00:00
Chris H-C 5a90b156f6 Bug 1635255 - Implement the Rust <-> C++ ffi for FOG IPC r=janerik
Bringing it all together.

Differential Revision: https://phabricator.services.mozilla.com/D79747
2020-06-24 16:16:29 +00:00
Chris H-C 6f5695446e Bug 1635255 - Build glean crate conditionally on Gecko symbols r=janerik
Introduces a gkrust Cargo feature `glean_with_gecko` and `with_gecko` on fog
and glean. This feature signifies the presence of gecko symbols in the build.

Use this feature to implement needs_ipc() which asks Gecko which process type
we're running as.

Differential Revision: https://phabricator.services.mozilla.com/D79744
2020-06-24 16:16:17 +00:00
Mihai Alexandru Michis fe89d1f20e Backed out 11 changesets (bug 1635255) for causing bustages in FOGIPC.cpp
CLOSED TREE

Backed out changeset d3e93edb1c76 (bug 1635255)
Backed out changeset 27df18486bff (bug 1635255)
Backed out changeset 4675772344eb (bug 1635255)
Backed out changeset 4d0c4beb910e (bug 1635255)
Backed out changeset 9b79c8208144 (bug 1635255)
Backed out changeset cb54f7a3177d (bug 1635255)
Backed out changeset d0591dc8d5a1 (bug 1635255)
Backed out changeset 5fc5e1070d4d (bug 1635255)
Backed out changeset bfcfda9cb19d (bug 1635255)
Backed out changeset 49447f10ad6e (bug 1635255)
Backed out changeset 0862a33399cf (bug 1635255)
2020-06-24 17:21:10 +03:00
Chris H-C 220a31aa49 Bug 1635255 - Implement the Rust <-> C++ ffi for FOG IPC r=janerik
Bringing it all together.

Differential Revision: https://phabricator.services.mozilla.com/D79747
2020-06-23 20:44:01 +00:00
Chris H-C 2f90804e01 Bug 1635255 - Build glean crate conditionally on Gecko symbols r=janerik
Introduces a gkrust Cargo feature `glean_with_gecko` and `with_gecko` on fog
and glean. This feature signifies the presence of gecko symbols in the build.

Use this feature to implement needs_ipc() which asks Gecko which process type
we're running as.

Differential Revision: https://phabricator.services.mozilla.com/D79744
2020-06-23 20:43:41 +00:00
Andy Grover 70c8aeee0b Bug 1647769 - Update to Neqo 0.4.4 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80687
2020-06-23 18:51:19 +00:00
Dzmitry Malyshau 74b412c826 Bug 1641370 - Add optional SPIR-V shader validation to WebGPU, via naga r=jgilbert
This change attempts to parse the incoming SPIR-V shader modules with
Naga SPIR-V front-end. It's not complete, but it returns an Error if it's unable to parse,
in which case we just continue without the validation (for now).
If it succeeds, we extract the reflection information from it, and use it for the pipeline.

This is just a start. More states would need to be validated, and SPIR-V front-end needs more work.

Differential Revision: https://phabricator.services.mozilla.com/D77170
2020-06-22 21:21:18 +00:00
Ryan Hunt 54aee7836c Bug 1645160 - Update wat to 1.0.20. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D80190
2020-06-22 04:30:09 +00:00
Jeff Muizelaar 6613f1b6b7 Bug 1646741 - Update gleam to 0.12. r=kvark
For stride calculation and SSBOs

Differential Revision: https://phabricator.services.mozilla.com/D80191
2020-06-18 18:11:13 +00:00
Coroiu Cristina 96536abc93 Backed out changeset 9367aa4b97e2 (bug 1646741) for wrench failures on a CLOSED TREE 2020-06-18 21:03:36 +03:00
Jeff Muizelaar c326a65a01 Bug 1646741 - Update gleam to 0.12. r=kvark
For stride calculation and SSBOs

Differential Revision: https://phabricator.services.mozilla.com/D80191
2020-06-18 15:02:08 +00:00
Simon Sapin 7c14e4e23e Bug 1633410 - Back out bug 1631721.
Rebased and squashed.

Differential Revision: https://phabricator.services.mozilla.com/D78174
2020-06-18 15:25:33 +00:00
Matthew Gregan 561f0ff278 Bug 1646576 - Vendor Rust. r=chunmin
Depends on D80123

Differential Revision: https://phabricator.services.mozilla.com/D80125
2020-06-18 03:59:11 +00:00
Andy Grover caf191f33d Bug 1646106 - Update to Neqo 0.4.3 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79893
2020-06-17 07:09:52 +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
Tooru Fujisawa 5fb5aaefae Bug 1644698 - Part 1: Update ScriptStencil structs. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D79442
2020-06-15 15:47:21 +00:00
Rob Wu 206ca19c33 Bug 1645598 - Vendor application-services for fix in webext-storage r=lina
To get this fix: https://github.com/mozilla/application-services/pull/3235

Updated as follows:

```
sed -i 's/e8d7530319fa6c20d9de78d031c9398630eca3cd/61dcc364ac0d6d0816ab88a494bbf20d824b009b/g' services/fxaccounts/rust-bridge/firefox-accounts-bridge/Cargo.toml services/sync/golden_gate/Cargo.toml toolkit/components/extensions/storage/webext_storage_bridge/Cargo.toml toolkit/components/glean/Cargo.toml toolkit/library/rust/shared/Cargo.toml
./mach vendor rust
```

Verified by running the new regression test that I added in the bug:

```
./mach test toolkit/components/extensions/test/xpcshell/test_ext_storage_{local,sync,sync_kinto}.js
```

Differential Revision: https://phabricator.services.mozilla.com/D79628
2020-06-15 12:56:58 +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
Thom Chiovoloni b3cbb2b28e Bug 1629127 - Add sync telemetry for storage.sync migration r=lina,extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D78573
2020-06-10 22:29:02 +00:00
Andy Grover 2475b7008d Bug 1644532 - Update to Neqo 0.4.1 r=dragana,necko-reviewers
Default to using draft 27.

Differential Revision: https://phabricator.services.mozilla.com/D78960
2020-06-09 19:39:47 +00:00
Paul Adenot ddca94efc1 Bug 1644362 - mach vendor rust. r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D78871
2020-06-09 13:17:38 +00:00
Razvan Maries 0ce303cbe3 Backed out changeset b6b48c37ab0c (bug 1644362) for SM Bustages. CLOSED TREE 2020-06-09 13:49:45 +03:00
Paul Adenot 1185075aa8 Bug 1644362 - Update cubeb-coreaudio-rs to 4cdbceadae8. r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D78871
2020-06-09 10:24:41 +00:00
Tooru Fujisawa 447cb4a153 Bug 1644117 - Update jsparagus to use JSOp::ToPropertyKey. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D78685
2020-06-08 14:43:49 +00:00
Corentin Arnould a1659c9e19 Bug 1644080 - mach vendor rust. r=cubeb-reviewers,padenot
Depends on D78664

Differential Revision: https://phabricator.services.mozilla.com/D78665
2020-06-08 13:14:26 +00:00
Lars T Hansen 0cda75506a Bug 1642589 - Pull in new wat crate. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D78226
2020-06-08 08:01:13 +00:00
Tooru Fujisawa 2c4cbe5c6f Bug 1643632 - Use BaseScopeData. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D78475
2020-06-05 10:34:56 +00:00
Tooru Fujisawa 654c97a626 Bug 1643044 - Use bumpalo 3.4.0. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D78079
2020-06-05 11:04:23 +00:00
Dorel Luca fc6456ef88 Backed out changeset bde27b38c9c5 (bug 1643201) for causing Valgrind failures and build bustages 2020-06-04 05:17:11 +03:00
Emilio Cobos Álvarez 25666b5157 Bug 1643201 - Cherry-pick servo changes to use the matches macro from the standard library.
Depends on D78201

Differential Revision: https://phabricator.services.mozilla.com/D78202
2020-06-04 00:35:22 +00:00
Chris H-C 5975040ba3 Bug 1623304 - Add viaduct (and deps) to fog crate r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D76749
2020-06-02 17:51:43 +00:00
Chris H-C 4cbf614d9e Bug 1623304 - Ensure Viaduct is initialized for FOG r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D76747
2020-06-02 17:51:39 +00:00
Andy Grover 95b90fb23e Bug 1633006 - Update to Neqo 0.4.0 r=dragana,necko-reviewers
Document qlog uses 2 clause bsd license.

Adapt to API changes in glue and http3server

Differential Revision: https://phabricator.services.mozilla.com/D77903
2020-06-02 21:28:31 +00:00
Brindusan Cristian d6f1fb7bff Backed out 4 changesets (bug 1623304) for android build bustages. CLOSED TREE
Backed out changeset 28e076bc443b (bug 1623304)
Backed out changeset e7470ab5ae58 (bug 1623304)
Backed out changeset 932d51ae751e (bug 1623304)
Backed out changeset 1845fca9e3ec (bug 1623304)
2020-06-02 20:05:13 +03:00
Chris H-C bc9ef460c6 Bug 1623304 - Add viaduct (and deps) to fog crate r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D76749
2020-06-01 18:17:32 +00:00
Chris H-C 323df76e55 Bug 1623304 - Ensure Viaduct is initialized for FOG r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D76747
2020-06-01 18:17:23 +00:00
Dana Keeler 6461b8a32b Bug 1638920 - use a background task queue in cert_storage rather than a dedicated thread r=lina
Differential Revision: https://phabricator.services.mozilla.com/D77370
2020-06-01 16:26:55 +00:00
Mark Hammond 6abadd577b Bug 1639449 - Vendor new application-services to expose kinto migration and sync change notifications. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D76092
2020-05-30 02:44:07 +00:00
Jan-Erik Rediger 4d415be57c Bug 1640927 - Upgrade glean-core to v31.0.2 r=chutten
This gets us default gzip compression on ping sending.

Differential Revision: https://phabricator.services.mozilla.com/D77455
2020-05-29 13:47:18 +00:00
Tooru Fujisawa ff738e2546 Bug 1639772 - Update jsparagus and use ImmutableScriptFlags directly. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D76267
2020-05-29 13:30:51 +00:00
Bert Peers f41b9eb190 Bug 1641704 - vendor tracy-rs 0.1.1 r=gw
Differential Revision: https://phabricator.services.mozilla.com/D77401
2020-05-29 04:15:29 +00:00
Paul Adenot 2c64853b8e Bug 1638801 - mach vendor rust r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D75776
2020-05-28 09:54:57 +00:00
Valentin Gosu 383d242cb2 Bug 1636891 - Move logging specifics from toolkit/library/rust/shared/lib.rs to the gecko_logger crate r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D76669
2020-05-28 07:46:40 +00:00
Dzmitry Malyshau abaaa872a5 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-27 16:49:03 +00:00
Bogdan Tara 6ed3c943f7 Backed out changeset f4ed4d3e0e9e (bug 1634425) for hazard failure on WebGPUParent.cpp CLOSED TREE 2020-05-27 01:12:40 +03:00
Dzmitry Malyshau 67c0d914f3 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-26 21:15:40 +00:00
Lina Cambridge 1e4bad34ca Bug 1638927 - Replace `lazy_static` with `once_cell` in XULStore. r=froydnj
TSan returns false positives for `lazy_static`. While we could
blocklist it, `once_cell` has equivalent functionality, but with a more
modern API, so let's use it instead.

Depends on D75864

Differential Revision: https://phabricator.services.mozilla.com/D76342
2020-05-22 00:40:25 +00:00
Lina Cambridge a6395f4f1f Bug 1638918 - Convert kvstore to use a background task queue instead of a one-off thread. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D75863
2020-05-20 20:55:10 +00:00
Tooru Fujisawa fb93b18ec1 Bug 1639073 - Update jsparagus and use stencil crate. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D75881
2020-05-20 17:34:02 +00:00
Nathan Froyd 2e5f61bc12 Bug 1639302 - manually declare NCryptSignHash in osclientcerts; r=keeler
This function ought to be declared by `winapi`, but is not, for whatever
reason.  However, its definition is stable enough that we can just
declare it inline rather than invoking bindgen every single build (and
unnecessarily compiling a build script on non-windows platforms) to
discover its definition for us.

Differential Revision: https://phabricator.services.mozilla.com/D76015
2020-05-19 19:16:36 +00:00
Tooru Fujisawa 2ac5bccc9b Bug 1638470 - Update jsparagus, and update SmooshMonkey to store atoms in gcthings. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D75711
2020-05-19 17:30:32 +00:00
Emilio Cobos Álvarez cbbcb09d62 Bug 1638676 - Update Cargo.lock. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D75707
2020-05-17 17:15:35 +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
Edouard Oger 0ab8afdce0 Bug 1631630 p1 - Vendor fxa-client crate. r=rfkelly,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D71851
2020-05-16 01:07:28 +00:00
Noemi Erli cac2780d42 Backed out 2 changesets (bug 1631630) for causing mass braoser chrome failures CLOSED TREE
Backed out changeset 9b8606a93c75 (bug 1631630)
Backed out changeset d57ea5d1921f (bug 1631630)
2020-05-16 02:16:33 +03:00
Edouard Oger 03f9a7d742 Bug 1631630 p1 - Vendor fxa-client crate. r=rfkelly,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D71851
2020-05-15 20:13:28 +00:00
Dzmitry Malyshau 4a18e10f04 Bug 1637998 - Fix wgpu swapchain cleanup on exit r=groves
Differential Revision: https://phabricator.services.mozilla.com/D75337
2020-05-15 14:59:18 +00:00
Chris H-C 2cba0004c0 Bug 1637647 - Update glean_core to v30.0.0 for ping upload redesign r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D75164
2020-05-14 07:47:51 +00:00
Edouard Oger 6e8ef040d3 Bug 1637537 - Bump application-services and anyhow versions. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D75150
2020-05-13 18:36:56 +00:00
Mike Hommey ea50a36e82 Bug 1637140 - Upgrade hashbrown to 0.7.2. r=emilio
The upgrade of mp4parse pulled some code that previously was eliminated as
dead code in libxul. That code was unfortunately unreproducible as it
was generating a random seed at compile time. This was due to hashbrown
enabling the ahash feature that does that, but that was changed in 0.7.2.

Differential Revision: https://phabricator.services.mozilla.com/D75033
2020-05-13 15:41:13 +00:00
Ryan Hunt 0a7b098471 Bug 1635534 - Update wat to 1.0.17. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D74694
2020-05-13 01:50:49 +00:00
Edouard Oger e348b78f5f Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-12 21:36:17 +00:00
Dzmitry Malyshau ea310127f1 Bug 1637092 - Change WR capture path to point to the home folder r=Bert,webdriver-reviewers,whimboo
Point the captures to the home folder at all times.

Differential Revision: https://phabricator.services.mozilla.com/D74747
2020-05-12 13:41:31 +00:00
Henri Sivonen c9cae42014 Bug 1631983 - Update chardetng to 0.1.9. r=m_kato
* Avoid misdetecting windows-1252 English as windows-1254.
* Avoid misdetecting windows-1252 English as IBM866.
* Avoid misdetecting windows-1252 English as GBK or EUC-KR.
* Improve Chinese and Japanese detection by not giving single-byte encodings score for letter next to digit.
* Improve Italian, Portuguese, Castilian, Catalan, and Galician detection by taking into account ordinal indicator use.
* Reduce lookup table size.

Differential Revision: https://phabricator.services.mozilla.com/D73237
2020-05-12 13:56:29 +00:00
Mark Hammond 0640090392 Bug 1637169 - Vendor new application-services. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D74817
2020-05-12 07:53:39 +00:00
Bogdan Tara a823ee6545 Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 013a469557c1 (bug 1628068)
Backed out changeset dcda2ce7b7f9 (bug 1628068)
2020-05-12 00:44:58 +03:00
Edouard Oger 4e005845ab Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 21:01:17 +00:00
Bogdan Tara 3df4970bcc Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 928a5891c55d (bug 1628068)
Backed out changeset b6fe5d357bed (bug 1628068)
2020-05-11 23:52:47 +03:00
Edouard Oger 3dc0990bbf Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 20:19:11 +00:00
Bogdan Tara 448d53548b Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 1ea8f742ca69 (bug 1628068)
Backed out changeset 3aa2f99843e0 (bug 1628068)
2020-05-11 23:06:31 +03:00
Edouard Oger 8aebe42eda Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 19:14:21 +00:00
Valentin Gosu d986351217 Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj
This makes it possible to enable rust logging at runtime using about:networking

Differential Revision: https://phabricator.services.mozilla.com/D73146
2020-05-09 11:24:33 +00:00
Tooru Fujisawa 2ed7096f1c Bug 1621127 - Assert opcode list is in sync between jsparagus and SpiderMonkey, and update jsparagus. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D74254
2020-05-08 22:49:50 +00:00
Emilio Cobos Álvarez 4060ea8247 Bug 1636357 - Update smallbitvec. r=jwatt
This is needed for the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D74401
2020-05-08 18:40:51 +00:00
Nils Ohlmeier [:drno] 21e50b8e9f Bug 1418804: update webrtc-sdp 0.3.5 -> 0.3.6. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D74491
2020-05-08 23:30:42 +00:00
Jon Bauman ff79fde159 Bug 1624056 - Properly vendor mp4parse-rust. r=kinetik
This requires --build-peers-said-large-imports-were-ok since
third_party/rust/mp4parse/src/lib.rs is 113KB. This code is just moving from
media/mp4parse-rust to third_party/rust, so it's not really adding to net code
size.

Differential Revision: https://phabricator.services.mozilla.com/D74488
2020-05-09 00:36:48 +00:00
Chris H-C cf008d3a85 Bug 1632159 - Add FOG Datetime metric r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D74260
2020-05-07 18:45:23 +00:00
Mike Hommey 80a6fcc625 Bug 1635671 - Upgrade typename to 1.12.0. r=emilio
When building in some configurations of rustc (e.g. i386 without SSE), building Firefox fails with, among other things:
```
error[E0428]: the name `U1024` is defined multiple times
```

This comes from the typenum library. The issue was fixed in 14a3322d10, so all it takes is an upgrade of the crate.

Differential Revision: https://phabricator.services.mozilla.com/D74005
2020-05-06 09:36:53 +00:00
Matthew Gregan b874802505 Bug 1631965 - Vendor Rust. r=chunmin
Depends on D71836

Differential Revision: https://phabricator.services.mozilla.com/D71837
2020-05-05 21:13:53 +00:00
Paul Adenot 6a7f9ca0d5 Bug 1635404 - mach vendor rust. r=achronop
Depends on D73871

Differential Revision: https://phabricator.services.mozilla.com/D73872
2020-05-05 13:39:15 +00:00
Nicolas B. Pierron 0428de2a66 Bug 1635464 - Deref BoxedParseError to read the content. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D73902
2020-05-05 16:26:45 +00:00
Lina Cambridge 8caa2f7986 Bug 1634191 - Wire up Golden Gate to the new Rust extension storage interface. r=markh
This commit adds syncing support to the `StorageSyncArea` class, via
the Golden Gate library.

It also changes the `BridgedEngine` trait: `initialize` and `finalize`
haven't been useful in practice, since that's managed by the storage
service, and the `LazyStore` takes care of setting up the storage
connection on first use. But, what we do need is a way to signal a
sync is starting, so that the engine can set up temp tables. That's
handled by the new `sync_started`.

Finally, this commit changes `BridgedEngine::set_uploaded` to take a
`sync15_traits::Guid` instead of a `String`.

Differential Revision: https://phabricator.services.mozilla.com/D73415
2020-05-05 06:59:32 +00:00
Lina Cambridge 4eafc7c1a6 Bug 1634191 - Pass BSO fields along with Sync record payloads to bridged Rust engines. r=markh
This commit splits `CryptoWrapper` into a base `RawCryptoWrapper`
class, which only handles encryption and decryption without
parsing the cleartext's contents, and the existing `CryptoWrapper`
class, which works like before.

Our bridged engine subclasses `RawCryptoWrapper`, and
implements some methods to convert records to and from envelopes.
Envelopes are a concept we introduced in `sync15_traits` to pass
along metadata from the BSO wrapper (like the modified time from the
server, and ID, to ensure they match) in addition to the cleartext.
This lets us reuse `sync15_traits::Payload` to parse record payloads
in Rust, and avoids parsing the cleartext in JS, only to stringify it
again when we pass it to the bridged Rust engine.

Differential Revision: https://phabricator.services.mozilla.com/D73581
2020-05-04 22:25:00 +00:00
Lina Cambridge 7783b7bc0b Bug 1634626 - Add interrupt support for `StorageSyncArea`. r=markh,tcsc
This commit adds a `mozIInterruptible` implementation to
`StorageSyncArea`, and changes `LazyStore` to get an a-s interrupt
handle and interrupt pending operations.

Differential Revision: https://phabricator.services.mozilla.com/D73414
2020-05-04 21:32:52 +00:00
Lina Cambridge a9b590300f Bug 1634626 - Refactor interruption in Golden Gate. r=markh,tcsc
This commit removes the `nsICancelable` return values from all
`mozIBridgedSyncEngine` methods, and replaces them with a
`mozIInterruptible` interface that can be implemented by store
classes that support interrupting.

The `nsICancelable` pattern was intended to make each operation
interruptible, without affecting the others. But we can't guarantee
that with SQLite, because it only has a way to interrupt all
running statements on a connection, not specific ones. Further,
this pattern doesn't match what we currently do in a-s, where we
create an internal "interrupt scope" for each operation, and hand
out an "interrupt handle" for interrupting all in-progress
operations.

Storage classes like `StorageSyncArea` can opt in to interruption
by implementing `mozIInterruptible`. It's a separate interface to
protect against accidental misuse: because it interrupts all
statements on the connection, it might lose writes if the current
operation is a `set`, for example. But it's useful for testing and
debugging, so we still expose it.

This commit also changes Golden Gate ferries to hold weak references to
the `BridgedEngine`, so that they don't block teardown.

Differential Revision: https://phabricator.services.mozilla.com/D73413
2020-05-04 21:32:29 +00:00
Dzmitry Malyshau 5fd43ff44d Bug 1634439 - Update RON dependency to 0.5 r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D73291
2020-05-04 18:49:46 +00:00
Dzmitry Malyshau 82afd14a25 Bug 1634696 - Bump gfx-backend-dx12 dependency to 0.5.1 r=groves
the drop order of adapter fields made it so the handle to DX12 DLL was dropped before
the last resources are destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D73456
2020-05-04 18:35:25 +00:00
Tooru Fujisawa 4d2291e503 Bug 1634108 - Add placeholder for not-yet-implemented ScopeData, and update jsparagus. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D73094
2020-05-01 17:34:36 +00:00
Jamie Nicol 1af6f33ce1 Bug 1634275 - Update glslopt to 0.1.2 to remove dependency on bindgen. r=jrmuizel,kats
Differential Revision: https://phabricator.services.mozilla.com/D73198
2020-04-30 12:25:17 +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
Rob Wu 140b5a6261 Bug 1620621 - Add XPCOM FFI for rust_cascade r=emilio,vporof
Differential Revision: https://phabricator.services.mozilla.com/D66166
2020-04-30 10:02:25 +00:00
Razvan Maries c92da124b3 Backed out 8 changesets (bug 1620621) for build bustages. CLOSED TREE
Backed out changeset 14a57e32c414 (bug 1620621)
Backed out changeset 56b2b19a9bc1 (bug 1620621)
Backed out changeset 6df42b7528ec (bug 1620621)
Backed out changeset c23703684254 (bug 1620621)
Backed out changeset 206ad824e1bc (bug 1620621)
Backed out changeset e0f3e057b311 (bug 1620621)
Backed out changeset 12817823a3c9 (bug 1620621)
Backed out changeset 80dcb089ce8e (bug 1620621)
2020-04-30 12:29:30 +03:00
Rob Wu 021277de0e Bug 1620621 - Add XPCOM FFI for rust_cascade r=emilio,vporof
Differential Revision: https://phabricator.services.mozilla.com/D66166
2020-04-30 02:48:42 +00:00
Mark Hammond c777f6f9ed Bug 1634257 - expose wipe_all to mozIExtensionStorageArea. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D73191
2020-04-30 08:16:26 +00:00
Stefan Hindli 49c6346195 Backed out changeset 13bb4d7dde88 (bug 1634257) for spidermoney bustages CLOSED TREE 2020-04-30 10:56:43 +03:00
Mark Hammond baecd41165 Bug 1634257 - expose wipe_all to mozIExtensionStorageArea. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D73191
2020-04-30 07:08:38 +00:00
Dorel Luca 58186c88dc Backed out 8 changesets (bug 1620621) for XPCshell failures in xpcshell/rs-blocklist/test_blocklist_mlbf_fetch.js
Backed out changeset 06fccc75c09e (bug 1620621)
Backed out changeset 8b4e286967c0 (bug 1620621)
Backed out changeset cfde27a748fd (bug 1620621)
Backed out changeset 7abf836343be (bug 1620621)
Backed out changeset 1a28d1de8f76 (bug 1620621)
Backed out changeset 90c08438be0a (bug 1620621)
Backed out changeset 723a3b4e7bbf (bug 1620621)
Backed out changeset bbc991f09d5d (bug 1620621)
2020-04-30 05:44:28 +03:00
Rob Wu 4294b3bca0 Bug 1620621 - Add XPCOM FFI for rust_cascade r=emilio,vporof
Differential Revision: https://phabricator.services.mozilla.com/D66166
2020-04-29 23:26:48 +00:00
Lina Cambridge add5457732 Bug 1633943 - Support tearing down a Rust `StorageSyncArea`. r=markh
This commit wires up `StorageSyncArea::teardown()` to call the new
`webext_storage::Store::close()` method.

It also changes `teardown` to drop the `LazyStore`, and thus close its
database connection, on the main thread if dispatching to the task
queue fails. Dispatch should only fail at shutdown, and putting the
owned reference back only adds indirection, since the `StorageSyncArea`
will still drop its `LazyStore` later in shutdown.

Finally, it includes an xpcshell test fix for
https://github.com/mozilla/application-services/pull/3050.

Differential Revision: https://phabricator.services.mozilla.com/D72992
2020-04-29 04:35:45 +00:00
Dzmitry Malyshau c969ade19a Bug 1633472 - Update gfx-backend-vulkan 3rd party r=groves
we are handling the case where the driver technically knows about Vulkan, but no hardware supports it.

Differential Revision: https://phabricator.services.mozilla.com/D72726
2020-04-28 14:09:50 +00:00
Paul Adenot f0c2c239ef Bug 1633266 - mach vendor rust r=kinetik
Depends on D72636

Differential Revision: https://phabricator.services.mozilla.com/D72637
2020-04-27 22:42:43 +00:00
Lina Cambridge c13f9f9d49 Bug 1626128 - Change Golden Gate to depend on `sync15_traits`. r=markh
Now that `BridgedEngine` has been moved to `sync15_traits`, we can
remove `golden_gate_traits` from the tree, and change Golden Gate to
depend on `sync15_traits` directly.

This commit also adds a Cargo feature, `services_sync`, which reflects
the `MOZ_SERVICES_SYNC` config option. In the future, we'll use this
feature to gate implementations of `mozIBridgedSyncEngine`.

Differential Revision: https://phabricator.services.mozilla.com/D72784
2020-04-28 04:13:04 +00:00
Dzmitry Malyshau 8f221fe39d Bug 1633553 - Update dwrote to 0.11 r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D72748
2020-04-27 21:47:21 +00:00
Alex Chronopoulos 94ecd85385 Bug 1632093 - mach vendor rust. r=padenot
Depends on D72729

Differential Revision: https://phabricator.services.mozilla.com/D72730
2020-04-27 19:11:27 +00:00
Jan-Erik Rediger d5ca718261 Bug 1632158 - Implement UUID metric for FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D72654
2020-04-27 14:11:59 +00:00
Lina Cambridge 1aa777d5e1 Bug 1626506 - Add a binding for the new extension storage Rust component. r=markh
The `webext_storage_bridge` crate introduced in this commit bridges the
`mozIExtensionStorageArea` XPCOM interface to the `webext_storage` Rust
component from Application Services.

This commit factors out the following parts from bug 1623245, so that
we can land them piecemeal:

* The `mozIExtensionStorageArea` interfaces, which implement all the
  methods needed to support the `storage.sync` API.
* A Rust implementation of the above, in `StorageSyncArea`.
* A `StorageTask` type, for dispatching storage operations to a
  background task queue.
* A `LazyStore`, which wraps the Rust component's `Store` and lazily
  initializes it on the background queue the first time it's used.
* A `StorageSyncService`, which is our singleton. It holds on to a
  configured `StorageSyncArea`, and hands out references to it via
  `getInterface`. Eventually, we'll extend this to support syncing,
  too.

Differential Revision: https://phabricator.services.mozilla.com/D71897
2020-04-27 05:40:54 +00:00
Lina Cambridge e6e665546f Bug 1626506 - Vendor the `webext_storage` component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 05:40:52 +00:00
Mihai Alexandru Michis 807ec47bae Backed out 2 changesets (bug 1626506) for causing bustages.
CLOSED TREE

Backed out changeset f3deedfe235d (bug 1626506)
Backed out changeset 00b40d247500 (bug 1626506)
2020-04-27 08:11:19 +03:00
Lina Cambridge e1b6df9fd4 Bug 1626506 - Add a binding for the new extension storage Rust component. r=markh
The `webext_storage_bridge` crate introduced in this commit bridges the
`mozIExtensionStorageArea` XPCOM interface to the `webext_storage` Rust
component from Application Services.

This commit factors out the following parts from bug 1623245, so that
we can land them piecemeal:

* The `mozIExtensionStorageArea` interfaces, which implement all the
  methods needed to support the `storage.sync` API.
* A Rust implementation of the above, in `StorageSyncArea`.
* A `StorageTask` type, for dispatching storage operations to a
  background task queue.
* A `LazyStore`, which wraps the Rust component's `Store` and lazily
  initializes it on the background queue the first time it's used.
* A `StorageSyncService`, which is our singleton. It holds on to a
  configured `StorageSyncArea`, and hands out references to it via
  `getInterface`. Eventually, we'll extend this to support syncing,
  too.

Differential Revision: https://phabricator.services.mozilla.com/D71897
2020-04-27 03:23:46 +00:00
Lina Cambridge a42e765155 Bug 1626506 - Vendor the `webext_storage` component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 02:59:45 +00:00
Thom Chiovoloni 475b53142b Bug 1632575 - Update vendored rusqlite to 0.23.1 r=lina
Differential Revision: https://phabricator.services.mozilla.com/D72439
2020-04-24 20:43:34 +00:00
Bastien Orivel 8052061256 Bug 1606281 - Part 1: Update warp to 0.2. r=jgraham,webdriver-reviewers
Pretty straightforward update. This duplicates the tokio stack because
audioipc hasn't been updated yet.  (https://github.com/djg/audioipc-2/issues/97)

Differential Revision: https://phabricator.services.mozilla.com/D71462
2020-04-20 15:27:31 +00:00
Tooru Fujisawa ade632335d Bug 1632737 - Cover GCThing::Function in match. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D72287
2020-04-24 20:14:22 +00:00
Jan-Erik Rediger e44691d67b Bug 1632131 - Simple smoke test for FOG's string metric type. r=chutten
A first Rust test, which should run without any interaction with
Firefox.
This will eventually break down when we get IPC in there.

Depends on D72128

Differential Revision: https://phabricator.services.mozilla.com/D72385
2020-04-24 19:08:32 +00:00
Jan-Erik Rediger 0542e950e5 Bug 1632131 - Implement a string metric for the in-tree Glean API. r=chutten
Currently there's no user, so we do some trickery to actually make sure
it gets compiled.

It also lacks a test, that will follow in the next commit,
as it's a bit more complex to set up a Glean instance for a test run.

Differential Revision: https://phabricator.services.mozilla.com/D72128
2020-04-24 19:08:25 +00:00
Cosmin Sabou e78c4952e3 Backed out 2 changesets (bug 1632131) for causing SM bustages. CLOSED TREE
Backed out changeset 7715960a9f53 (bug 1632131)
Backed out changeset 559882b9b092 (bug 1632131)
2020-04-24 19:40:16 +03:00
Jan-Erik Rediger 52e00a6770 Bug 1632131 - Simple smoke test for FOG's string metric type. r=chutten
A first Rust test, which should run without any interaction with
Firefox.
This will eventually break down when we get IPC in there.

Differential Revision: https://phabricator.services.mozilla.com/D72385
2020-04-24 15:22:44 +00:00
Jan-Erik Rediger e4443a7c40 Bug 1632131 - Implement a string metric for the in-tree Glean API. r=chutten
Currently there's no user, so we do some trickery to actually make sure
it gets compiled.

It also lacks a test, that will follow in the next commit,
as it's a bit more complex to set up a Glean instance for a test run.

Differential Revision: https://phabricator.services.mozilla.com/D72128
2020-04-24 15:23:30 +00:00
Simon Sapin 5af9f4fc2a Bug 1631721 - Remove hashglobe r=manishearth
Differential Revision: https://phabricator.services.mozilla.com/D71743
2020-04-23 00:19:51 +00:00
Simon Sapin 67ea7f6752 Bug 1631721 - Use hashbrown instead of hashglobe r=manishearth
Differential Revision: https://phabricator.services.mozilla.com/D71741
2020-04-23 00:19:51 +00:00
Simon Sapin cbe24024bb Bug 1631721 - Vendor the hashbrown crate r=manishearth
This is the hash map implementation now used in the Rust standard library:

* https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html#a-new-hashmapk-v-implementation
* https://github.com/rust-lang/rust/pull/58623
* https://crates.io/crates/hashbrown

Differential Revision: https://phabricator.services.mozilla.com/D71740
2020-04-23 00:19:50 +00:00
Dzmitry Malyshau 4b29474d3f Bug 1630813 - Remove gfx/wgpu/wgpu-native, move wgpu-remote out into gfx/wgpu_bindings r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D71699
2020-04-22 15:35:13 +00:00
Tooru Fujisawa 0a10fbcaaf Bug 1631827 - Update jsparagus, use the first script in EmitResult, and store GCThings in SmooshScriptStencil. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D71787
2020-04-22 13:50:43 +00:00
Alex Chronopoulos 6b59c61f22 Bug 1628634 - mach vendor rust. r=padenot
Depends on D71929

Differential Revision: https://phabricator.services.mozilla.com/D71930
2020-04-22 12:08:08 +00:00
Jamie Nicol f548e9a284 Bug 1604615 - Optimize webrender shaders at build time. r=gw
Move more shader parsing code to webrender_build, so it can be used
both at runtime and build time.

At build time optimize a set of shaders and feature flag combinations,
using glslopt. Some features are skipped because they are not
supported by the gl version, because the optimizer does not support
them, or because webrender does not need them currently.

Use build-parallel to ensure the optimization is performed in parallel
using the make jobserver. Write the optimized shader source to a
hashmap to be used at runtime, in addition to the unoptimized source.

Differential Revision: https://phabricator.services.mozilla.com/D70032
2020-04-21 10:32:03 +00:00
Jamie Nicol b3f0dc3a6a Bug 1604615 - Add glslopt and build-parallel as build dependencies of webrender. r=jrmuizel
Update Cargo.lock files and vendor sources in to tree.

Differential Revision: https://phabricator.services.mozilla.com/D70030
2020-04-21 10:31:46 +00:00
Paul Adenot 86e2733819 Bug 1631448 - mach vendor rust. r=chunmin,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D71624
2020-04-20 21:59:17 +00:00
Kirk Steuber 42eceb0734 Bug 1624391 - Add capability to parse update XMLs to the update agent r=agashlin,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D69064
2020-04-17 20:48:10 +00:00
Kirk Steuber 39419a82db Bug 1624391 - Add XML downloading capability to the update agent r=agashlin,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D69063
2020-04-17 20:47:53 +00:00
Kirk Steuber 9579958b80 Bug 1624391 - Add Update URL Generation to the update agent r=agashlin,mhowell
This patch does not include the capability to read update URLs set by enterprise policy. That capability will be added later, when we add other enterprise policy support.

Differential Revision: https://phabricator.services.mozilla.com/D69062
2020-04-17 20:47:30 +00:00
Nico Grunbaum 4f8f4fd418 Bug 1628630 - update WEBRTC-SDP to 0.3.5;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D70339

--HG--
extra : moz-landing-system : lando
2020-04-16 09:17:46 +00:00
Brindusan Cristian 094e7f1fa3 Backed out 2 changesets (bug 1628630) for build bustages at SdpAttribute.h. CLOSED TREE
Backed out changeset 5c05d978aa32 (bug 1628630)
Backed out changeset bbd66b8940bb (bug 1628630)
2020-04-16 09:01:26 +03:00
Nico Grunbaum 53809171df Bug 1628630 - update WEBRTC-SDP to 0.3.5;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D70339

--HG--
extra : moz-landing-system : lando
2020-04-16 05:35:58 +00:00
Glenn Watson f276147e7f Bug 1630480 - Update gleam GL bindings to 0.11.0 r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D71133

--HG--
extra : moz-landing-system : lando
2020-04-16 02:13:31 +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
Chun-Min Chang c0327eb4e1 Bug 1628132 - P3: Update cubeb-coreaudio to 0f62d38. r=kinetik
Pick commits:
- 0f62d38: backend: Allow Clippy's cognitive_complexity lint on several functions. (#83)
- fbf5cbd: Update to cubeb-backend 0.6.3. (#82)
- b49264b: Remove unknown devices when querying devices in scope (#81)

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:44:24 +00:00
Dzmitry Malyshau 964f4f889c Bug 1629605 - wgpu tracking fixes r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D70707

--HG--
extra : moz-landing-system : lando
2020-04-14 00:32:50 +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
Dzmitry Malyshau 540f1bea3f Bug 1629359 - Update parking_lot to 0.10 r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70646

--HG--
rename : third_party/rust/parking_lot/src/mutex.rs => third_party/rust/parking_lot/src/fair_mutex.rs
extra : moz-landing-system : lando
2020-04-12 19:14:43 +00:00
Stefan Hindli a8922cc7ff Backed out changeset 01cb2f16985e (bug 1629359) for linux x64 qr webgpu bustage
--HG--
extra : rebase_source : 29e879b00d66376a0508bc2df060fcf3f6028590
2020-04-12 22:09:15 +03:00
Dzmitry Malyshau 80f2377b05 Bug 1629359 - Update parking_lot to 0.10 r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70646

--HG--
rename : third_party/rust/parking_lot/src/mutex.rs => third_party/rust/parking_lot/src/fair_mutex.rs
extra : moz-landing-system : lando
2020-04-12 16:25:25 +00:00
Dzmitry Malyshau 0e42a4799d Bug 1628772 - Update core-foundation dependency to 0.7 r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70432

--HG--
extra : moz-landing-system : lando
2020-04-11 20:14:41 +00:00
Bastien Orivel 773f327186 Bug 1581062 - Part 1: Don't use the heavyweight feature of Inflector. r=froydnj
binast only uses one function from Inflector and it doesn't require any
feature.

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

--HG--
extra : moz-landing-system : lando
2020-04-11 08:55:09 +00:00
Ryan Hunt 3e1ce863e3 Bug 1624524 - Only compile wasmTextToBinary and wasmCodeOffsets in JS Shell. r=bbouvier
This commit moves the implementation of the wasmTextToBinary and wasmCodeOffets
functions to the JS shell.

Before this change, the implementation was in wasm/rust/. This commit moves the
implementation to js/rust, which is only compiled for the JS shell. The C++
bindings for the rust code is moved to the shell/ directory.

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

--HG--
rename : js/src/wasm/rust/src/lib.rs => js/src/rust/wasm.rs
rename : js/src/wasm/WasmTesting.cpp => js/src/shell/WasmTesting.cpp
rename : js/src/wasm/WasmTesting.h => js/src/shell/WasmTesting.h
extra : moz-landing-system : lando
2020-04-10 21:28:21 +00:00
Thom Chiovoloni be606b9953 Bug 1628447 - Bump vendored rusqlite version to 0.22.0 r=lina
This gets us off the prerelease.

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

--HG--
extra : moz-landing-system : lando
2020-04-10 20:55:16 +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
Mihai Alexandru Michis 5beb91b795 Backed out changeset d91a97562b48 (bug 1628772) for causing failures regarding core-foundation.
CLOSED TREE
2020-04-10 03:42:05 +03:00
Dzmitry Malyshau feed464a5d Bug 1628772 - Update core-foundation dependency to 0.7 r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70432

--HG--
extra : moz-landing-system : lando
2020-04-09 20:57:18 +00:00
Bogdan Tara 5dcf5dcc85 Backed out changeset d8ef791a2165 (bug 1596322) for browser_all_files_referenced.js failures CLOSED TREE 2020-04-09 13:17:04 +03:00
Lina Cambridge fcb1f70a45 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 07:32:52 +00:00
Brindusan Cristian bb29753b0d Backed out changeset 2b02e71f1780 (bug 1596322) for multiple xpcshell failures. CLOSED TREE 2020-04-09 03:39:56 +03:00
Dragana Damjanovic eb775d698e Bug 1628459 - Update neqo to 0.2.4 r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D70239

--HG--
extra : moz-landing-system : lando
2020-04-08 21:01:52 +00:00
Lina Cambridge 186b7665c4 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 20:18:37 +00:00
Thom Chiovoloni f4c72f5296 Bug 1626323 - Vendor rusqlite into mozilla-central. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70109

--HG--
extra : moz-landing-system : lando
2020-04-07 22:13:51 +00:00
Dan Minor 35b359b642 Bug 1347911 - Update webrtc-sdp to 0.3.4; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D69267

--HG--
rename : third_party/rust/webrtc-sdp/examples/sdps/2.sdp => third_party/rust/webrtc-sdp/examples/sdps/02.sdp
rename : third_party/rust/webrtc-sdp/examples/sdps/4.sdp => third_party/rust/webrtc-sdp/examples/sdps/04.sdp
rename : third_party/rust/webrtc-sdp/examples/sdps/6.sdp => third_party/rust/webrtc-sdp/examples/sdps/06.sdp
rename : third_party/rust/webrtc-sdp/examples/sdps/7.sdp => third_party/rust/webrtc-sdp/examples/sdps/07.sdp
rename : third_party/rust/webrtc-sdp/examples/sdps/8.sdp => third_party/rust/webrtc-sdp/examples/sdps/08.sdp
rename : third_party/rust/webrtc-sdp/examples/sdps/9.sdp => third_party/rust/webrtc-sdp/examples/sdps/09.sdp
extra : moz-landing-system : lando
2020-04-08 11:40:19 +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
Tooru Fujisawa be31dc3ce1 Bug 1625823 - Part 1: Update jsparagus and support RegExp. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D69886

--HG--
rename : third_party/rust/jsparagus-emitter/src/scope_pass.rs => third_party/rust/jsparagus-scope/src/context.rs
rename : third_party/rust/jsparagus-emitter/src/scope.rs => third_party/rust/jsparagus-scope/src/data.rs
rename : third_party/rust/jsparagus-emitter/src/frame_slot.rs => third_party/rust/jsparagus-scope/src/frame_slot.rs
extra : moz-landing-system : lando
2020-04-07 13:43:45 +00: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
Anthony Ramine 42bdec38a0 Bug 1627636 - Vendor mio-named-pipes from crates.io; r=kinetik
There is no need to use the Git repository, its only change compared to 0.1.6
is that some random tidbit has been fixed in the README file.

Depends on D69805

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

--HG--
extra : moz-landing-system : lando
2020-04-07 02:41:07 +00:00
Chun-Min Chang 34ff7578a8 Bug 1627376 - Update cubeb-coreaudio to ea9e5aa. r=padenot
Pick commits:
- ea9e5aa: Implement a API to get `groupd_id` with special case handling (#69)
- d67d4d2: Revise prepush when deleting branch (#76)
- e5b0f97:  Stop test immediately when error happens (#77)
- 98e59e5: Migrate from travis-ci.org to travis-ci.com

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

--HG--
extra : moz-landing-system : lando
2020-04-06 12:43:21 +00:00
J.C. Jones 6ac6057d92 Bug 1626636 - Vendor rust-cascade v0.6.0 r=keeler
Add salts, file format v2, SHA256 hash support, and logic inversion

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

--HG--
rename : third_party/rust/rust_cascade/test_data/test_mlbf => third_party/rust/rust_cascade/test_data/test_v1_murmur_mlbf
rename : third_party/rust/rust_cascade/test_data/test_short_mlbf => third_party/rust/rust_cascade/test_data/test_v1_murmur_short_mlbf
extra : moz-landing-system : lando
2020-04-02 20:30:15 +00:00
Ryan Hunt 4f62abea70 Bug 1624363 - Vendor wat 0.1.14. r=lth
This commit updates the wat version in tree.
 * Implements MVP GC syntax
 * Updated abs SIMD opcodes

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

--HG--
extra : moz-landing-system : lando
2020-04-02 19:42:57 +00:00
Chun-Min Chang ad5358ae60 Bug 1626697 - P2: Update cubeb-coreaudio to 432259a. r=padenot
Pick commits:
- 432259a: Run `cargo fmt`
- c9f0499: Revert `derive(Debug)` removal (#75)
- f9abca8:  Replace the custom input linear buffer by something based on ringbuf. (#74)
- 4eafcc8: Fix the resampler-calling code to use the correct semantic (#71)
- 828efbc: Merge pull request #72 from ChunMinChang/rm-debug-trait

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

--HG--
extra : moz-landing-system : lando
2020-04-02 01:29:44 +00:00
Chun-Min Chang 1ae748c840 Bug 1626697 - P1: Update cubeb-pulse to 72f813a. r=padenot
Pick commits:
- 72f813a: Fix warning
- f05a33f: Update ringbuf to 0.2

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

--HG--
extra : moz-landing-system : lando
2020-04-02 01:29:36 +00:00
Dragana Damjanovic 722d96a748 Bug 1626799 - Update Neqo to 0.2.3 r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D69290

--HG--
rename : third_party/rust/neqo-common/src/once.rs => third_party/rust/neqo-crypto/src/once.rs
extra : moz-landing-system : lando
2020-04-01 23:48:22 +00:00
Thom Chiovoloni 5265a52464 Bug 1626125 - Vendor sync15-traits into mozilla-central. r=lina
Vendor sync15-traits from application-services.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 17:04:29 +00:00
Nicolas Silva 430e8ef7b4 Bug 1625220 - Use euclid 0.20.8. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D68469

--HG--
extra : moz-landing-system : lando
2020-03-31 12:41:52 +00:00
Stefan Hindli 73e4464101 Backed out 3 changesets (bug 1625220) for causing wrench bustages CLOSED TREE
Backed out changeset fbeb908b3513 (bug 1625220)
Backed out changeset 793808082134 (bug 1625220)
Backed out changeset 17bf8121665a (bug 1625220)
2020-03-31 12:59:52 +03:00
Nicolas Silva 70311638fb Bug 1625220 - Use euclid 0.20.8. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D68469

--HG--
extra : moz-landing-system : lando
2020-03-31 09:36:39 +00:00
Jan-Erik Rediger 972f9c8315 Bug 1623300 - Implement the remaining parts of the control API. r=chutten
Controlling is two things:
* initializing Glean
* toggling upload enabled.

Initializing also means setting the internal metrics (client info), some
of which we detect at build time.

`upload_enabled` will eventually be tied to the Firefox Telemetry upload preference.

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

--HG--
extra : moz-landing-system : lando
2020-03-31 08:43:38 +00:00
Jan-Erik Rediger 311c2d9ea7 Bug 1623300 - Replace fogotype with the actual FOG crate now. r=chutten
This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a `MOZ_GLEAN` define.
For Rust it's behind the `glean` feature (enabled on nightly only).
The `fog` crate is empty, so no Glean is actually instantiated.

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

--HG--
rename : third_party/rust/glean-preview/src/metrics/mod.rs => toolkit/components/glean/src/lib.rs
extra : moz-landing-system : lando
2020-03-31 08:24:40 +00:00
Razvan Maries b243785ac5 Backed out 6 changesets (bug 1623300, bug 1623306) for build bustages. CLOSED TREE
Backed out changeset 5267e6e2015d (bug 1623300)
Backed out changeset 45fadf903140 (bug 1623300)
Backed out changeset 46949083a8c8 (bug 1623306)
Backed out changeset cbcb3bb23090 (bug 1623300)
Backed out changeset c04dbe8dd337 (bug 1623300)
Backed out changeset d2673451da54 (bug 1623300)

--HG--
rename : toolkit/components/glean/src/lib.rs => third_party/rust/glean-preview/src/metrics/mod.rs
2020-03-31 11:19:31 +03:00
Jan-Erik Rediger 1eba67a2fb Bug 1623300 - Implement the remaining parts of the control API. r=chutten
Controlling is two things:
* initializing Glean
* toggling upload enabled.

Initializing also means setting the internal metrics (client info), some
of which we detect at build time.

`upload_enabled` will eventually be tied to the Firefox Telemetry upload preference.

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

--HG--
extra : moz-landing-system : lando
2020-03-30 19:14:47 +00:00