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

7823 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot bcf7c27938 Bug 1644664 - Update cubeb to e2ffb10. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D79044
2020-06-10 09:52:25 +00:00
Dan Minor f8f95a8f04 Bug 1643155 - Rename obfuscate_host_addresses pref; r=ng,mkaply
Renaming this to blocklist, as this is a list of sites for which hostname
obfuscation is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D78681
2020-06-09 09:30:04 +00:00
Bryce Seager van Dyk defad44097 Bug 1623651 - Update enums that have changed with CDM header bump. r=alwu,dminor
The CDM header bump has moved some enums, as well as using enum classes instead
of old style enums. This patch updates consumers of these enums to be compatible
with the new headers.

Drive by remove `using namespace cdm` from a couple of files as
- In some places I'd already been using fully qualified names.
- I prefer the fully qualified names as they make it clear when enums are coming
  from the cdm namespace and `cdm::` is not a particularly more verbose thing to
  have on identifiers.

Differential Revision: https://phabricator.services.mozilla.com/D78343
2020-06-08 19:02:05 +00:00
Dan Minor 31189b2a44 Bug 1641600 - Check RTX blocklist pref in PeerConnectionImpl; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D77814
2020-06-04 14:42:15 +00:00
Dan Minor bcf0e14ff6 Bug 1641600 - Add SetRtxIsAllowed method to JsepTrack and JsepSession; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D77813
2020-06-04 14:45:02 +00:00
Taegeon Lee 14c6288864 Bug 1629421 Fix redundant string initialization of ClientWebGlContext.cpp r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D78458
2020-06-05 11:15:30 +00:00
Nico Grunbaum 79a227b703 Bug 1615191 - P1 - implement remoteTimestamp for RTCRemoteOutboundRtpStreamStats;r=dminor,smaug
r?smaug for WebIDL review

Differential Revision: https://phabricator.services.mozilla.com/D78003
2020-06-05 11:41:24 +00:00
Nico Grunbaum 41e48cb684 Bug 1615191 - P0 - implement remoteTimestamp for RTCRemoteOutboundRtpStreamStats in libwebrtc;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D78004
2020-06-05 11:41:24 +00:00
Byron Campen [:bwc] 3567dc05dc Bug 1643169: Use ifr_ifru.ifru_flags6 instead of the ifr_flags macro, because the latter does not work properly on FreeBSD. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D78319
2020-06-04 15:56:46 +00:00
Butkovits Atila 8257764785 Backed out 3 changesets (bug 1641600) for failures at test_peerConnection_constructedStream.html. CLOSED TREE
Backed out changeset 41a85b7d3e5e (bug 1641600)
Backed out changeset 249782af96bb (bug 1641600)
Backed out changeset 86c2932e66d3 (bug 1641600)
2020-06-04 15:06:33 +03:00
Dan Minor 9c0a2aac8a Bug 1641600 - Check RTX blocklist pref in PeerConnectionImpl; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D77814
2020-06-03 20:57:33 +00:00
Dan Minor ee1ae2eb58 Bug 1641600 - Add SetRtxIsAllowed method to JsepTrack and JsepSession; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D77813
2020-06-03 20:54:58 +00:00
Byron Campen [:bwc] c5a5efa985 Bug 1183145: Teach platform-specific code to filter out inappropriate IPv6 addresses, and mark temp addresses. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D75962
2020-05-26 15:58:44 +00:00
Byron Campen [:bwc] 395beb03b2 Bug 1183145: Move platform-specific code from addrs.c into separate files. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D75947
2020-05-26 15:26:27 +00:00
Byron Campen [:bwc] 75a91dc755 Bug 1183145: Add a flags field to nr_local_addr so IPv6 addresses can be marked as temporary, and filter non-temp IPv6 if temp IPv6 are available. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76043
2020-05-26 16:03:38 +00:00
Byron Campen [:bwc] 11d0805c75 Bug 1183145: Rename a function to better reflect what it does, and fix a bug where handling of teredo and mac-based IPv6 was mixed up. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76042
2020-05-26 16:02:11 +00:00
Byron Campen [:bwc] 4bebff252f Bug 1636185: Inline this since nothing else was using it. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D74279
2020-06-01 21:56:57 +00:00
Byron Campen [:bwc] 55f0931f37 Bug 1636185: Don't use GetRemoteSSRCLocked when setting/unsetting ssrcs, because that is intended to be used for stats, not configuration. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D74267
2020-06-01 21:56:44 +00:00
Ricky Stewart 0bbaac721b Bug 1641693 - Replace a bunch of uses of `GENERATED_FILES` with the `GeneratedFile` template r=necko-reviewers,geckoview-reviewers,aklotz,dragana,froydnj
Also update documentation to suggest using the `GeneratedFile` template rather than directly referencing `GENERATED_FILES` where possible.

Differential Revision: https://phabricator.services.mozilla.com/D77496
2020-06-01 16:00:28 +00:00
Dan Minor f9c221ca56 Bug 1640697 - Test MID associated with multiple SSRCs; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D76900
2020-05-28 19:13:22 +00:00
Dan Minor df92d55880 Bug 1640697 - Use set for MID bindings in MediaPipelineFilter; r=ng
With RTX enabled, we have multiple SSRCs associated with a single MID, but the
filter code assumes that only one binding will be present. This change allows
a set of SSRCs to be associated with a MID.

Differential Revision: https://phabricator.services.mozilla.com/D76894
2020-05-28 19:13:14 +00:00
Sylvestre Ledru 4564119217 Bug 1617369 - Reformat recent rust changes with rustfmt r=froydnj
# ignore-this-changeset

Depends on D77580

Differential Revision: https://phabricator.services.mozilla.com/D77581
2020-05-30 12:58:22 +00:00
Nico Grunbaum 46b83b6604 Bug 1218356 - P2 - Implement the RTCDataChannel stats;r=dminor
Note that transportId is not implemented and is not a stat but a key back into
the stats report. It identifies the related transport stats object. We don't
have transport stats, so this can not be implemented at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D57116
2020-05-29 10:46:42 +00:00
Nico Grunbaum ee658e6245 Bug 1218356 - P1 - Add serializers for RTCDataChannel stats;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D57115
2020-05-29 10:38:37 +00:00
Dan Minor 9db7328409 Bug 1640668 - Remove unwrap() call from MDNSService start; r=mjf
Unwrap asserts if there is an error, ? will propogate it back to the caller
which is what we want.

Differential Revision: https://phabricator.services.mozilla.com/D77291
2020-05-28 16:46:54 +00:00
ChrisCushman 2c81dcfe0b Bug 1629422 - Eliminating redundant initialization in MediaTransportHandler r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D76770
2020-05-28 15:04:06 +00:00
Paul Adenot 0ae2549e51 Bug 1641579 - Update cubeb to 4cd6a92. r=cubeb-reviewers,achronop
4cd6a92 - CI: add FreeBSD jobs
eecb589 - QueryPerformanceCounter returns non-zero in case of success
524a9c9 - sun: Fix arithmetic on void pointer.

Differential Revision: https://phabricator.services.mozilla.com/D77264
2020-05-28 14:25:20 +00:00
Dan Minor d59bd05dc1 Bug 1603296 - Check for null data_ in EnsureCapacityWithHeadroom; r=ng
Since this passes IsConsistent() and data_ is null, capacity_ must be zero,
which implies size_ is zero, and so we attempt to copy zero bytes from a null
pointer. This doesn't seem to crash, but is still undefined behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D76913
2020-05-28 14:06:41 +00:00
Paul Adenot 3ceba56d25 Bug 1631724 - Temporarily disable an assert inside the cubeb's resampler. r=achronop
Reenabling is tracked in https://bugzilla.mozilla.org/show_bug.cgi?id=1641234

