Commit Graph

1430 Commits

Author SHA1 Message Date
Gurzau Raul
a6c5c5e3ac Backed out 14 changesets (bug 1554976) for Windows build bustages on a CLOSED TREE.
Backed out changeset a9b209d9d880 (bug 1554976)
Backed out changeset 27b4dddf9597 (bug 1554976)
Backed out changeset 3e16c10bb966 (bug 1554976)
Backed out changeset 6a404fca61dc (bug 1554976)
Backed out changeset 77c4e76c8130 (bug 1554976)
Backed out changeset 24f146b86cc4 (bug 1554976)
Backed out changeset b49b4326dcfd (bug 1554976)
Backed out changeset e2c837d1e0a0 (bug 1554976)
Backed out changeset 24728144c263 (bug 1554976)
Backed out changeset a099e69241a0 (bug 1554976)
Backed out changeset 0e34595c2680 (bug 1554976)
Backed out changeset a506bb40047e (bug 1554976)
Backed out changeset 513026415092 (bug 1554976)
Backed out changeset e0fc6a1d4332 (bug 1554976)
2019-08-28 18:10:11 +03:00
Dan Minor
a17af56ba5 Bug 1554976 - Add rust mdns library to mtransport; r=ng,dragana
This adds a mdns_service to mtransport to handle responding to mDNS queries.
All hostnames will be generated from UUIDs, so the responder assumes that it
is the only responder for a hostname which is registered with it. Because of
this, the responder does not first make a DNS query itself to see if any other
responder is handling a hostname, and does not wait a random amount of time
before replying, both of which are required by the specification to avoid
collisions with other responders.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:09:59 +00:00
Paul Adenot
c23f8dcae9 Bug 1576168 - Update audio_thread_priority to 0.19.1. r=pehrsons
This changes the hard-limit of `RLIMIT_RTTIME` to be the maximum available
(200ms on my system), and keep the soft limit to the same number.

Having different numbers allow catching SIGXCPU before getting SIGKILL.

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

--HG--
extra : moz-landing-system : lando
2019-08-27 08:00:36 +00:00
Coroiu Cristina
38d7f20baa Backed out 2 changesets (bug 1576168) for build bustages on a CLOSED TREE
Backed out changeset 3ea6795200b1 (bug 1576168)
Backed out changeset 4e8fc76cd529 (bug 1576168)
2019-08-26 19:46:38 +03:00
Paul Adenot
1029a3ce04 Bug 1576168 - Update audio_thread_priority to 0.19.0. r=pehrsons
This changes the hard-limit of `RLIMIT_RTTIME` to be the maximum available
(200ms on my system), and keep the soft limit to the same number.

