Commit Graph

386 Commits

Author SHA1 Message Date
Bastien Orivel
81ccf6ca5b Bug 1545960 - Part 1: Replace tempdir by tempfile. r=ato
tempdir has been deprecated for a while. I've set tempfile to 3.0.2 on
purpose to avoid duping rand for now (but this is one more step in the
direction of getting everything to rand 0.6 as tempfile 3 is on it
already).

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

--HG--
extra : moz-landing-system : lando
2019-05-08 09:49:24 +00:00
Alexis Beingessner
3c003ecb1c Bug 1525402 - Migrate webrender externs to a Rust 2018 compatible form. r=kvark
Notably `extern crate foo as bar` is no longer supported
(must do it in Cargo.toml). Also stopped using euclid through webrender_api,
because it produces worse results in 2018.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 01:40:19 +00:00
Dana Keeler
399a45f767 bug 1546361 - recreate cert_storage data as necessary r=jcj,myk
It turns out that an rkv database created on a 32-bit platform cannot be used on
a 64-bit platform and vice-versa. To work around this for now, we delete and
recreate the DB backing cert_storage and set flags to let our consumers know
to re-load all known data.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 23:41:17 +00:00
Lina Cambridge
ea48c5e7eb Bug 1546035 - Remove local and remote livemarks when syncing. r=mak,tcsc
This commit exports livemarks before syncing for the first time, to
avoid losing livemarks that Sync may have resurrected. As of v0.2.4,
Dogear treats livemarks as non-syncable, and deletes them on both
sides.

This also bumps the mirror schema version, to trigger a first sync.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 08:03:36 +00:00
Dzmitry Malyshau
0302456bb8 Bug 1525420 - Use KHR_blend_equation_advanced for mix-blend mode implementation r=gw
Use natively supported mix-blend modes, where appropriate. Disabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-05-01 20:45:22 +00:00
Mark Goodwin
623ad6e025 Bug 1538161 - Vendor rust_cascade r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D24557

--HG--
extra : moz-landing-system : lando
2019-05-01 19:25:27 +00:00
Nicolas Silva
0a6cdf56e5 Bug 1547290 - Vendoring changes. r=kvark"
Differential Revision: https://phabricator.services.mozilla.com/D29004

--HG--
extra : source : aa8a0a8b3440b1369cfb948633b760835cbbef0c
2019-04-29 17:06:41 +02:00
Dana Keeler
24f126d799 bug 1530545 - store preloaded intermediates in cert_storage r=mgoodwin,myk
This updates cert_storage to be able to store certificates indexed by subject DN
for easy lookup by NSSCertDBTrustDomain during path building. This also updates
RemoteSecuritySettings to store newly-downloaded preloaded intermediates in
cert_storage.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 00:00:48 +00:00
Narcis Beleuzu
7b6eba4fa3 Backed out changeset ea8bdd612f43 (bug 1538161) for bustages on rust_cascade . CLOSED TREE 2019-04-29 23:06:51 +03:00
Mark Goodwin
9a21c9d07f Bug 1538161 - Vendor rust_cascade r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D24557

--HG--
extra : moz-landing-system : lando
2019-04-29 19:29:38 +00:00
Noemi Erli
de59160691 Backed out changeset 3fa81f747c93 (bug 1538161) for causing rust build bustages CLOSED TREE 2019-04-29 17:19:42 +03:00
Mark Goodwin
8814fd6055 Bug 1538161 - Vendor rust_cascade r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D24557

--HG--
extra : moz-landing-system : lando
2019-04-29 14:04:07 +00:00
Myk Melez
e78c3248d7 Bug 1539549 - update cert blocklist using single transaction r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D28540

--HG--
extra : moz-landing-system : lando
2019-04-26 20:10:59 +00:00
Kartikaya Gupta
26da9a6c9e Bug 1542826 - Expose a mozconfig flag to build the WR debugger feature. r=gw,froydnj
We can't yet enable the build by default since it pulls in networking functions
into libgkrust which runs afoul of the checks added in bug 1376621.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:31:16 +00:00
Kartikaya Gupta
0c6155d01f Bug 1542826 - Bump net2 to a version that builds on 64-bit android. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D28888

--HG--
extra : moz-landing-system : lando
2019-04-25 19:28:42 +00:00
Nicolas Silva
07fb863bc2 Bug 1533545 - Limit the number of WebRender Workers to 8. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D27651