Differential Revision: https://phabricator.services.mozilla.com/D77064
2020-05-28 09:55:21 +00:00
Paul Adenot 536bed511e Bug 1628779 - Update audioipc to 1b27476950. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D75336
2020-05-28 09:53:39 +00:00
Dan Minor d7b3697b38 Bug 1638361 - Remove uuid generation code from mdns_service; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76708
2020-05-26 18:30:20 +00:00
Dan Minor a090854892 Bug 1638361 - Use nsIUUIDGenerator in NrIceCtx::GenerateObfuscatedAddress; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76707
2020-05-26 19:40:26 +00:00
Dan Minor 169cad5736 Bug 1639377 - Do not offer RRID header extension if RTX is disabled; r=drno
Differential Revision: https://phabricator.services.mozilla.com/D76890
2020-05-26 20:49:29 +00:00
Byron Campen [:bwc] 69fe649c2c Bug 1639916: Clean up pstream if we don't end up using it. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76359
2020-05-21 19:05:07 +00:00
Dan Minor 715e2622ab Bug 1637319 - Only enumerate capture devices on Linux that support V4L2_CAP_VIDEO_CAPTURE; r=ng
The side effect of not filtering on V4L2_CAP_VIDEO_CAPTURE is that every device
is enumerated twice. Because we look up devices by name, and the device that
supports V4L2_CAP_VIDEO_CAPTURE seems to always appear first in /dev/video,
this does not seem to end up with us ever choosing an inappropriate device. We
might get away with just filtering device names from the list, but if the order
of devices ever changed in /dev/video there could be problems.

Differential Revision: https://phabricator.services.mozilla.com/D75593
2020-05-15 19:40:28 +00:00
Dan Minor fdcf957cca Bug 1634675 - Remove webrtc-gtests r=drno,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73451
2020-05-20 19:59:45 +00:00
Aaron Klotz b4b8568b47 Bug 1637452: Part 13 - Fix JNI includes in media/webrtc; r=bwc
In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75376
2020-05-15 17:05:28 +00:00
Aaron Klotz de0ca92545 Bug 1637452: Part 12 - Fix JNI includes in media/libcubeb; r=cubeb-reviewers,kinetik
In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75375
2020-05-15 17:05:20 +00:00
Dan Minor b9598227dc Bug 1632489 - Only adjust valid capture times when generating padding; r=bwc
The current code will only set the TranmissionOffset extension if
capture_time_ms is > 0, but when adjusting timestamps for rtx packets, it is
adjusted  without first checking to see if it is valid, which will cause invalid
values of capture_time_ms to be written to TranmissionOffset, leading to assertion
failures.

This bug is still present on tip of libwebrtc, so we'll also need to prepare a
patch for upstream.

Depends on D74842

Differential Revision: https://phabricator.services.mozilla.com/D75528
2020-05-15 14:47:36 +00:00
Dan Minor 83b49d068b Bug 1632489 - Use repaired-rtp-stream-id in rtx packets; r=ng
This imports a few fixes from tip of libwebrtc, which now supports mid, rid
and rrid. The rtx packet is now allocated as max_packet_size_, which is
necessary to have enough capacity for the rrid. It takes the
CopyHeaderAndExtensionsToRtxPacket function from upstream, which omits
copying extensions that should not be copied over, such as rid. It is necessary
to make AllocateExtension and FindExtension public in order for this
function to work.

It then copies the rid from the source packet over to rrid in the rtx packet.
Upstream has code for this as well, but taking it would require more
extensive changes to our copy of libwebrtc. We can drop these local
modifications with the next update.

Differential Revision: https://phabricator.services.mozilla.com/D74840
2020-05-15 11:58:54 +00:00
Dan Minor 0cf534a4f7 Bug 1632489 - Enable repaired-rtp-stream-id extension in jsep; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D74839
2020-05-15 11:55:08 +00:00
Nico Grunbaum 3ad9a07524 Bug 1279153 - Add support for rtcp-rsize;r=bwc,dminor
Differential Revision: https://phabricator.services.mozilla.com/D72807
2020-05-15 01:54:34 +00:00
Dan Minor 79e6c1318b Bug 1637636 - Add callback to Call::OnSentPacket in conduits; r=ng
In order for the SendSideCongestionController to work properly, it needs the
timestamp at which the packets were sent. This is set by calling
Call::OnSentPacket when a packet is sent. Without the sent timestamp, it drops
the estimated available bandwidth so low that only one simulcast stream will
be allocated any bandwidth.

Differential Revision: https://phabricator.services.mozilla.com/D75310
2020-05-14 18:29:44 +00:00
Nico Grunbaum 5a8efe4876 Bug 1534466 - P2 - add missing video impl for GetRtpSources;r=jib
Differential Revision: https://phabricator.services.mozilla.com/D74823
2020-05-13 23:18:24 +00:00
Brindusan Cristian 1b5de135bc acked out 4 changesets (bug 1632489) for android crashes at test_peerConnection_maxFsConstraint.html. CLOSED TREE
Backed out changeset 22ef19e55421 (bug 1632489)
Backed out changeset 8e0260c41854 (bug 1632489)
Backed out changeset cc52615f7682 (bug 1632489)
Backed out changeset 45ad6b848a8f (bug 1632489)
2020-05-14 00:15:50 +03:00
Dan Minor 110b9c482b Bug 1632489 - Use repaired-rtp-stream-id in rtx packets; r=ng
This imports a few fixes from tip of libwebrtc, which now supports mid, rid
and rrid. The rtx packet is now allocated as max_packet_size_, which is
necessary to have enough capacity for the rrid. It takes the
CopyHeaderAndExtensionsToRtxPacket function from upstream, which omits
copying extensions that should not be copied over, such as rid. It is necessary
to make AllocateExtension and FindExtension public in order for this
function to work.

It then copies the rid from the source packet over to rrid in the rtx packet.
Upstream has code for this as well, but taking it would require more
extensive changes to our copy of libwebrtc. We can drop these local
modifications with the next update.

Depends on D74839

Differential Revision: https://phabricator.services.mozilla.com/D74840
2020-05-12 21:35:10 +00:00
Dan Minor 06db56446e Bug 1632489 - Enable repaired-rtp-stream-id extension in jsep; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D74839
2020-05-12 15:14:01 +00:00
Dan Minor d5f7cac185 Bug 1625694 - Set use_desktop_relative_cursor_position in DesktopAndCursorComposer; r=ng
Upstream has removed the mode used when use_desktop_relative_cursor_position_
is set to false as well as the associated override of OnMouseCursorPosition,
so the next time we update libwebrtc, this is the behaviour we will have.
Enabling it now fixes cursor display on Linux, which at the moment only works
for some windows.

Depends on D71392

Differential Revision: https://phabricator.services.mozilla.com/D71394
2020-05-05 21:15:57 +00:00
Dan Minor d93f609fa8 Bug 1625694 - Remove unnecessary local modifications to mouse_cursor_monitor_x11; r=jib,ng
I think inner_window_ was added to handle the fact that window_ may not be
the same as child_window which could throw off the coordinates. Since we made
these modifications, upstream has added the XTranslateCoordinates call that
handles this case, so our local modifications are no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D71392
2020-05-12 21:28:42 +00:00
Paul Adenot 0c81475300 Bug 1626081 - Update cubeb to 80c3d838d2929c27. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D74276
2020-05-12 08:32:00 +00:00
Cosmin Sabou 72e80153f2 Backed out 3 changesets (bug 1626081) for causing build bustages. CLOSED TREE
Backed out changeset 82cae35b52eb (bug 1626081)
Backed out changeset 42135f164217 (bug 1626081)
Backed out changeset 2676f31077bc (bug 1626081)
2020-05-11 21:38:54 +03:00
Paul Adenot 4c16b73b14 Bug 1626081 - Update cubeb to 80c3d838d2929c27. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D74276
2020-05-11 18:23:14 +00:00
Sylvestre Ledru 45c60a761a Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D74530
2020-05-09 23:02:52 +00:00
Sylvestre Ledru 1929dd1ab3 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Nils Ohlmeier [:drno] bd0469292f Bug 1418804: added unit test coverage for Opus fmpt parameters. r=ng
Depends on D74494

Differential Revision: https://phabricator.services.mozilla.com/D74495
2020-05-08 23:38:57 +00:00
Nils Ohlmeier [:drno] 3234b32c9c Bug 1418804: added support for cbr attribute. r=ng
Depends on D74493

Differential Revision: https://phabricator.services.mozilla.com/D74494
2020-05-08 23:42:23 +00:00
Nils Ohlmeier [:drno] b999865cb0 Bug 1418804: added ptime attribute to rsdparsa C API crate. r=ng
Depends on D74492

Differential Revision: https://phabricator.services.mozilla.com/D74493
2020-05-08 23:45:54 +00:00
Nils Ohlmeier [:drno] c4b7f99c65 Bug 1418804: add support for ptime attributes. r=ng
Depends on D71137