Having different numbers allow catching SIGXCPU before getting SIGKILL.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 14:20:22 +00:00
Mike Hommey
29df9beb73 Bug 1575783 - Fix bug 1551639 after bug 1573566. r=froydnj
Bug 1573566 moved libxul in a subdirectory, which means the list of
files it links are now relative to that directory, rather than the
directory where buildid.cpp is. So the dependencies for buildid.cpp
need to account for that.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 14:23:05 +00:00
Landry Breuil
ed949fb424 Bug 1564897 - replace remaining dots by underscores when formatting libxul_list r=glandium 2019-08-22 09:00:41 +03:00
Mike Hommey
66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Toshihito Kikuchi
d5a7d77f4f Bug 1573051 - Use both SHParseDisplayName and CreateUri to validate a uri. r=aklotz
For launching with an external protocol handler on Windows, we validate a uri
before sending it to `ShellExecute`, by converting a string into `PIDL` using
`SHParseDisplayName` and extract a string back from PIDL using
`IShellFolder::GetDisplayNameOf`.  The problem was that if a fragment, a
string following a hash mark (#), is always dropped after this validation.
This is caused by the intended design of Windows.

A proposed fix is to use `CreateUri` for validation, which is used behind
`IShellFolder::GetDisplayNameOf`.  However, we also keep `SHParseDisplayName`
because there are cases where `CreateUri` succeeds while `SHParseDisplayName`
fails such as a non-existent `file:` uri and we want to keep the same
validation result for those cases.

Adding `CreateUri` broke MinGW build because of our toolkit issue.  We use
dynamic linking for MinGW build in the meantime.

This patch adds a new unittest to make sure the new validation logic
behaves the same as the old one except the fragment issue.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:10:32 +00:00
Paul Adenot
5366291789 Bug 1574914 - Bump audio_thread_priority to 0.18. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D42504

--HG--
extra : moz-landing-system : lando
2019-08-19 13:50:08 +00:00
Mike Hommey
312ec28e99 Bug 1573566 - Move the real libxul definition in a subdirectory. r=froydnj
The current setup, where gtest/libxul uses the static library in
the same directory as the shared libxul, and somehow the backend ignores
gkrust for gtest/libxul, is fragile.

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

--HG--
rename : toolkit/library/dependentlibs.py => toolkit/library/build/dependentlibs.py
extra : moz-landing-system : lando
2019-08-16 21:44:10 +00:00
Razvan Maries
8275452b39 Backed out changeset 722bc0469e8e (bug 1573051) for Windows MinGW bustages. CLOSED TREE 2019-08-17 00:57:50 +03:00
Toshihito Kikuchi
27093f2f3d Bug 1573051 - Use both SHParseDisplayName and CreateUri to validate a uri. r=aklotz
For launching with an external protocol handler on Windows, we validate a uri
before sending it to `ShellExecute`, by converting a string into `PIDL` using
`SHParseDisplayName` and extract a string back from PIDL using
`IShellFolder::GetDisplayNameOf`.  The problem was that if a fragment, a
string following a hash mark (#), is always dropped after this validation.
This is caused by the intended design of Windows.

A proposed fix is to use `CreateUri` for validation, which is used behind
`IShellFolder::GetDisplayNameOf`.  However, we also keep `SHParseDisplayName`
because there are cases where `CreateUri` succeeds while `SHParseDisplayName`
fails such as a non-existent `file:` uri and we want to keep the same
validation result for those cases.

This patch adds a new unittest to make sure the new validation logic
behaves the same as the old one except the fragment issue.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 19:06:01 +00:00
Makoto Kato
3bf7ba667c Bug 1574077 - Add credui.dll to delayload DLL. r=dmajor
Bug 1498518 adds credui.dll to use OS's authenticate dialog for WebAuth support, but this isn't required at start up etc. So we should move this to delay load DLL list.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 18:47:45 +00:00
Henri Sivonen
c562792b2e Bug 1490593 - Move FFI for encoding_rs::mem to a vendored crate. r=froydnj
Also remove most C++-side optimizations for avoiding calls to Rust
for short strings now that we have LTO between C++ and Rust. Since
LTO still leaves the overhead of one function call layer, inlined
function call avoidance optimization is left in place in the
IsUTF8 and in the 8-bit IsASCII cases for which perfherder flags
the difference as significant for the length 15.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 07:53:34 +00:00
Mike Hommey
9176c8beb4 Bug 1572048 - Remove toolkit/library/gtest/static. r=mshal
It was used as an intermediate static library to ensure an order in
libxul-gtest wrt StaticXULComponents*, but those were removed in bug
1541792.

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

--HG--
rename : toolkit/library/gtest/static/TestUCRTDepends.cpp => toolkit/library/gtest/TestUCRTDepends.cpp
extra : moz-landing-system : lando
2019-08-14 02:44:59 +00:00
Henri Sivonen
ed1e9fd632 Bug 1572364 - Make jsrust_shared a non-optional dependency of gkrust-shared. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D41163

--HG--
extra : moz-landing-system : lando
2019-08-09 17:32:29 +00:00
Nicholas Nethercote
12640bca82 Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium
This patch introduces a new Rust crate called `static_prefs`.

It also changes generate_static_pref_list.py to generate two new files.

- StaticPrefsCGetters.cpp: contains C getters, which are just wrappers around
  the C++ getters. This is included into Preferences.cpp.

- static_prefs.rs: contains declarations for the C getters, plus the `pref!`
  macro which provides nice syntax for calling the C getters. This is included
  into static_prefs/src/lib.rs.

The new code is only generated for prefs marked with the new `rust` field in
the YAML. It's opt-in because there's no point generating additional code for
900+ static prefs when only about 20 are currently used from Rust.

This patch only marks a single pref (`browser.display.document_color_use`) with
`rust: true`. That pref isn't accessed from Rust code in this patch, but it's
necessary because the generated Rust code is invalid if there are zero
Rust-accessed prefs. (The next patch will access that pref and others from Rust
code.

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

--HG--
extra : moz-landing-system : lando
2019-08-07 05:16:55 +00:00
Paul Adenot
6e399961ed Bug 1570948 - Bump audio_thread_priority to 0.17. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D40410

--HG--
extra : moz-landing-system : lando
2019-08-02 12:44:33 +00:00
Eric Rahm
1804cbf6c4 Bug 1564638 - Update Linux to Rust beta 1.37. r=froydnj,glandium
Differential Revision: https://phabricator.services.mozilla.com/D37775

--HG--
extra : moz-landing-system : lando
2019-07-25 04:02:19 +00:00
Oana Pop Rus
15a4017037 Backed out changeset a1a4f3976b34 (bug 1564638) for wrench-deps bustages. on a CLOSED TREE 2019-07-25 04:26:08 +03:00
Eric Rahm
de3cb80766 Bug 1564638 - Update Linux to Rust beta 1.37. r=froydnj,glandium
Differential Revision: https://phabricator.services.mozilla.com/D37775

--HG--
extra : moz-landing-system : lando
2019-07-25 00:36:16 +00:00
Coroiu Cristina
b991d302fe Backed out changeset 2adf316da439 (bug 1564638) for wrench failures on a CLOSED TREE 2019-07-25 00:26:08 +03:00
Eric Rahm
59cad35d42 Bug 1564638 - Update Linux to Rust beta 1.37. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D37775

--HG--
extra : moz-landing-system : lando
2019-07-24 20:53:33 +00:00
Emilio Cobos Álvarez
2c808051d3 Bug 1567333 - Remove the ability to build Gecko without the bindgen feature. r=heycam
This is not used for anything, as far as I can tell.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 23:39:14 +00:00
Chun-Min Chang
0561641171 Bug 1530715 - P3: Build cubeb-coreaudio-rs in libcubeb. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D23432

--HG--
extra : moz-landing-system : lando
2019-07-10 08:06:12 +00:00
Sylvestre Ledru
90fac8fa22 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 12:03:37 +00:00
Andreea Pavel
b698eeec56 Backed out changeset 3d59cb02b6ff (bug 1562642) for eslint failure on a CLOSED TREE 2019-07-10 14:44:29 +03:00
Sylvestre Ledru
fd95abf361 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 11:15:25 +00:00
Andreea Pavel
7853764e9d Backed out 42 changesets (bug 1530715) for SM build bustages on a CLOSED TREE
Backed out changeset 88ba94506737 (bug 1530715)
Backed out changeset 586d1b42a31b (bug 1530715)
Backed out changeset 7e7f5b9f2bf6 (bug 1530715)
Backed out changeset 7506b654e92f (bug 1530715)
Backed out changeset 518f85cf84a9 (bug 1530715)
Backed out changeset aca1e6806fc9 (bug 1530715)
Backed out changeset 70e97244daa8 (bug 1530715)
Backed out changeset 7c1e970c84a0 (bug 1530715)
Backed out changeset 9e10aa50ca0e (bug 1530715)
Backed out changeset 2a8d1c6faa33 (bug 1530715)
Backed out changeset bdc3110a40e9 (bug 1530715)
Backed out changeset bd809d3c5fd8 (bug 1530715)
Backed out changeset fe28daa92fc4 (bug 1530715)
Backed out changeset a964627f40c6 (bug 1530715)
Backed out changeset 3f3677f2980f (bug 1530715)
Backed out changeset e527edaabd65 (bug 1530715)
Backed out changeset 421e51bf612b (bug 1530715)
Backed out changeset 8f10a1790557 (bug 1530715)
Backed out changeset 0c5a0ed7203a (bug 1530715)
Backed out changeset 7fe0263794d3 (bug 1530715)
Backed out changeset ecd20933073e (bug 1530715)
Backed out changeset de4e23af5054 (bug 1530715)
Backed out changeset dcd65347e392 (bug 1530715)
Backed out changeset cd0e483df6be (bug 1530715)
Backed out changeset 9acd782f9450 (bug 1530715)
Backed out changeset b4809ada60dd (bug 1530715)
Backed out changeset 3742faad3806 (bug 1530715)
Backed out changeset bf15184c3c63 (bug 1530715)
Backed out changeset b6139a17a5fd (bug 1530715)
Backed out changeset dda297f7755a (bug 1530715)
Backed out changeset e98c1c0d561d (bug 1530715)
Backed out changeset 72c18b15e767 (bug 1530715)
Backed out changeset a8d7741d9134 (bug 1530715)
Backed out changeset 7562f780b687 (bug 1530715)
Backed out changeset 0cec8139038c (bug 1530715)
Backed out changeset 5ebf9b275f10 (bug 1530715)
Backed out changeset 7042c5c9c764 (bug 1530715)
Backed out changeset 4cd64e4037fa (bug 1530715)
Backed out changeset 48719d342b6f (bug 1530715)
Backed out changeset 0500179d3bbf (bug 1530715)
Backed out changeset 4bed62b601c6 (bug 1530715)
Backed out changeset 30f0b9853b0f (bug 1530715)
2019-07-10 10:56:00 +03:00
Chun-Min Chang
94a049f7b4 Bug 1530715 - P3: Build cubeb-coreaudio-rs in libcubeb. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D23432

--HG--
extra : moz-landing-system : lando
2019-07-09 19:56:58 +00:00
Chris Manchester
fe54573f0d Bug 1563378 - Bump OOM hook version for the rust update to 1.36. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D37342

--HG--
extra : moz-landing-system : lando
2019-07-09 05:15:44 +00:00
Kartikaya Gupta
c8cff9effe Bug 1563311 - Remove uses of MOZ_BUILD_WEBRENDER. r=aosmond
This removes support for building Firefox/Gecko without WebRender.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 11:05:17 +00:00
shindli
b0332f1d66 Backed out changeset 16872c13ee93 (bug 1554286) per developer's request CLOSED TREE 2019-07-04 00:11:54 +03:00
Paul Adenot
dd1c0a3c44 Bug 1561681 - Change log level for audio thread promotion related-messages. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D36077

--HG--
extra : moz-landing-system : lando
2019-06-26 20:23:49 +00:00
Paul Adenot
0a287dc06a Bug 1560720 - Provide a blanket/noop implementation of audio_thread_priority for platform without a backend. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D35690

--HG--
extra : moz-landing-system : lando
2019-06-24 20:43:25 +00:00
Paul Adenot
be02258965 Bug 1429847 - Add audio_thread_priority to mozilla-central. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D30906

--HG--
extra : moz-landing-system : lando
2019-06-21 19:48:52 +00:00
Mike Hommey
0ab79a1ca0 Bug 1557171 - Update vendored lmdb-rkv-sys to 0.8.4. r=chmanchester
The only change is a fix for building for mips.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 20:23:10 +00:00
Mike Hommey
6f6e8cbd72 Bug 1551639 - Always update buildid but avoid rebuilding libxul. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33772

--HG--
extra : moz-landing-system : lando
2019-06-06 04:35:02 +00:00
Cosmin Sabou
bcd5ff3d98 Merge mozilla-central to autoland.
--HG--
extra : rebase_source : ec8335cc4fb4f7c2594b2b95cd6d5078af2be625
2019-06-03 19:24:20 +03:00
Henri Sivonen
21e1d0193a Bug 1543077 part 1 - Vendor shift_or_euc into m-c. r=emk.
Differential Revision: https://phabricator.services.mozilla.com/D27792
2019-06-03 15:30:41 +03:00
Nathan Froyd
c73bd5d580 Bug 1554286 - move Mac builds to Rust 1.36-beta; r=chmanchester
We would like to switch to using cross-language LTO on all of our
platforms, and we need to use a beta version of Rust on Mac to do that.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 17:50:38 +00:00
David Major
4ce08e1038 Bug 1527371 - Show linker time breakdown for xul.dll r=froydnj
COFF-flavored lld collects timing stats about various phases of linking. This might be useful to have in logs. I left it off in developer builds to avoid spamming tight edit-compile cycles.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 17:13:34 +00:00
Emilio Cobos Álvarez
058ea528a4 Bug 1552080 - Rejigger a bit rust features so that rusttests still link. r=froydnj
We cannot compile with just feature(gecko + debug_assertions), since that's how
debug rusttests get compiled and they don't have the refcount logging stuff.

We were getting away with it for the pre-existing usage of the style crate,
because it wasn't used during any test and presumably the linker didn't
complain. But servo_arc is definitely used in tests.

Differential Revision: https://phabricator.services.mozilla.com/D32691
2019-05-29 21:30:52 +02:00
Chris Manchester
c3dc5e71a0 Bug 1554006 - Bump max OOM hook version for the rust update to 1.35. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32931

--HG--
extra : moz-landing-system : lando
2019-05-29 16:01:37 +00:00
Mihai Alexandru Michis
1dd6cb6ee5 Backed out 6 changesets (bug 1543077) for causing bc failures at docshell/test/browser/browser_bug1543077.js
Backed out changeset f593045cc48f (bug 1543077)
Backed out changeset 25449ba8aceb (bug 1543077)
Backed out changeset ccc438262e29 (bug 1543077)
Backed out changeset 4573c25b1ce0 (bug 1543077)
Backed out changeset 1cbaafb9373a (bug 1543077)
Backed out changeset 1a0e7ced8e47 (bug 1543077)

--HG--
extra : rebase_source : f04bf405303fe03776f0e70b03db076c0a41ae45
2019-05-27 12:00:21 +03:00
Henri Sivonen
3a93cdaccc Bug 1543077 part 1 - Vendor shift_or_euc into m-c. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D27792

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:16 +00:00
Nathan Froyd
2b3a15afe9 Bug 1542746 - use a static MOZ_PROFILE_ORDER_FILE; r=nalexander,chmanchester
We're planning on switching to IR-based profiling, so we can't use the
frontend-based instrumentation to collect the order in which functions
are executed...at least not during the build itself.  Performance tests
indicate that not having the order information decreases performance
significantly.  So we're going to check in static files for Win32 and
Win64 and use those to perform the ordering.  It's OK if these files are
slightly out of date; as of this writing, builds that generate and then
use these files complain that ~1/3 of the functions can't be found (!).
We're just trying to do something slightly smarter than whatever the
linker default is.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 01:54:59 +00:00
Bastien Orivel
d24b02b94c Bug 1520166 - Part 1: Use a vendored version of authenticator. r=jcj
This replaces the in-tree u2fhid (which has been renamed to
authenticator) by the published crate.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 07:31:26 +00:00
Cameron McCormack
4b20fc81c7 Bug 1505908 - Add Gecko profiler labels for when the style threads are doing work. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D30869

--HG--
extra : moz-landing-system : lando
2019-05-14 05:00:45 +00:00