--HG--
extra : source : 7ea6ff1a401547ba07a101d41f05e261a3cf0fcc
extra : intermediate-source : 577f702d4d95abedc0d48cec89d4293184698052
2019-04-24 20:29:42 +02:00
Benjamin Bouvier
b8e8bcf508 Bug 1546439: Bump Cranelift to 538a0662bf90a1daa9921c10f34827ace134abf1; r=lth
The one optimization introduced by this is the rearrangement of branches to
prefer fallthrough whenever possible, as well as folding branches when
comparing against 0. See also
https://github.com/CraneStation/cranelift/pull/629 for details.

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

--HG--
extra : rebase_source : f0d765a1cb1e2f7872037c18b9951077a08ae4b7
extra : histedit_source : 1a1dd95618e166705f7165c045f3b5af12f96d5b
2019-04-23 17:37:34 +02:00
Oana Pop Rus
c6b6e59f21 Backed out 2 changesets (bug 1533545) for build bustages at build/src/gfx/webrender_bindings/WebRenderAPI.cpp on a CLOSED TREE
Backed out changeset d0260a2dac6c (bug 1533545)
Backed out changeset 76927efc43f5 (bug 1533545)
2019-04-24 15:21:49 +03:00
Nicolas Silva
b78ebe3262 Bug 1533545 - Limit the number of WebRender Workers to 8. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D27651

--HG--
extra : source : 7ea6ff1a401547ba07a101d41f05e261a3cf0fcc
extra : intermediate-source : 1d318222de1dc2d7f56abbbef4a611088995373a
2019-04-23 22:41:17 +02:00
Emilio Cobos Álvarez
3bb02fa89f Bug 1546048 - Use std::ffi::CStr and the cstr crate instead of custom stuff in xpcom. r=lina
Also, this checks for strings with nulls, which is nice (though I guess an
uncommon mistake).

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

--HG--
extra : moz-landing-system : lando
2019-04-22 05:09:23 +00:00
Myk Melez
e2338641e4 Bug 1460811 - migrate XULStore to rkv r=bgrins,lina
Differential Revision: https://phabricator.services.mozilla.com/D25355

--HG--
rename : toolkit/components/xulstore/components.conf => toolkit/components/xulstore/tests/gtest/moz.build
extra : moz-landing-system : lando
2019-04-22 02:59:51 +00:00
Coroiu Cristina
5f4315f3ee Backed out changeset 37054e6d6bbb (bug 1460811) for marionette failures at marionette_harness/tests/unit/test_cli_arguments.py on a CLOSED TREE 2019-04-20 00:05:55 +03:00
Myk Melez
2eece48676 Bug 1460811 - migrate XULStore to rkv r=bgrins,lina
Differential Revision: https://phabricator.services.mozilla.com/D25355

--HG--
rename : toolkit/components/xulstore/components.conf => toolkit/components/xulstore/tests/gtest/moz.build
extra : moz-landing-system : lando
2019-04-19 17:42:48 +00:00
Razvan Maries
1f6c35708a Backed out changeset 2f8f0e53a7db (bug 1460811) for leakcheck perma failures. CLOSED TREE 2019-04-19 00:16:32 +03:00
Myk Melez
f61d3b4399 Bug 1460811 - migrate XULStore to rkv r=bgrins,lina
Differential Revision: https://phabricator.services.mozilla.com/D25355

--HG--
rename : toolkit/components/xulstore/components.conf => toolkit/components/xulstore/tests/gtest/moz.build
extra : moz-landing-system : lando
2019-04-18 19:27:12 +00:00
Myk Melez
c411b93c35 Bug 1543795 - configure lmdb-rkv-sys to use a smaller MDB_IDL_LOGN size r=nanj,glandium
Configure the lmdb-rkv-sys Rust crate to use a smaller MDB_IDL_LOGN size in order to reduce allocations when opening an LMDB environment in read-write mode.

@glandium I adopted the configuration strategy you suggested of creating a "feature" for each reasonable value for the MDB_IDL_LOGN macro.  Fortunately, the range of reasonable values is fairly small.

@nanj Based on your evalution in https://github.com/mozilla/lmdb/pull/2, a value of "9" for this macro should aggressively reduce the allocations while still supporting our existing use cases.  But I'm open to increasing it, if you think a higher initial value would be preferable.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 16:03:10 +00:00
Henri Sivonen
d88123ff6b Bug 1543388 - Update vendored memchr 2.x crate. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D27485