Differential Revision: https://phabricator.services.mozilla.com/D74492
2020-05-08 23:45:03 +00:00
Nils Ohlmeier [:drno] 33e7071cd6 Bug 1418804: adding support for usedtx and maxaveragebitrate. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D71137
2020-05-09 03:46:40 +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
Jean-Yves Avenard 912e294406 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-08 20:20:44 +00:00
Narcis Beleuzu 58a833221c Backed out 9 changesets (bug 1634253) for bc failures on browser_bug295977_autoscroll_overflow.js . CLOSED TREE
Backed out changeset d41b75c1f7ec (bug 1634253)
Backed out changeset 5f8a1ee17b81 (bug 1634253)
Backed out changeset 43eda078b405 (bug 1634253)
Backed out changeset e98212a74709 (bug 1634253)
Backed out changeset 855e222ceb14 (bug 1634253)
Backed out changeset 9f01acdf4367 (bug 1634253)
Backed out changeset ea62cb1ec472 (bug 1634253)
Backed out changeset fa3e7588e7d6 (bug 1634253)
Backed out changeset 139e7035e736 (bug 1634253)
2020-05-08 23:09:31 +03:00
Dan Minor 5c53ff71b6 Bug 1164187 - Add pref for rtx; r=bwc
Off by default until we land repaired-rid support.

Differential Revision: https://phabricator.services.mozilla.com/D72231
2020-05-08 18:12:15 +00:00
Dan Minor 1355b5f885 Bug 1164187 - Do not switch ssrcs for packets with rtx and ulpfec packet types; r=bwc
With rtx enabled, we can't just switch ssrcs when we receive a packet with an
unrecognized ssrc. This changes the ReceiveRTPPacket call to take the entire
rtp header, and then examines the payload type. If the payload type is
associated with rtx or ulpfec, the ssrc will not be changed. This is what is
done by the libwebrtc unsignaled ssrc change code, so this behaviour should
match what Chrome does.

Differential Revision: https://phabricator.services.mozilla.com/D72230
2020-05-08 18:12:05 +00:00
Sergio Garcia Murillo 8a1430ae7a Bug 1164187 - Plumb rtx through peerconnection and conduits; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72229
2020-05-08 18:11:44 +00:00
Dan Minor 9efa9bb6b0 Bug 1164187 - Add new JsepSessionTests for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72228
2020-05-08 18:11:19 +00:00
Sergio Garcia Murillo daaa798f22 Bug 1164187 - Update JsepSessionTest for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72226
2020-05-08 18:11:11 +00:00
Dan Minor 6a3b43fa14 Bug 1164187 - Add jsep support for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72225
2020-05-08 18:10:59 +00:00
Dan Minor 2143491530 Bug 1164187 - Add sdp unit test for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72224
2020-05-08 18:10:46 +00:00
Sergio Garcia Murillo d15b1feb18 Bug 1164187 - Add support for parsing rtx fmtp parameters in sipcc; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72223
2020-05-08 18:10:34 +00:00
Dan Minor daf262752e Bug 1164187 - Fixes to RtxParameters; r=bwc
This changes the constructor to not take any parameters for consistency
with how the other parameters are handled. It also fixes serialization, the
current code will output an ascii character rather than the numeric value.

Differential Revision: https://phabricator.services.mozilla.com/D72222
2020-05-08 18:10:16 +00:00
Jean-Yves Avenard f304da03ac Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 08:04:53 +00:00
Alex Chronopoulos e72615c01c Bug 1629984 - Stop enumerating suspended cameras. r=padenot
Suspended cameras are not able to capture data thus they are removed from the list of enumerated devices.

Differential Revision: https://phabricator.services.mozilla.com/D74210
2020-05-07 12:57:08 +00:00
Simon Giesecke 61ad805d68 Bug 1626570 - Use CopyableTArray in ipdlc as member type for now. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D73685
2020-05-07 08:11:08 +00:00
Dorel Luca 9340fa2b2d Backed out 11 changesets (bug 1635001, bug 1634253) for Browser-chrome failures in browser_bug295977_autoscroll_overflow.js
Backed out changeset c3c27cb46db6 (bug 1635001)
Backed out changeset 6cea251e5910 (bug 1635001)
Backed out changeset 3cb0a05be7fc (bug 1635001)
Backed out changeset 1cbb2866a3ad (bug 1634253)
Backed out changeset 53fd00dcf95c (bug 1634253)
Backed out changeset e3acd9db7065 (bug 1634253)
Backed out changeset 5c0b7aa99406 (bug 1634253)
Backed out changeset dc7e17f772be (bug 1634253)
Backed out changeset 6e47af64396a (bug 1634253)
Backed out changeset 8865de9ae0ef (bug 1634253)
Backed out changeset 6fac93b596c2 (bug 1634253)
2020-05-07 11:00:04 +03:00
Jean-Yves Avenard 96d7622823 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 05:03:42 +00:00
Byron Campen [:bwc] 213a5cff8c Bug 1634145: Avoid leaking nr_ice_sockets due to various kinds of failure. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D73287
2020-05-04 12:00:26 +00:00
Byron Campen [:bwc] 088ad10f93 Bug 1626364: Reinit decoder on error in WebrtcMediaDataDecoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D69649
2020-04-27 16:54:37 +00:00
Matthew Gregan f7177d3d52 Bug 1631965 - Switch AudioIPC to bugfix fork of mio-named-pipes. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D71836
2020-05-05 21:13:30 +00:00
Dan Minor d0b4c7e527 Bug 1626029 - Don't attempt to resend mDNS packets on EPERM; r=mjf
We currently retry sending queries on all failures to write to the socket on
the assumption that write errors represent transient errors. With this change,
we treat EPERM has a permanent error and drop queries if we see it. This is
not a problem when sending answers, as we don't retry in case of errors there,
on the assumption that the other side will retry their query in the future.

We do have code to limit the number of times we attempt an mDNS query, but we
didn't hit it in this case, because it only counts sends that are successful.

Differential Revision: https://phabricator.services.mozilla.com/D73492
2020-05-04 14:19:42 +00:00
Paul Adenot 0a01403ee5 Bug 1635404 - Update audioipc to d5c07e962073. r=achronop
Depends on D73870

Differential Revision: https://phabricator.services.mozilla.com/D73871
2020-05-05 15:14:01 +00:00
Paul Adenot 03da4e3e6c Bug 1635404 - Update cubeb to revision 35190a8. r=achronop
Depends on D73869

Differential Revision: https://phabricator.services.mozilla.com/D73870
2020-05-05 15:08:45 +00:00
Simon Giesecke a673d9e93a Bug 1626570 - Improve handling of copying arrays in media/webrtc/signaling/src/. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72347
2020-05-05 10:40:33 +00:00
Razvan Maries c2b627950c Backed out 10 changesets (bug 1626570) for build bustages. CLOSED TREE
Backed out changeset a3f17d392234 (bug 1626570)
Backed out changeset 5247e1ddd5d6 (bug 1626570)
Backed out changeset c339fd44c9f8 (bug 1626570)
Backed out changeset 4c69a4c013b3 (bug 1626570)
Backed out changeset e85450d69351 (bug 1626570)
Backed out changeset 793f978248b3 (bug 1626570)
Backed out changeset 68b4c2418d83 (bug 1626570)
Backed out changeset 52d0911d4ad3 (bug 1626570)
Backed out changeset a7d4e3a59ee3 (bug 1626570)
Backed out changeset 6c06d397a5d2 (bug 1626570)
2020-05-05 13:37:08 +03:00
Simon Giesecke d669f1fc03 Bug 1626570 - Improve handling of copying arrays in media/webrtc/signaling/src/. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72347
2020-05-05 09:44:05 +00:00
Simon Giesecke 458c7ceb41 Bug 1635132 - Make media/webrtc/signaling/src/media-conduit build outside unified build environment. r=ng
Depends on D73708

Differential Revision: https://phabricator.services.mozilla.com/D73719
2020-05-04 16:55:51 +00:00
Simon Giesecke 89b8cf387d Bug 1635129 - Make media/webrtc/signaling/src/peerconnection build outside unified build environment. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D73708
2020-05-04 16:27:14 +00:00
Byron Campen [:bwc] ca88e4c776 Bug 1622384: Implement stable indexing for JSEP transceivers. r=mjf
JSEP transceivers were previously held in a vector, in the order that they were
created. However, these could be removed, which meant that the indexing was not
stable. Under most circumstances this did not matter, however there was a
wrinkle with implicit rollback in repeated sRD. Re-applying a remote offer that
had created a transceiver would destroy that transceiver, and create a new one
to replace it. However, JS was not informed, because to PeerConnectionImpl it
looked like nothing had changed. Now, transceivers are indexed in a stable way,
which allows this bug to be fixed, and makes things a little less confusing.