--HG--
extra : moz-landing-system : lando
2019-04-15 23:44:39 +00:00
Kirk Steuber
1b86be999a Bug 1520321 - Implement XPCOM interface for BITS r=lina
This patch introduces an asynchronous XPCOM interface for the bits client added in Bug 1523417

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

--HG--
extra : moz-landing-system : lando
2019-04-15 19:44:35 +00:00
Benjamin Bouvier
da79779db2 Bug 1539406: Bump Cranelift to revision 542d799dd7a3b2cc; r=lth
This is the first time we pin a specific Cranelift commit hash to use in Gecko.
The target-lexicon hack is removed and instead we introduce a vendor patch for
cranelift-codegen/cranelift-wasm themselves.

Notable changes happen in top-level Cargo.toml, .cargo/config.in and
js/src/wasm/cranelift/Cargo.toml; the rest has been generated by `mach vendor
rust`.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 10:39:28 +00:00
Noemi Erli
dd7e27f4a8 Merge inbound to mozilla-central. a=merge 2019-04-09 12:55:19 +03:00
Razvan Maries
51bf310eab Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-04-09 00:02:13 +03:00
Bastien Orivel
8b5dc7e481 Bug 1516337 - Part 1: Dedupe sha2 and related dependencies r=froydnj
This also removes the lalrpop files from the .git/hgignore as that
breaks the build since lalrpop now includes lrgrammar in the published
crate and that file needs to be vendored

--HG--
extra : histedit_source : e31c07645a87a11b19a0b7e44f2a48d791b5f396
2019-04-08 23:17:50 +03:00
Lina Cambridge
6bef7b8477 Bug 1542528 - Add an xpcom::c_str macro for creating static C strings. r=froydnj
This is based on the `c_str` macro in `js/rust/src/heap.rs`, but
returns a `NulTerminatedCStr` type that can be cast to a pointer.

This commit also changes `ThreadPtrHolder::new` to take a
`NulTerminatedCStr`, and removes an unnecessary `RefPtr` reference in
`is_current_thread`.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 14:43:35 +00:00
Myk Melez
8921690f26 Bug 1542888 - avoid Rkv::Manager call to std::fs::canonicalize r=lina
Avoid using Rkv::Manager, which calls std::fs::canonicalize, triggering bug 1531887 in Firefox on Android.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 03:57:18 +00:00
Dana Keeler
61bd4db566 Bug 1535752 - avoid unnecessarily base64-encoding inputs to nsICertStorage when we already have DER r=mgoodwin
Differential Revision: https://phabricator.services.mozilla.com/D26034

--HG--
extra : moz-landing-system : lando
2019-04-05 21:19:21 +00:00
Lina Cambridge
55eaa1eb23 Bug 1540894 - Vendor Dogear v0.2.3. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D26274

--HG--
extra : moz-landing-system : lando
2019-04-05 20:44:18 +00:00
Coroiu Cristina
749dbdc496 Merge mozilla-central to inbound a=merge 2019-04-05 06:23:29 +03:00
Jan Beich
d099734e70 Bug 1530098 - Update libc crate to 0.2.51 to pick up FreeBSD fixes for non-x86. r=froydnj
--HG--
rename : third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs => third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/arm.rs
rename : third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs => third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs
rename : third_party/rust/libc/src/unix/notbsd/emscripten.rs => third_party/rust/libc/src/unix/notbsd/emscripten/mod.rs
rename : third_party/rust/libc/src/unix/notbsd/linux/s390x.rs => third_party/rust/libc/src/unix/notbsd/linux/s390x/mod.rs
rename : third_party/rust/libc/src/unix/solaris/mod.rs => third_party/rust/libc/src/unix/solarish/mod.rs
rename : third_party/rust/libc/src/unix/uclibc/mips/mips32.rs => third_party/rust/libc/src/unix/uclibc/mips/mips32/mod.rs
rename : third_party/rust/libc/src/unix/uclibc/mips/mips64.rs => third_party/rust/libc/src/unix/uclibc/mips/mips64/mod.rs
2019-04-05 01:34:23 +00:00
Emilio Cobos Álvarez
c028706efc Bug 1541913 - Use Servo lengths for column-width. r=boris
Depends on D26154

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

--HG--
extra : moz-landing-system : lando
2019-04-04 18:29:57 +00:00
Kartikaya Gupta
4752e32d5b Bug 1529117 - Bump serde and serde_derive to branch from 1.0.88. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D20460

--HG--
extra : moz-landing-system : lando
2019-04-04 15:41:57 +00:00
Emilio Cobos Álvarez
f59ad7aa8e Bug 1490401 - MatchMedia should work inside display: none iframes. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D25926

--HG--
extra : moz-landing-system : lando
2019-04-04 11:25:31 +00:00
Ciure Andrei
4116e08315 Merge inbound to mozilla-central. a=merge 2019-04-04 07:34:14 +03:00
Dana Keeler
a483dcca02 Bug 1539415 - make nsICertStorage (cert_storage) asynchronous for functions called from the main thread r=jcj,mgoodwin
The Set* functions of nsICertStorage (SetRevocationByIssuerAndSerial,
SetRevocationBySubjectAndPubKey, SetEnrollment, and SetWhitelist) are called on
the main thread by the implementations that manage consuming remote security
information. We don't want to block the main thread, so this patch modifies
these functions to take a callback that will be called (on the original thread)
when the operation in question has been completed on a background thread.

The Get* functions of nsICertStorage (GetRevocationState, GetEnrollmentState,
and GetWhitelistState) should only be called off the main thread. For the most
part they are, but there are at least two main-thread certificate verifications
that can cause these functions to be called on the main thread. These instances
are in nsSiteSecurityService::ProcessPKPHeader and
ContentSignatureVerifier::CreateContextInternal and will be dealt with in
bug 1406854 bug 1534600, respectively.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 23:24:19 +00:00
Nathan Froyd
7eee5d9139 Bug 1537643 - update cc crate; r=glandium
This update from the official sources brings in the changes that we were
using glandium's fork for, as well as changes enabling us to tweak more
settings on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 00:06:04 +00:00
Andrew Osmond
a26277d8ff Bug 1541059 - Add support for KHR_debug to WebRender for debug markers. r=kvark
Today we already support EXT_debug_marker for debug markers in
WebRender. This is useful to categorize GL API calls in tools such as
APITrace and RenderDoc. However not all drivers indicate support for
said extension, but instead support KHR_debug. This patch makes us
support both methods, preferring KHR_debug.

Differential Revision: https://phabricator.services.mozilla.com/D25787
2019-04-02 12:31:03 -04:00
Emilio Cobos Álvarez
63d22618c3 Bug 1520953 - Update gleam. r=kats,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D25602

--HG--
extra : moz-landing-system : lando
2019-04-01 17:54:08 +00:00
Emilio Cobos Álvarez
7d6f6c28d7 Bug 1536582 - Autogenerate Servo_ binding functions with cbindgen. r=boris
This depends on https://github.com/eqrion/cbindgen/pull/308. Other than that,
this should be ready to go.

There's still a bit more magic than what I'd like to eventually. I should be
able to make cbindgen not rename types if it doesn't know about them, or
something.

But this removes most of the manual binding function implementations (all but
the ones that are declared via macros, which cbindgen doesn't see across).

I need to give up on the _Drop functions taking an Owned<T> because of
instantiation order fiasco. In order to define DefaultDelete I need Owned to be
complete, but I cannot do it after including the generated file since some
declarations already instantiate the specialization. Oh well.

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

--HG--
rename : servo/components/style/cbindgen.toml => servo/ports/geckolib/cbindgen.toml
extra : moz-landing-system : lando
2019-03-30 20:18:33 +00:00
Cameron McCormack
3a08c03925 Bug 1474793 - Part 11: Add FFI API to use SharedMemoryBuilder. r=emilio
Depends on D17197

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

--HG--
extra : moz-landing-system : lando
2019-03-30 00:16:27 +00:00
Cameron McCormack
6b5853fa8e Bug 1474793 - Part 10.8: Add derived ToShmem implementations. r=emilio
Depends on D17196

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

--HG--
extra : moz-landing-system : lando
2019-03-30 00:16:25 +00:00
Cameron McCormack
d46b90bcd7 Bug 1474793 - Part 10.2: Add ToShmem impls for collections and strings. r=emilio
Depends on D17190

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

--HG--
extra : moz-landing-system : lando
2019-03-30 00:16:13 +00:00