Differential Revision: https://phabricator.services.mozilla.com/D70400
2020-05-01 00:27:03 +00:00
Nico Grunbaum 6c05bc8709 Bug 1405495 - filter by MID in MediaPipelineFilter;r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D70486
2020-05-01 01:52:28 +00:00
Arthur Iakab 0dd3332a55 Backed out 4 changesets (bug 1622384) for causing build bustages on JsepSession.h
CLOSED TREE

Backed out changeset d339ce87c2ef (bug 1622384)
Backed out changeset 13101fc544bc (bug 1622384)
Backed out changeset aad4412b43e2 (bug 1622384)
Backed out changeset eba5d05e59b2 (bug 1622384)
2020-05-01 00:03:03 +03:00
Byron Campen [:bwc] d2457e5246 Bug 1622384: Implement stable indexing for JSEP transceivers. r=mjf
JSEP transceivers were previously held in a vector, in the order that they were
created. However, these could be removed, which meant that the indexing was not
stable. Under most circumstances this did not matter, however there was a
wrinkle with implicit rollback in repeated sRD. Re-applying a remote offer that
had created a transceiver would destroy that transceiver, and create a new one
to replace it. However, JS was not informed, because to PeerConnectionImpl it
looked like nothing had changed. Now, transceivers are indexed in a stable way,
which allows this bug to be fixed, and makes things a little less confusing.

Differential Revision: https://phabricator.services.mozilla.com/D70400
2020-04-29 02:48:07 +00:00
Simon Giesecke 62219e33b9 Bug 1628692 - Prepare media/webrtc/signaling/src/peerconnection/ for making FallibleTArray uncopyable. r=jesup,bwc,erahm
Differential Revision: https://phabricator.services.mozilla.com/D72621
2020-04-29 15:38:28 +00:00
Kershaw Chang 4db371a46e Bug 1512478 - Use sync IPC to get client auth data from parent process r=keeler,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D36911
2020-04-28 20:12:43 +00:00
Byron Campen [:bwc] 68ded2fc51 Bug 1629565: Some logging that was helpful. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72243
2020-04-27 14:38:26 +00:00
Byron Campen [:bwc] ff27555ac8 Bug 1629565: Transition gathering state to "new" if a negotiation leaves us with no transports. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72242
2020-04-27 14:40:00 +00:00
Byron Campen [:bwc] 638490970c Bug 1629565: Fix bug where rollback of local offer would stomp the pre-existing transport with a new one with the same ufrag/pwd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72240
2020-04-27 14:42:13 +00:00
Byron Campen [:bwc] c98c1674f6 Bug 1629565: Do not transition back to "gathering" if no gathering is needed. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72238
2020-04-27 14:36:39 +00:00
Byron Campen [:bwc] 606eb34163 Bug 1629565: Fix bug where repeated sRD(offer) could start gathering. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72235
2020-04-27 14:47:44 +00:00
Sylvestre Ledru 7f26dcf1b6 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Done with:
./mach lint -l rustfmt --fix
with
rustfmt 1.4.12-stable (a828ffe 2020-03-11)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D72527
2020-04-25 21:21:32 +00:00
Michael Froman 8f02f0cbfa Bug 1629529 - fix shutdown dispatch assert in WebrtcTCPSocket. r=bwc
If we're shutting down and mSocketThread is no longer accepting work,
this dispatch can fail.  As far as I can see, fully fixing this would
require changes to nsIThread in order to allow checking whether the
thread is shutting down.

Differential Revision: https://phabricator.services.mozilla.com/D71964
2020-04-24 15:37:39 +00:00
Simon Giesecke c0341c3791 Bug 1628715 - Part 10: Activate nodiscard attributes on AppendElement(s). r=xpcom-reviewers,nika,peterv
Differential Revision: https://phabricator.services.mozilla.com/D70834
2020-04-24 14:34:15 +00:00
Narcis Beleuzu 903cd347ea Backed out changeset 9d1756abffd2 (bug 1629529) for bustages on WebrtcTCPSocket.cpp . CLOSED TREE 2020-04-24 05:14:40 +03:00
Michael Froman eb2222bf34 Bug 1629529 - fix shutdown dispatch assert in WebrtcTCPSocket. r=bwc
If we're shutting down and mSocketThread is no longer accepting work,
this dispatch can fail.  As far as I can see, fully fixing this would
require changes to nsIThread in order to allow checking whether the
thread is shutting down.

Differential Revision: https://phabricator.services.mozilla.com/D71964
2020-04-23 21:42:21 +00:00
Narcis Beleuzu b6a26db6c8 Backed out changeset fabb6fb27e8a (bug 1629529) for being an incorrect fix. CLOSED TREE 2020-04-23 20:54:55 +03:00
Dan Minor 8a8b6e82bc Bug 1628678 - Disable some threading asserts in AudioSendStream and ChannelProxy; r=bwc
With transport-cc enabled, we get feedback calls into AudioSendStream occuring
on the sts thread. Since AudioSendStream is constructed on the main thread,
this trips up the worker_thread_checker_ checks. The functions that are called
end up doing their work using AudioCodingModuleImpl::ModifyEncoder, which
takes a lock, so it should be safe to remove these assertions.

We've had to do similar things to ChannelProxy in the past to get stats
working from the sts thread. ChannelProxy has been removed upstream, but we
should consider changing our use of AudioSendStream with the next libwebrtc
update so that is always called from the same thread.

Differential Revision: https://phabricator.services.mozilla.com/D72157
2020-04-23 15:18:00 +00:00
shravanrn@gmail.com e0273c024b Bug 1626174 - Enable use of wasm sandboxed libOgg in the OggDemuxer in linux, mac, try servers r=padenot,erahm,dmajor,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D70652
2020-04-22 11:16:10 +00:00
shravanrn@gmail.com 093eb26bcf Bug 1625876 - Port libOgg usage code in the OGGDemuxer to use the RLBox API r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D68764
2020-04-22 11:41:42 +00:00
Michael Froman b5392b2074 Bug 1629529 - fix shutdown dispatch assert in WebrtcTCPSocket. r=bwc
If we're shutting down and mSocketThread is no longer accepting work,
this dispatch can fail.  As far as I can see, fully fixing this would
require changes to nsIThread in order to allow checking whether the
thread is shutting down.

Differential Revision: https://phabricator.services.mozilla.com/D71964
2020-04-22 14:33:01 +00:00
Brindusan Cristian c4fd863aaa Backed out 2 changesets (bug 1626174, bug 1625876) for build bustages at LibrarySandboxPreload.cpp and OggDemuxer.cpp. CLOSED TREE
Backed out changeset 40fea0f3ab6c (bug 1626174)
Backed out changeset a3117fce845d (bug 1625876)
2020-04-21 19:29:02 +03:00
shravanrn@gmail.com f0399f4146 Bug 1626174 - Enable use of wasm sandboxed libOgg in the OggDemuxer in linux, mac, try servers r=padenot,erahm,dmajor,firefox-build-system-reviewers
Depends on D68764

Differential Revision: https://phabricator.services.mozilla.com/D70652
2020-04-21 15:30:37 +00:00
shravanrn@gmail.com d2d2282d1c Bug 1625876 - Port libOgg usage code in the OGGDemuxer to use the RLBox API r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D68764
2020-04-21 15:29:57 +00:00
Nico Grunbaum 5e3d3c4d85 Bug 1628630 - Add Support for RTX in WebRTC SDP CAPI;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D70330

--HG--
extra : moz-landing-system : lando
2020-04-16 10:56:36 +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 763dd6c1c0 Bug 1628630 - Add Support for RTX in WebRTC SDP CAPI;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D70330

--HG--
extra : moz-landing-system : lando
2020-04-16 05:36:10 +00: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
Dan Minor fbe8b27f53 Bug 1611938 - Add mutex to WebrtcMediaDataEncoderCodec; r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D68785

--HG--
extra : moz-landing-system : lando
2020-04-15 15:45:56 +00:00
Dan Minor 4639b29902 Bug 1628851 - Fix VP8 temporal scalability; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D70673

--HG--
extra : moz-landing-system : lando
2020-04-14 18:24:51 +00:00
Chun-Min Chang 4e7ae3e350 Bug 1628132 - P2: Update cubeb to 9caa5b1. r=kinetik
Pick commits:
9caa5b1 - Only print the filename when logging (#581)
8a4170a - sun: Line continuation character not needed
9696902 - sun: POLL_TIMEOUT is no longer used
159fb99 - sun: Add my email address to the copyright header.
e3b409f - sun: Refactoring: reduce duplication in stream structure.
36aa8b1 - sun: Make the purpose of some variables clearer.
1654468 - sun: Update header inclusion.
38ef439 - sun: Convert floats to LINEAR32 instead of LINEAR16
4dbacae - Remove test for registering device changed callback twice
7f94e27 - Force Rust builds to always rerun cargo.
3e23b25 - Remove TODO, we've done all of those, or they don't apply anymore

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:23:16 +00:00
Jan Beich 6a49954834 Bug 1622013 - Build *_mmx.c files with -mmmx in bundled libvpx; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D70674

--HG--
extra : moz-landing-system : lando
2020-04-13 15:34:42 +00:00
Nils Ohlmeier [:drno] fc4d0d052e Bug 1627749: remove webrtc_version.h and webrtc_update.sh. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D69851

--HG--
extra : moz-landing-system : lando
2020-04-06 18:47:04 +00:00
Dan Minor b4a9997899 Bug 1624253 - Catch panic in mdns_service_generate_uuid; r=mjf
In rare cases, the random number generator can fail to initialize when
generating a v4 UUID, causing a panic and crash. This adds code to catch that
panic and return a nil (all zeros) UUID instead. Using a nil UUID seems better
from a user privacy perspective than failing to obfuscate the host address and
leaking it when it is expected to be hidden.

Longer term, we might want to switch over to using nsIUUIDGenerator, but that
would require changes to how the socket process is initialized.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 14:20:38 +00:00
Omri Sarig a60ad3ae44 Bug 1626787 - ClearKeyDecryptionManager.cpp check emptiness by empty instead of by size. r=sylvestre
Emptiness of values should be checked using the `empty` method, and not
by comparing the size to 0. Fix such case in the code of
ClearKeyDecryptionManager.cpp module.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 15:47:17 +00:00
Noemi Erli be7697306a Backed out changeset 65ec189c410c (bug 1611938) for causing Android crashes CLOSED TREE 2020-04-08 17:21:10 +03:00
Dan Minor 36fd49aa19 Bug 1611938 - Change dispatches in WebrtcMediaDataEncoderCodec; r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D68785

--HG--
extra : moz-landing-system : lando
2020-04-07 23:48:58 +00:00
Dan Minor 76a59f4a65 Bug 1347911 - Add sdp unit test for ssrc-group; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D69272

--HG--
extra : moz-landing-system : lando
2020-04-08 11:41:05 +00:00
Sergio Garcia Murillo c60f2fd639 Bug 1347911 - Add support for ssrc groups to SdpAttributeList; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D69270

--HG--
extra : moz-landing-system : lando
2020-04-08 11:40:52 +00:00
Sergio Garcia Murillo 2765f304a9 Bug 1347911 - Add support for parsing ssrc-group to sipcc; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D69269

--HG--
extra : moz-landing-system : lando
2020-04-08 11:40:35 +00:00
Dan Minor 27dd57df7f Bug 1347911 - Update rsdparsa_capi to support ssrc-group; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D69268

--HG--
extra : moz-landing-system : lando
2020-04-08 11:40:22 +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
Tom Tung d33e72aaa9 Bug 1586761 - P5 - Use new methods in media r=tjr,baku
Differential Revision: https://phabricator.services.mozilla.com/D63906

--HG--
extra : moz-landing-system : lando
2020-03-25 14:16:15 +00:00
Andreas Farre 25ca8d7890 Bug 1620594 - Part 7: Remove TabGroup and SystemGroup. r=nika,bas
TabGroup never really made any difference in which thread something go
dispatched to. This was the intended use, but development of TabGroups
with abstract main threads never made it that far. The good thing is
that thish makes it safe to also remove to the SystemGroup and instead
switch all SystemGroup dispatches to dispatches to main thread.

Timers for setTimeout and workers were the sole users of wrapped and
throttled event targets, that those throttled queues have been moved
to the BrowsingContextGroup and are now accessed explicitly.

The SchedulerEventTarget has been removed, since there are no longer a
separate event target for every TaskCategory. Instead a
LabellingEventTarget has been added to DocGroup to handle the case
where an event is dispatched do DocGroup or when an AbstractThread is
created using a DocGroup. This means that we'll actually label more
events correctly with the DocGroup that they belong to.

DocGroups have also been moved to BrowsingContextGroup.

Depends on D67636

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:47 +00:00
Andreas Farre 9e36af2ab6 Bug 1620594 - Part 3: Use default target for timers using SystemGroup. r=nika
Depends on D67632

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:46 +00:00
Andreas Farre 63e21eec70 Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika
To be able to remove SystemGroup, NS_ReleaseOnMainThreadSystemGroup
needs to have its dependency on SystemGroup removed. Since all
releases using SystemGroup would've released on the main thread anyway
we can safely replace NS_ReleaseOnMainThreadSystemGroup with
NS_ReleaseOnMainThread.

Depends on D64390

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:23 +00:00
Valentin Gosu f29e4186dd Bug 1625213 - Make txt records be resolved with onLookupComplete r=dragana
This patch makes nsIDNSByTypeRecord extend nsIDNSRecord, but implementations
will safely forward the nsIDNSRecord methods to `nullptr`, meaning they will
throw an error when called.

Consumers should try to QI the nsIDNSRecord to nsIDNSByTypeRecord (or any
future types) and use that.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 12:39:45 +00:00
Alex Chronopoulos 88b8c3cca3 Bug 1626319 - Change async callback logger to log per thread-id. r=padenot
TRACE_AUDIO_CALLBACK() and TRACE_AUDIO_CALLBACK_COMMENT(aFmt, ...) log to a hardcoded thread id number. This creates confusion when more than one MTG is running because logs from different threads are depicted to the same thread line and overlapping each other. Those logging commands have been removed and the TRACE* command is used that it logs per thread-id.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 10:45:52 +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
Anthony Ramine 1eb60b1342 Bug 1627636 - Clean up version constraints in audioipc manifest; r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D69805

--HG--
extra : moz-landing-system : lando
2020-04-07 02:40:59 +00:00
Emilio Cobos Álvarez 4b9fdf3d73 Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 18:57:36 +00:00
Cosmin Sabou d557e2ed22 Backed out 3 changesets (bug 1627707) for build bustages @ mozilla::net::LoadInfo.
Backed out changeset 65d6a90651ce (bug 1627707)
Backed out changeset 378ec30d9979 (bug 1627707)
Backed out changeset 058a19e11b06 (bug 1627707)
2020-04-06 20:07:04 +03:00
Emilio Cobos Álvarez 97872f2fee Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 16:00:43 +00:00
Michael Froman 3973d5ec78 Bug 1609124 - check for associated IP address on interface for ICE dualstack operation. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D69245

--HG--
extra : moz-landing-system : lando
2020-04-01 20:38:26 +00:00
J. Ryan Stinnett 9678414e95 Bug 1606823 - Add support for WebRTC transport-cc extension. r=bwc,drno
This change includes support to negotiate the transport-wide-cc RTP extension
needed to enable sender side bandwidth estimation in WebRTC. When this
extension is supported in both sides during the Offer/Answer negotiation the
transport_cc mode is enabled in the WebRTC engine so that this mode is used
instead of the legacy receiver-side (REMB based) mechanism.

The change is inspired on this fork by medooze team:
https://github.com/medooze/gecko-dev/pull/2/files

Co-authored-by: ggarber <gustavogb@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2020-03-30 22:32:43 +00:00
André Bargull d53798e749 Bug 1625138 - Part 23: Replace mozilla::RemovePointer with std::remove_pointer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68378

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull a08be4177e Bug 1625138 - Part 17: Replace mozilla::Decay with std::decay. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68372

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
Byron Campen [:bwc] 9b911ee291 Bug 1624956: Make sure we're initted before trying to get ICE stats. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D68246

--HG--
extra : moz-landing-system : lando
2020-03-26 14:11:36 +00:00
Dan Minor fc60c56bd4 Bug 1625288 - Fix broken camera unmute in WebRTC call on macOS; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D68459

--HG--
extra : moz-landing-system : lando
2020-03-27 13:50:02 +00:00
Jason ea383d394a Bug 1516673 - Adds CBCS encryption scheme functionality. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D60053

--HG--
extra : moz-landing-system : lando
2020-03-26 20:53:59 +00:00
Jon Bauman 6ec77fef76 Bug 1624057 - Update mp4parse-rust to 63ca8c6. r=kinetik
Also update the update-rust.sh script in a couple ways:
- Stop copying the source for mp4parse_fallible into the tree; use crates.io
- Include submodules in mp4parse-rust checkout; needed for tests
- Exclude unnecessary build.rs from mp4parse_fallible, it was causing problems
- Update mp4rust_capi/Cargo.toml patch to exclude cdylib. It's only necessary for test_ffi and causes build problems otherwise

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

--HG--
extra : moz-landing-system : lando
2020-03-26 02:08:51 +00:00
Byron Campen [:bwc] a36e252242 Bug 1620308: Move RTCDTMFSender logic to a single c++ class. r=smaug,jib,mjf
Differential Revision: https://phabricator.services.mozilla.com/D67513

--HG--
extra : moz-landing-system : lando
2020-03-25 18:46:37 +00:00
Byron Campen [:bwc] 944d6971a3 Bug 1603887: Drive closing of DataChannels with transport events, not negotiation events. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D67946

--HG--
extra : moz-landing-system : lando
2020-03-23 21:52:51 +00:00
Byron Campen [:bwc] 4d035f7c82 Bug 1624458: Make sure we cancel callbacks in close. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D68042

--HG--
extra : moz-landing-system : lando
2020-03-24 16:19:42 +00:00
Byron Campen [:bwc] bcd72fe82e Bug 1616875: Make this work with gtest. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64692

--HG--
extra : moz-landing-system : lando
2020-03-20 15:35:46 +00:00
Byron Campen [:bwc] 2eecfe8825 Bug 1616875: Make RtpSourceObserver update stats on main thread, and simplify. r=ng
This essentially implements the "queue a task" step required by the spec, which
ensures that if JS checks stats multiple times without relinquishing the event
loop, it will see the same thing each time.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 15:35:44 +00:00
Byron Campen [:bwc] 2bd9232e1c Bug 1616875: Remove some unnecessary code. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D64238

--HG--
extra : moz-landing-system : lando
2020-03-20 15:34:05 +00:00
Byron Campen [:bwc] 865bbdca09 Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:55 +00:00
Byron Campen [:bwc] 1898507132 Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:24 +00:00
Byron Campen [:bwc] 82081f2ffa Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:12 +00:00
Byron Campen [:bwc] 7fd72ae8fd Bug 1616875: Use timestamps for SSRC/CSRC statistics that are consistent with JS timestamps. r=ng
This means we won't have to re-implement all of our JSImpl workarounds in c++.
Also, rename a variable in a way that made it easier to read this code.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:04 +00:00
Michael Froman 4ef4d2b585 Bug 1620471 - Update libdav1d to 0.6.0 r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D67511

--HG--
extra : moz-landing-system : lando
2020-03-20 15:17:26 +00:00
Bogdan Tara 2b0b0d8b79 Backed out 9 changesets (bug 1616875) for bustages complaining about RTCRtpReceiver.h CLOSED TREE
Backed out changeset 92ed87a5add4 (bug 1616875)
Backed out changeset 96b3a322e605 (bug 1616875)
Backed out changeset a301ce4e5571 (bug 1616875)
Backed out changeset ac73b2ce3e20 (bug 1616875)
Backed out changeset f5a201261e83 (bug 1616875)
Backed out changeset 36892aed2a94 (bug 1616875)
Backed out changeset 2c21627f3678 (bug 1616875)
Backed out changeset ebdad7b7b632 (bug 1616875)
Backed out changeset 3bad18c7a567 (bug 1616875)
2020-03-20 16:38:30 +02:00
Byron Campen [:bwc] f688bb3c01 Bug 1616875: Make this work with gtest. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64692

--HG--
extra : moz-landing-system : lando
2020-03-19 18:43:25 +00:00
Byron Campen [:bwc] 4a860bed41 Bug 1616875: Make RtpSourceObserver update stats on main thread, and simplify. r=ng
This essentially implements the "queue a task" step required by the spec, which
ensures that if JS checks stats multiple times without relinquishing the event
loop, it will see the same thing each time.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:43:12 +00:00
Byron Campen [:bwc] 5b459b872c Bug 1616875: Remove some unnecessary code. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D64238

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:44 +00:00
Byron Campen [:bwc] 72efb619af Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:29 +00:00
Byron Campen [:bwc] fc5f5e381e Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:58 +00:00
Byron Campen [:bwc] 4e1d375bf8 Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:46 +00:00
Byron Campen [:bwc] 2c26ca9900 Bug 1616875: Use timestamps for SSRC/CSRC statistics that are consistent with JS timestamps. r=ng
This means we won't have to re-implement all of our JSImpl workarounds in c++.
Also, rename a variable in a way that made it easier to read this code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:38 +00:00
Nils Ohlmeier [:drno] 3961f9751a Bug 1615443: re-add DTLS protocol version telemetry. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D62827

--HG--
extra : moz-landing-system : lando
2020-03-18 17:59:07 +00:00
Matthew Gregan 451e1de678 Bug 1623799 - Update audioipc to 7f7c997e. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D67577

--HG--
extra : moz-landing-system : lando
2020-03-19 23:29:49 +00:00
Dan Minor 294882d83b Bug 1621500 - Null out _owner in RTCVideoCaptureIosObjC; r=ng
We're seeing what looks like occasional late callbacks in
VideoCaptureImpl::DeliverCapturedFrame on OS X. When we call stopCapture, it in
turns calls directOutputToNil which should cause any newly capture frames to be
dropped. It is not clear from the existing code or the documentation what would
happen to any frames which are already enqueued. It looks like it is possible
for frames to be delivered on the old queue, which would explain late callbacks.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 17:04:22 +00:00
Marcin Wojtczak e310487b92 Bug 1622759 - Don't fail when nr_interface_prioritizer_add_interface() returns R_ALREADY r=bwc
This allows us to continue adding remaining interfaces from addrs array and
makes sure nr_interface_prioritizer_sort_preference() is called at the end.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 16:54:07 +00:00
Sylvestre Ledru acd1b8f246 Bug 1622328 - mdns_service.h: Add the license r=dminor
Depends on D66809

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:25:43 +00:00
Dan Minor c57e9e9841 Bug 1622732 - Use error! instead of println! in rsdparsa_capi; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D66958

--HG--
extra : moz-landing-system : lando
2020-03-17 16:48:54 +00:00
Dan Minor 8e00f3c3ce Bug 1622923 - Remove expiring WebRTC hostname obfuscation telemetry; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D67038

--HG--
extra : moz-landing-system : lando
2020-03-17 14:25:38 +00:00
Narcis Beleuzu 0bd97c69da Backed out changeset 1d20f201aaad (bug 1622732) for bustages on lib.rs. CLOSED TREE 2020-03-17 17:36:50 +02:00
Dan Minor b6a9e0498e Bug 1622732 - Use error! instead of println! in rsdparsa_capi; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D66958

--HG--
extra : moz-landing-system : lando
2020-03-16 19:57:36 +00:00
Alex Chronopoulos 9fb4eecd46 Bug 1617915 - Expose output device id when MediaTrackGraph is created. r=padenot
In order to be able to change the audio output device, the device id is exposed to the constructor of MediaStreamGraph. Any component that gets/creates an MTG will be able to provide the device id in order to determine the desired output device. If the provided device id is null the default device will be used.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 12:56:20 +00:00
Dan Minor b95b4bbc29 Bug 1619484 - Add missing overload of OnMouseCursorPosition; r=ng
It looks like the overload of OnMouseCursorPosition which actually sets the
cursor_state_ member was somehow missed during the last webrtc.org update.
This overload is present in branch 64 upstream, but has subsequently been
removed.

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

--HG--
extra : moz-landing-system : lando
2020-03-14 06:38:05 +00:00
Kartikaya Gupta f2d9f42c06 Bug 1622256 - Use Display trait instead of Error::description. r=kinetik
Depends on D66768

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

--HG--
extra : moz-landing-system : lando
2020-03-16 02:15:56 +00:00
Kartikaya Gupta 763458cb65 Bug 1622256 - Remove unnecessary parentheses around block return value. r=kinetik
This causes compiler warnings which makes the build fail.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 08:40:42 +00:00
Ed Lee 68e140412a Bug 1622343 - Automatic code fixes for rustfmt warnings for now-unskipped files r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D66811

--HG--
extra : moz-landing-system : lando
2020-03-13 23:23:58 +00:00
Dan Minor e304dee2ab Bug 1544181 - Check for large frames in GMPDecodeData; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64341

--HG--
extra : moz-landing-system : lando
2020-03-12 14:42:11 +00:00
Matthew Gregan 210f8ccbc5 Bug 1621428 - Update cubeb to 6e7e7659. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D66303

--HG--
extra : moz-landing-system : lando
2020-03-11 15:49:23 +00:00
Kevin Jacobs 1f7860ca02 Bug 1621036 - Enable DTLS 1.3 supported_versions workaround for interop between pre/post-Fx75 WebRTC. r=mt
Enable the NSS workaround introduced in bug 1619102, for DTLS 1.3 WebRTC clients.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 16:43:31 +00:00
Dan Minor 07bea826cd Bug 1620660 - Drop frames in VideoConduit if they are cropped to zero width or height; r=ng
Failing to drop frames if they are cropped to zero width and height leads to
the crash seen in Bug 1521169. We get a call to CreateEncoderStreams
requesting streams with zero width and height at which point it is too late
to do anything, because the webrtc.org code making the call always expects
CreateEncoderStreams to always return at least one stream, and it can't
handle streams with zero width or height.

Depends on D65799

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

--HG--
extra : moz-landing-system : lando
2020-03-10 19:44:13 +00:00
Dan Minor d527b76eb7 Bug 1620660 - Use streamCount consistently in CreateEncoderStreams; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D65799

--HG--
extra : moz-landing-system : lando
2020-03-10 19:45:13 +00:00
Matthew Gregan a61c982ec9 Bug 1619780 - Update audioipc to 9e4f94a5. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D65214

--HG--
extra : moz-landing-system : lando
2020-03-10 17:02:27 +00:00
Ehsan Akhgari 5200d034f5 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 23:36:39 +00:00
Narcis Beleuzu 0186cbe565 Backed out 8 changesets (bug 1620322) for bustages on nsContentSink.cpp . CLOSED TREE
Backed out changeset f41739c64dff (bug 1620322)
Backed out changeset be942a7f329e (bug 1620322)
Backed out changeset a916987c7c71 (bug 1620322)
Backed out changeset ead3484ffb5f (bug 1620322)
Backed out changeset 4e1e8b9afa1a (bug 1620322)
Backed out changeset 473bba698e5a (bug 1620322)
Backed out changeset 0e5e5d41597d (bug 1620322)
Backed out changeset 31b24d79db3d (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 22:18:36 +02:00
Ehsan Akhgari 5045d313c2 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 18:12:40 +00:00
Noemi Erli a48fac9e3b Backed out 8 changesets (bug 1620322) for causing bustages in ContentBlockingLog.cpp CLOSED TREE
Backed out changeset 3dcf513e36cb (bug 1620322)
Backed out changeset 46714855ce1d (bug 1620322)
Backed out changeset 0eb2b5f7322f (bug 1620322)
Backed out changeset 72d640fa0740 (bug 1620322)
Backed out changeset 4533bb4e5177 (bug 1620322)
Backed out changeset 659270edd419 (bug 1620322)
Backed out changeset 6802c18b1914 (bug 1620322)
Backed out changeset 60ff34db9f15 (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 19:19:41 +02:00
Ehsan Akhgari 1195c302a4 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 10:23:07 +00:00
Sylvestre Ledru 558c5bec85 Bug 1617369 - Reformat rsdparsa_capi/ using rustfmt r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D65897

--HG--
extra : moz-landing-system : lando
2020-03-09 11:32:26 +00:00
Simon Giesecke 810fd1f507 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in media. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D65494

--HG--
extra : moz-landing-system : lando
2020-03-06 09:21:47 +00:00
Mike Shal 79b0948e24 Bug 1620035 - Convert media/libdav1d/generate_source.py to py3; r=firefox-build-system-reviewers,rstewart
Depends on D65380

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

--HG--
extra : moz-landing-system : lando
2020-03-05 17:04:25 +00:00
Jean-Yves Avenard 6d9da8a736 Bug 1616736 - P2. Update ffmpeg copy to 4.2. r=jolin
Also fix AARCH64 build to be neon optimised where available, this leads to a 72% improvement in decoding speed.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 22:18:34 +00:00
Nico Grunbaum 993c130149 Bug 1619859 - Correct default direction of extmaps in WebRTC-SDP CAPI;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D65283

--HG--
extra : moz-landing-system : lando
2020-03-04 12:01:23 +00:00
Tooru Fujisawa 9939f785e0 Bug 1612515 - Part 4: Move RunCBindgen.py to /build. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D64541

--HG--
rename : layout/style/RunCbindgen.py => build/RunCbindgen.py
extra : moz-landing-system : lando
2020-02-28 14:07:15 +00:00
Dan Minor 797c55c4d9 Bug 1525393 - Disable flexibleMode in Vp9EncoderImpl; r=bryce
Updating to libvpx 1.8.2 removes one of the structures used for configuring
flexibleMode in the webrtc.org vp9 encoder code. Upstream commit
be71a1ee08c9ee56ba0f92955ea946556ae6593e removes the broken code and at the
same time disables flexibleMode. It remained disabled until commit
76be29555d50f5ec9b5bba1f14588e940e81fd4d landed, three months later. During
that time, a large number of VP9 screensharing fixes were made. It is not
practical to cherrypick all of those changes, so this commit disables
flexibleMode pending the next upstream webrtc.org merge.

This is a partial cherry pick of be71a1ee08c9ee56ba0f92955ea946556ae6593e.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 18:32:34 +00:00
Dan Minor db02a83292 Bug 1525393 - Run generate_sources_mozbuild.sh; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D63924

--HG--
extra : moz-landing-system : lando
2020-02-27 18:32:00 +00:00
Dan Minor f1d63c19a5 Bug 1525393 - Update libvpx to 1.8.2; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D63922

--HG--
rename : media/libvpx/libvpx/third_party/libwebm/LICENSE.TXT => media/libvpx/libvpx/third_party/libyuv/LICENSE
rename : media/libvpx/libvpx/vp8/common/copy_c.c => media/libvpx/libvpx/vp8/encoder/copy_c.c
rename : media/libvpx/libvpx/vp8/encoder/x86/encodeopt.asm => media/libvpx/libvpx/vp8/encoder/x86/block_error_sse2.asm
rename : media/libvpx/libvpx/vp8/common/x86/copy_sse2.asm => media/libvpx/libvpx/vp8/encoder/x86/copy_sse2.asm
rename : media/libvpx/libvpx/vp8/common/x86/copy_sse3.asm => media/libvpx/libvpx/vp8/encoder/x86/copy_sse3.asm
extra : moz-landing-system : lando
2020-02-27 18:57:02 +00:00
Dan Minor 5a236f8a82 Bug 1525393 - Changes to update scripts for libvpx 1.8.2; r=bryce
This makes the following changes:
* Change update.py to use Python 3.
* Have update.py remove some unused portions of the upstream library.
* Update local patches to apply against libvpx 1.8.2.
* Remove local patches that are no longer necessary.
* Update vs build configurations in generate_sources_mozbuild.sh.
* Remove the #define for stdint from VPXDecoder.h.
* Disable AVX512 support
* Make sure float_control_word.asm is included in win64 builds

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

--HG--
extra : moz-landing-system : lando
2020-02-27 18:04:20 +00:00
Dan Minor ac11c8363f Bug 1616667 - Fix remaining clippy complaints; r=mjf
Depends on D64381

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

--HG--
extra : moz-landing-system : lando
2020-02-26 17:28:29 +00:00
Dan Minor d6bac2eaba Bug 1616667 - Add handle_mdns_socket function; r=mjf
Depends on D64380

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

--HG--
extra : moz-landing-system : lando
2020-02-26 17:22:08 +00:00
Dan Minor 6d49ac2885 Bug 1616667 - Add handle_queries function; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D64380

--HG--
extra : moz-landing-system : lando
2020-02-26 17:24:17 +00:00
Michael Froman 2785473eb6 Bug 1618214 - fix slash character handling in nr_reg_is_valid. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D64378

--HG--
extra : moz-landing-system : lando
2020-02-26 15:31:00 +00:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Andrew Osmond 82ca219a41 Bug 1618288 - Remove header that should not have been added.
Differential Revision: https://phabricator.services.mozilla.com/D64433

--HG--
extra : moz-landing-system : lando
2020-02-26 18:55:20 +00:00
Andrew Osmond 4b093e6235 Bug 1618288 - Update libwebp to version 1.1.0. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D64431

--HG--
extra : moz-landing-system : lando
2020-02-26 18:42:06 +00:00
David Major e5cd04c721 Bug 1616943 - Run GTests on Windows ASan builds r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D64210

--HG--
extra : moz-landing-system : lando
2020-02-25 22:43:49 +00:00
Andrea Marchesini 82a54122f0 Bug 1617925 - Get rid of 2 unused variables in PeerConnectionImpl, r=drno
Differential Revision: https://phabricator.services.mozilla.com/D64107

--HG--
extra : moz-landing-system : lando
2020-02-25 18:40:11 +00:00
Eric Rahm b9ba9be64d Bug 1322095 - Part 1b: Update callbacks to support moved args and convert nsAutoPtr usage. r=jya
In order to support the update to move args when invoking callbacks we:
 - Convert anything that was using WrapRunnable with `nsAutoPtr` to `UniquePtr`
 - Convert anything that was using a non-const ref as a param to either a
   const ref or a by-val copy

Addtionally we convert the remaining `nsAutoPtr` usage to `UniquePtr`.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:43:53 +00:00
Eric Rahm 9f7262d417 Bug 1322095 - Part 1a: Move WrapRunnable's args when running. r=gerald
In order to support `UniquePtr` as an arg type for `WrapRunnable` as well as
avoid unnecessary copies in the future we need to switch to moving args when
invoking a runnable.

This updates `WrapRunnables` so that they move their args when running and
adds/updates some tests. To accomplish this `std::apply` is swapped in for our
bespoke implementation and `std::tuple` is used to hold the args. We then
`std::move` the args when `Run` is called. We also needed to support an r-value
`Class` param for the runnable method on a bound object versions could work
with `UniquePtr` as the holder class.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:43:42 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Cosmin Sabou ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Mike Shal ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Brindusan Cristian e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Mike Shal e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Matthew Gregan 24e4bee487 Bug 1612512 - Update to audio_thread_priority 0.22. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D62664

--HG--
extra : moz-landing-system : lando
2020-02-13 10:28:09 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Dan Minor 7f1850d512 Bug 1578073 - Suppress MissingPermission lint in Camera2Session; r=snorp
Depends on D61861

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

--HG--
extra : moz-landing-system : lando
2020-02-12 17:19:50 +00:00
Dan Minor 861b4fb94f Bug 1578073 - Remove native calls in Histogram.java; r=ng
Getting the JNI calls here to work requires a good amount of webrtc.org
machinery. It might be worth setting that up the next time we do an upstream
merge, but for now, it is a lot simpler to just remove the affected code,
given that we are not interested in collecting this data anyway.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 17:07:22 +00:00
Dan Minor a8cd129226 Bug 1578073 - Update generated video capture moz.build file; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61856

--HG--
extra : moz-landing-system : lando
2020-02-11 17:06:09 +00:00
Dan Minor 34429eea6a Bug 1578073 - Update gn generated json files; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61855

--HG--
extra : moz-landing-system : lando
2020-02-11 17:06:00 +00:00
Dan Minor f7ae08ef60 Bug 1578073 - Remove android video capture from BUILD.gn; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61854

--HG--
extra : moz-landing-system : lando
2020-02-11 17:04:54 +00:00
Dan Minor 2388bf1ad9 Bug 1578073 - Fix warning: [cast] redundant cast to int; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61852

--HG--
extra : moz-landing-system : lando
2020-02-11 17:04:04 +00:00
Dan Minor 8d69b72363 Bug 1578073 - Move android video capture code to dom/media/systemservices; r=jib
Although originally part of webrtc.org, this code has subsequently been
removed by upstream. Moving it to under dom/media should make it clearer that
this is code that we are maintaining and simplify future upstream merges.

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

--HG--
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc => dom/media/systemservices/android_video_capture/device_info_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h => dom/media/systemservices/android_video_capture/device_info_android.h
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc => dom/media/systemservices/android_video_capture/video_capture_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h => dom/media/systemservices/android_video_capture/video_capture_android.h
extra : moz-landing-system : lando
2020-02-11 17:03:13 +00:00
Dan Minor 90a9c5e77e Bug 1578073 - Add newer webrtc.org android camera code; r=ng
This is an import of the Android camera code as of upstream revision
26762d0425ffd15af9ddc3ae669373668827ea00 (Dec 20, 2019). This takes just the
files required to build the camera related classes.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 17:02:41 +00:00
Matthew Gregan 07f5f0bc92 Bug 1614547 - Ensure AudioIPC client threads call PROFILER_UNREGISTER_THREAD. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D62402

--HG--
extra : moz-landing-system : lando
2020-02-12 22:20:11 +00:00
Matthew Gregan 63b801f787 Bug 1614533 - Generate AudioIPC FFI bindings with cbindgen. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D62388

--HG--
extra : moz-landing-system : lando
2020-02-12 22:15:39 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Boris Zbarsky c1c6ce37b3 Bug 1613827. Be more careful with SharedBuffer::Create callsites. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61959

--HG--
extra : moz-landing-system : lando
2020-02-11 16:58:33 +00:00
Brindusan Cristian 5d70119bb0 Backed out 12 changesets (bug 1578073) for linting failure on Camera2Session.java. CLOSED TREE
Backed out changeset 20e979be216b (bug 1578073)
Backed out changeset e361b04a8502 (bug 1578073)
Backed out changeset 8aae0721f09c (bug 1578073)
Backed out changeset 381836e3bad0 (bug 1578073)
Backed out changeset 0c214e8034bb (bug 1578073)
Backed out changeset b91603fdd9de (bug 1578073)
Backed out changeset 8533a03e36ca (bug 1578073)
Backed out changeset 2126f6d9bffc (bug 1578073)
Backed out changeset 39a853c82a71 (bug 1578073)
Backed out changeset 2a8e1c02cede (bug 1578073)
Backed out changeset 55e2a4c5cab9 (bug 1578073)
Backed out changeset 27b45ca46f24 (bug 1578073)

--HG--
rename : dom/media/systemservices/android_video_capture/device_info_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc
rename : dom/media/systemservices/android_video_capture/device_info_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : dom/media/systemservices/android_video_capture/video_capture_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
rename : dom/media/systemservices/android_video_capture/video_capture_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h
2020-02-11 17:22:50 +02:00
Dan Minor f28bbffcea Bug 1612060 - Update libdav1d to 0.5.2; r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D61223

--HG--
extra : moz-landing-system : lando
2020-01-31 13:28:26 +00:00
Dan Minor f84c5a8d02 Bug 1578073 - Remove native calls in Histogram.java; r=ng
Getting the JNI calls here to work requires a good amount of webrtc.org
machinery. It might be worth setting that up the next time we do an upstream
merge, but for now, it is a lot simpler to just remove the affected code,
given that we are not interested in collecting this data anyway.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 17:12:22 +00:00
Dan Minor a131dc6542 Bug 1578073 - Update generated video capture moz.build file; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61856

--HG--
extra : moz-landing-system : lando
2020-02-10 17:11:01 +00:00
Dan Minor 4c29d99dc4 Bug 1578073 - Update gn generated json files; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61855

--HG--
extra : moz-landing-system : lando
2020-02-10 17:10:33 +00:00
Dan Minor 99e456b88f Bug 1578073 - Remove android video capture from BUILD.gn; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61854

--HG--
extra : moz-landing-system : lando
2020-02-10 17:09:55 +00:00
Dan Minor 75193e9189 Bug 1578073 - Fix warning: [cast] redundant cast to int; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61852

--HG--
extra : moz-landing-system : lando
2020-02-10 17:08:50 +00:00
Dan Minor 3ab437be1f Bug 1578073 - Move android video capture code to dom/media/systemservices; r=jib
Although originally part of webrtc.org, this code has subsequently been
removed by upstream. Moving it to under dom/media should make it clearer that
this is code that we are maintaining and simplify future upstream merges.

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

--HG--
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc => dom/media/systemservices/android_video_capture/device_info_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h => dom/media/systemservices/android_video_capture/device_info_android.h
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc => dom/media/systemservices/android_video_capture/video_capture_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h => dom/media/systemservices/android_video_capture/video_capture_android.h
extra : moz-landing-system : lando
2020-02-10 17:08:36 +00:00
Dan Minor a5ea832cbb Bug 1578073 - Add newer webrtc.org android camera code; r=ng
This is an import of the Android camera code as of upstream revision
26762d0425ffd15af9ddc3ae669373668827ea00 (Dec 20, 2019). This takes just the
files required to build the camera related classes.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 17:07:25 +00:00
Jon Bauman 045081e922 Bug 1614097 - Update mp4parse-rust to bbb4a12. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D62136

--HG--
extra : moz-landing-system : lando
2020-02-08 02:13:05 +00:00