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

7825 Коммитов

Автор SHA1 Сообщение Дата
Bogdan Tara 694b77183c Backed out 2 changesets (bug 1657582) for test_DNSLookup.js failures CLOSED TREE
Backed out changeset 784122a5f5ab (bug 1657582)
Backed out changeset 0f17312b01ad (bug 1657582)
2020-08-12 11:18:06 +03:00
Valentin Gosu 5eeaf52395 Bug 1657582 - Add nsIDNSAddrRecord interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,dragana
This interface extends nsIDNSRecord and makes the DNS code more extensible
by allowing us to support more record types.
This change does require the consumer to be aware of the type they requested
and to QueryInterface to either nsIDNSAddrRecord for regular IP lookups,
or to nsIDNSByTypeRecord for other kinds of lookups.

Differential Revision: https://phabricator.services.mozilla.com/D86177
2020-08-12 01:35:10 +00:00
Valentin Gosu fc1bf09e47 Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 01:00:39 +00:00
Michael Froman ee75b5312f Bug 1303867 - teardown Transports before NrIceCtx to allow close_notify alerts. r=bwc
If the NrIceCtx is torn down first there is not a valid media stream on which
to send the close_notify alert.

Differential Revision: https://phabricator.services.mozilla.com/D85657
2020-08-10 18:31:46 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Mike Hommey de6265f978 Bug 1656141 - Remove dav1d.rc. r=achronop
RCFILE is only actually used when the moz.build that contains it defines
a binary, which is not the case for dav1d, which ends up in gkmedias.dll.
Which also means that moving the definition to gkmedias would also not
make sense, since all dav1d.rc does is add descriptors to the dll that it
contains dav1d and what version, but gkmedias.dll contains other things
too.

Differential Revision: https://phabricator.services.mozilla.com/D86152
2020-08-06 22:52:04 +00:00
Mihai Alexandru Michis c4e805857f Backed out 9 changesets (bug 1656141) for causing multiple failures.
CLOSED TREE

Backed out changeset 9033b0400339 (bug 1656141)
Backed out changeset e43dd57dc61a (bug 1656141)
Backed out changeset eb450457a9b7 (bug 1656141)
Backed out changeset 194a994cf9c9 (bug 1656141)
Backed out changeset ce6831acb5e3 (bug 1656141)
Backed out changeset 29653ea85d49 (bug 1656141)
Backed out changeset 704f28486bda (bug 1656141)
Backed out changeset de8899453150 (bug 1656141)
Backed out changeset 4b133eda46aa (bug 1656141)
2020-08-07 01:48:45 +03:00
Mike Hommey 3c6fc9c9e1 Bug 1656141 - Remove dav1d.rc. r=achronop
RCFILE is only actually used when the moz.build that contains it defines
a binary, which is not the case for dav1d, which ends up in gkmedias.dll.
Which also means that moving the definition to gkmedias would also not
make sense, since all dav1d.rc does is add descriptors to the dll that it
contains dav1d and what version, but gkmedias.dll contains other things
too.

Differential Revision: https://phabricator.services.mozilla.com/D86152
2020-08-06 20:51:37 +00:00
Jan-Ivar Bruaroey 4a8b5ea5a8 Bug 1654248 - Fix missing telemetry reporting of WEBRTC_CALL_DURATION, and stop counting renegotiations in WEBRTC_CALL_COUNT_2. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D85042
2020-08-05 23:47:46 +00:00
Kershaw Chang 158c55ad89 Bug 1497249 - P2: ipdl for nsIWebSocketConnection r=michal
Differential Revision: https://phabricator.services.mozilla.com/D30624
2020-08-05 15:17:38 +00:00
Jon Bauman 93851d81e6 Bug 1652202 - Update libdav1d to 6cf58c8e for Firefox 80. r=dminor
See 6cf58c8e7d

Differential Revision: https://phabricator.services.mozilla.com/D85910
2020-08-05 15:11:26 +00:00
Dan Minor b9cc2eb001 Bug 1653720 - Do not generate kFid ssrc-group if no msid is present; r=bwc
Chrome's SDP parser has problems with an ssrc-group being present if the media
section is inactive and does not have an msid.

Differential Revision: https://phabricator.services.mozilla.com/D85320
2020-08-04 14:45:12 +00:00
Simon Giesecke 96f3e7e019 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Noemi Erli 381fca9783 Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Byron Campen [:bwc] ce79d0e256 Bug 1656065: Init r_log_env_verbose only once. r=mjf
Depends on D85295

Differential Revision: https://phabricator.services.mozilla.com/D85427
2020-07-30 17:22:40 +00:00
Byron Campen [:bwc] 4bfd2d2966 Bug 1653626: Lock here to prevent races. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D85295
2020-08-03 15:23:35 +00:00
Simon Giesecke 032d2ac9d3 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +00:00
Sylvestre Ledru 843f943758 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D85678
2020-08-02 15:29:15 +00:00
Andreea Pavel 7b5d8cd64c Backed out 1 changesets (bug 1654248) for failures at PeerConnectionImpl.cpp on a CLOSED TREE
Backed out changeset e51e334b08cd (bug 1654248)
2020-08-01 02:08:08 +03:00
Jan-Ivar Bruaroey 6507521605 Bug 1654248 - Fix missing telemetry reporting of WEBRTC_CALL_DURATION, and stop counting renegotiations in WEBRTC_CALL_COUNT_2. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D85042
2020-07-31 20:33:08 +00:00
Byron Campen [:bwc] cc4ea1f325 Bug 1651601: Ignore remote trickle candidates for obsolete streams. r=mjf
Depends on D83545

Differential Revision: https://phabricator.services.mozilla.com/D85284
2020-07-31 15:48:18 +00:00
Nico Grunbaum c116dd0bdb Bug 1655137 - add rtcp-rsize parsing to SIPCC parser;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D84857
2020-07-29 01:30:34 +00:00
Byron Campen [:bwc] 7f56bb6ec2 Bug 1651601: Only do the minimum processing for STUN messages on an obsolete stream. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D83545
2020-07-24 17:01:49 +00:00
Thomas Daede 28df0d954d Bug 1463915 - Update libvorbis to 1.3.7. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D84565
2020-07-24 00:25:08 +00:00
Michael Froman 9a6d6691a0 Bug 1654611 - remove unnecessary mWindow in RTCDTMFSender. r=smaug
Found during a review of RTCDtlsTransport, mWindow is not needed here
because RTCDTMFSender inherits from DOMEventTargetHelper.

Differential Revision: https://phabricator.services.mozilla.com/D84571
2020-07-22 19:06:08 +00:00
Byron Campen [:bwc] a54994480c Bug 1652426: Fix bug where ontrack was fired for all receivers if a previously processed receiver had a new track. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D84207
2020-07-22 13:17:02 +00:00
Mihai Alexandru Michis 57b46d3cc3 Backed out 3 changesets (bug 1653642, bug 1497249) for causing Bug 1654282.
Backed out changeset 1c9946becbca (bug 1653642)
Backed out changeset f7b6aac1b58b (bug 1497249)
Backed out changeset 74bb3c2ab767 (bug 1497249)
2020-07-22 11:31:30 +03:00
Byron Campen [:bwc] 6a9cca850e Bug 1571156: Wait for streams to be ready before trying to send packets. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D84251
2020-07-21 13:59:41 +00:00
Andreas Pehrson cc1a0581dc Bug 1656438 - Fix non-direct int16 speex resampler halving values. r=karlt
As regressed by
0e5d424fdb (diff-a05703278f3e5abb7d4b60dd33006618R478)

Fix cherrypicked from
https://gitlab.xiph.org/xiph/speexdsp/-/merge_requests/5

Differential Revision: https://phabricator.services.mozilla.com/D89740
2020-09-17 06:08:38 +00:00
Paul Adenot fb896f9802 Bug 1561207 - Update audio_thread_priority to 0.23.4 and use MOZ_ENABLE_DBUS to enable dbus usage. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D82718
2020-07-17 09:53:10 +00:00
Dan Minor 459301b96c Bug 1652552 - Remove remaining application capture code; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D83491
2020-07-16 19:16:20 +00:00
Kershaw Chang 682f8a9a04 Bug 1497249 - P2: ipdl for nsIWebSocketConnection r=michal
Differential Revision: https://phabricator.services.mozilla.com/D30624
2020-07-16 13:34:58 +00:00
Mike Hommey 9aff77081f Bug 1652675 - Define OPUS_ARM_MAY_HAVE_NEON{,_INTR} on non-android non-windows aarch64. r=kinetik
It somehow compiles fine currently without on Android, but relies on
implicit function declarations on Linux aarch64, which broke with
bug 822978, which turned the corresponding warning into an error.

It turns out OPUS_ARM_MAY* defines are set when the OPUS_ARM_PRESUME*
ones are set in the cmake build system upstream[1], and it also turns
out that not setting them actually disables some of the neon code. The
fixed point variant used for Android, however, fails to build in that
case because it relies on a function that is only available on arm
builds.

1. It's worth noting that the upstream autoconf build system does *not*
set OPUS_ARM_MAY* or OPUS_ARM_PRESUME* at all.

Differential Revision: https://phabricator.services.mozilla.com/D83474
2020-07-15 22:07:50 +00:00
Dan Minor 395305df0d Bug 1649311 - Check oldVectorSize before copying in VerifyAndAllocateFragmentationHeader; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D81732
2020-07-01 12:54:52 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Alex Chronopoulos 9c3b134ff0 Bug 1651699 - Enable dav1d assembly builds on Android. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D83523
2020-07-15 09:06:46 +00:00
Byron Campen [:bwc] 7d8edb8e41 Bug 1648848: Lock mTransportMonitor inside AddFrameHistory. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D82063
2020-07-13 15:26:19 +00:00
Byron Campen [:bwc] 31d04825a1 Bug 1651601: Filter gathered candidates when their component is obsolete. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D83138
2020-07-10 17:11:32 +00:00
Randell Jesup f1e4e6aed0 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-11 12:31:49 +00:00
Dorel Luca 19042532b3 Backed out changeset ef25e5648b14 (bug 1112392) for causing build bustage on media/systemservices/video_engine/tab_capturer 2020-07-11 13:30:06 +03:00
Randell Jesup 33bfc03435 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 21:22:10 +00:00
Bogdan Tara b2ea557fcf Backed out changeset 6dea878aaf36 (bug 1112392) for tab_capturer.cc related bustage CLOSED TREE 2020-07-10 23:30:41 +03:00
Randell Jesup 109ef2a1dd Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 18:11:02 +00:00
Byron Campen [:bwc] cc064d5d0d Bug 1649314: Null-check before calling memcpy to avoid UBSan warnings. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82728
2020-07-08 16:09:33 +00:00
Byron Campen [:bwc] 9806d64c46 Bug 1193437: Use config structs in NrIceCtx, and centralize pref lookups some. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82549
2020-07-09 15:36:07 +00:00
Narcis Beleuzu 573b28be3c Backed out 2 changesets (bug 1561207) for bustages on lib.rs. CLOSED TREE
Backed out changeset c0d2201bd2fa (bug 1561207)
Backed out changeset 7931e2be169c (bug 1561207)
2020-07-10 15:56:59 +03:00
Paul Adenot 36bd8cbc97 Bug 1561207 - Update audio_thread_priority to 0.23.3 and use MOZ_ENABLE_DBUS to enable dbus usage. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D82718
2020-07-10 12:24:14 +00:00
Csoregi Natalia 56aa86bead Backed out changeset 6318d54b7068 (bug 1112392) for bustages on tab_capturer.cc. CLOSED TREE 2020-07-10 04:52:56 +03:00
Randell Jesup 9756342857 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 01:00:51 +00:00
Tom Prince 204d796929 Bug 1651731: [lint] Python and shell files without `#!` should not be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82954
2020-07-09 20:29:18 +00:00
Chun-Min Chang 168b47f125 Bug 1598148 - P2: Update cubeb to a971bf1. r=kinetik
Pick commits:
a971bf1 - Bump the priority of audiounit-rust in default init
ea39471 - Merge branch 'Filoppi-patch-1'
2cc3a02 - Fix conversion from com_heap_ptr.
0bd0338 - Merge branch 'patch-1' of https://github.com/Filoppi/cubeb into Filoppi-patch-1
b69886c - As suggested
20cb7e0 - Fixed small memory leak
Applying a patch on top of a971bf1a045b0e5dcaffd2a15c3255677f43cd2d

Differential Revision: https://phabricator.services.mozilla.com/D54055
2020-07-09 09:10:46 +00:00
Csoregi Natalia 6be2db575b Backed out changeset 20e97810b319 (bug 1112392) for bustages on tab_capturer.h. CLOSED TREE 2020-07-10 00:40:42 +03:00
Randell Jesup 084100482a Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-09 20:34:15 +00:00
Matthew Finkel 262fa6f330 Bug 1585470 - Remove duplicate cpu-features.c definition when building GV without webrtc r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D82120
2020-07-09 19:10:34 +00:00
Byron Campen [:bwc] 88844c36fc Bug 1326005: Always update the Jsep ICE transport's candidate list when negotiation completes. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82036
2020-07-08 18:32:17 +00:00
Byron Campen [:bwc] 40f9bf512c Bug 1326005: Make this log at INFO because that's the level we log on the sending side. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82035
2020-07-08 18:00:20 +00:00
Michael Froman 919ac9b1ae Bug 1651286 - remove unused static method PeerConnectionImpl::CreatePeerConnection. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D82781
2020-07-08 19:45:11 +00:00
Dan Minor 4e37915de1 Bug 1650572 - Check V4L2_CAP_DEVICE_CAPS before accessing device_caps; r=ng
The capabilities field is for the physical device, device_caps is for the
specific /dev/videoX device that has been opened. The device_caps field is
only populated if V4L2_CAP_DEVICE_CAPS is set, so we should check that, and
fall back to capabilities if it is not set.

Differential Revision: https://phabricator.services.mozilla.com/D82377
2020-07-08 17:35:38 +00:00
Narcis Beleuzu 0515bebd4d Backed out changeset e1841978b15a (bug 1193437) for bustages on ice_unittest.cpp 2020-07-08 07:52:53 +03:00
Byron Campen [:bwc] ab9a9c5d68 Bug 1193437: Use config structs in NrIceCtx, and centralize pref lookups some. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82549
2020-07-07 17:14:38 +00:00
Byron Campen [:bwc] f92cc316ae Bug 1649678: Add include needed by OpenBSD. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82531
2020-07-07 16:33:50 +00:00
Simon Giesecke 9364b353d4 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Alex Chronopoulos b1f143193d Bug 1647956 - Import cubeb from upstream to 575bd44. r=padenot
pick commits:
575bd44 - resampler: avoid overflow on uint arithmetics
7bc4f13 - Add in header doc the switching devices behavior.

Differential Revision: https://phabricator.services.mozilla.com/D81695
2020-06-30 12:14:48 +00:00
Nico Grunbaum f8f21f2398 Bug 1648600 - add SDP parsing errors to SDP history;r=dminor,jib,emilio
Differential Revision: https://phabricator.services.mozilla.com/D81265
2020-06-30 02:38:40 +00:00
Nico Grunbaum c78d9cccad Bug 1644709 - Add PeerConnection configuration to about:webrtc;r=dminor,jib,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D80787
2020-06-30 02:35:36 +00:00
Jon Bauman c9e1d68234 Bug 1641887 - Update libdav1d to be1fe18 r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D81280
2020-06-26 16:52:33 +00:00
Emilio Cobos Álvarez 7c995807da Bug 1646936 - Generate a single metadata file in the objdir, and feed it to cbindgen. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80360
2020-06-26 10:41:26 +00:00
Coroiu Cristina 302c2fa31a Backed out changeset 8f948dd74aba (bug 1646936) for SM and Toolchain failures on a CLOSED TREE 2020-06-26 13:08:09 +03:00
Emilio Cobos Álvarez 9c7c03bf30 Bug 1646936 - Generate a single metadata file in the objdir, and feed it to cbindgen. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80360
2020-06-26 09:37:16 +00:00
Byron Campen [:bwc] e05489b922 Bug 1643058: Timestamp mDNS lookups. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D79531
2020-06-25 13:21:52 +00:00
Dorel Luca e037947c1d Backed out 6 changesets (bug 1643058) for WPT failures in webrtc/RTCRtpReceiver-getSynchronizationSources.https.html. CLOSED TREE
Backed out changeset 6dd69c93d9e2 (bug 1643058)
Backed out changeset fcc0942206d9 (bug 1643058)
Backed out changeset 12c6d279b173 (bug 1643058)
Backed out changeset 7d90312af10f (bug 1643058)
Backed out changeset c4f71ccf6934 (bug 1643058)
Backed out changeset e6edf6df8183 (bug 1643058)
2020-06-24 07:28:06 +03:00
Byron Campen [:bwc] 67473c1fc0 Bug 1643058: Timestamp mDNS lookups. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D79531
2020-06-23 18:07:05 +00:00
Dan Minor 0e2a0cec63 Bug 1647368 - Update gn generated files; r=ng
Depends on D80546

Differential Revision: https://phabricator.services.mozilla.com/D80547
2020-06-22 21:10:30 +00:00
Dan Minor 56605a5c2c Bug 1647368 - Update build files; r=ng
Depends on D80545

Differential Revision: https://phabricator.services.mozilla.com/D80546
2020-06-22 21:10:05 +00:00
Dan Minor 0868cb89d3 Bug 1647368 - Move objc video capture code to dom/media/systemservices; r=ng
All changes in these files are a result of code formatting being applied.
When these files were under webrtc, they were treated as third party code and
not formatting. By moving them, formatting is now applied.

Differential Revision: https://phabricator.services.mozilla.com/D80544
2020-06-22 21:09:34 +00:00
Jean-Yves Avenard 87438519f0 Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Jean-Yves Avenard 4f53bc5dc3 Bug 1647133 - P3. Use nsISerialEventTarget where it's actually that. r=valentin
All uses are always the main thread and its derivative (obtained via EventTargetFor method) or nullptr.

Depends on D80421

Differential Revision: https://phabricator.services.mozilla.com/D80422
2020-06-22 11:13:24 +00:00
Dan Minor 1116efcc34 Bug 1646092 - Do not add ssrc-group to sdp on recvonly msections; r=bwc
Chrome will not accept sdp with ssrc-group:FID on recvonly msections, causing
calls to fail to be established between Firefox and Chrome when only a
microphone is present on the Firefox side.

Differential Revision: https://phabricator.services.mozilla.com/D80034
2020-06-22 12:32:16 +00:00
Byron Campen [:bwc] 61e3e355eb Bug 1646838: Rename this variable. r=mjf
Depends on D80277

Differential Revision: https://phabricator.services.mozilla.com/D80278
2020-06-18 23:44:37 +00:00
Byron Campen [:bwc] 43dd35b65d Bug 1646838: Rewrite this to use c++ structured bindings, and pick better names. r=mjf
Depends on D80275

Differential Revision: https://phabricator.services.mozilla.com/D80277
2020-06-18 23:46:13 +00:00
Byron Campen [:bwc] 0d162c327d Bug 1646838: Replace this function with a better named one. r=mjf
Depends on D80272

Differential Revision: https://phabricator.services.mozilla.com/D80275
2020-06-18 23:47:47 +00:00
Byron Campen [:bwc] 9a4fa6ba9e Bug 1646838: This enum and function are not even used, so removing them. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D80272
2020-06-18 23:43:29 +00:00
Dorel Luca 524cb78f56 Backed out changeset 35dcd6ad89c6 (bug 1646092) for Gtests failures in JsepSessionTest.OfferAnswerRecvOnlyLines. CLOSED TREE 2020-06-18 23:22:29 +03:00
Dan Minor c8da0b9e5f Bug 1646092 - Do not add ssrc-group to sdp on recvonly msections; r=bwc
Chrome will not accept sdp with ssrc-group:FID on recvonly msections, causing
calls to fail to be established between Firefox and Chrome when only a
microphone is present on the Firefox side.

Differential Revision: https://phabricator.services.mozilla.com/D80034
2020-06-18 15:30:41 +00:00
Andrea Marchesini 0f29634160 Bug 1646273 - Add a nullptr check in ns_socket_tcp before sending data, r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D79950
2020-06-18 15:41:36 +00:00
Dan Minor 8b02726f4f Bug 1645675 - Fix DTMF call return values in AudioConduit; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D79723
2020-06-18 02:35:50 +00:00
Matthew Gregan 3d04faf512 Bug 1646576 - Update audioipc to c04a660a. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D80123
2020-06-18 03:56:54 +00:00
Dan Minor 737ca9006d Bug 1639734 - Restore check that sink is registered in AddOrUpdateSink; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D78723
2020-06-08 19:14:06 +00:00
Nils Ohlmeier [:drno] b2a1ca628f Bug 1646150: removed unused libwebrtc sctp code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D79883
2020-06-16 20:02:30 +00:00
David Major dd955b19e7 Bug 1646206 - Fix a vsnprintf lint in ClearKeyUtils.cpp r=bryce
We have a clang-plugin check that discourages raw `vsnprintf`, but for some reason it doesn't catch this before clang 11. I _think_ it's related to earlier versions not being able to see that `len` is a constant, but I'm not really sure.

Differential Revision: https://phabricator.services.mozilla.com/D79918
2020-06-16 23:06:22 +00:00
Dan Minor 0b5eafd46f Bug 1645127 - Copy MID from source packet to RTX packet; r=ng
This change is already present upstream.

Differential Revision: https://phabricator.services.mozilla.com/D79548
2020-06-13 22:48:58 +00:00
Nico Grunbaum 5442b2eb88 Bug 1624967 - Display entire SDP history about:webrtc;r=dminor,webidl,smaug,flod
Differential Revision: https://phabricator.services.mozilla.com/D78866
2020-06-10 13:51:41 +00:00
Nico Grunbaum 87986ab67c Bug 1637450 - P2 - Access remote SSRC from any thread;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D78827
2020-06-10 13:55:43 +00:00
Nico Grunbaum 8108184b4f Bug 1637450 - Add Video Frame statistics to about:webrtc;r=bwc,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D75073
2020-06-10 16:34:25 +00:00
Tom Ritter db140837f8 Bug 1637845 - Add a moz.yaml for libaom and remove version information from the README r=glob
Differential Revision: https://phabricator.services.mozilla.com/D76432
2020-06-10 14:47:57 +00:00
Tom Ritter ce91a401a8 Bug 1637845 - Add/change support for running scripts to the moz.yaml schema r=glob
Here we unify the 'run_after' section with 'file-updates' just naming
them 'update-actions'.  This will allow a simpler schema and a clearer
picture of the order of actions that are taken.

Differential Revision: https://phabricator.services.mozilla.com/D76428
2020-06-10 14:46:03 +00:00
Tom Ritter 606d1b6c0e Bug 1637845 - Extend the file-updates schema to support a copy-file action r)glob
Additionally, raise voluptuous.Invalid errors so the message provided in
the Exception is shown to the user on error.

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

Depends on D75696
2020-06-10 14:42:55 +00:00
Tom Ritter 4d9b87747c Bug 1637845 - Add 'file-updates' to the moz.yaml schema r=glob
This section is for expressing actions that occur after extracting
the files, before vendoring is completed. While we support running
scripts (or at least, we will...) this section can be used for simple
actions that don't need scripts.

Also, add the dav1d excluded files.

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

Depends on D75695
2020-06-10 14:42:13 +00:00
Tom Ritter 7c4c1b39f3 Bug 1637845 - Add source-hosting to the schema and vendoring section r=glob
This will tell us how to interact with the upstream repository.

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

Depends on D75694
2020-06-10 14:41:34 +00:00
Tom Ritter 4b30cdd0dd Bug 1637845 - Add 'license-file' to origin, remove 'revision' from vendoring, add 'vendor-directory' r=glob
Add license-file to allow one to specify a special file the
project's license is in.

Add 'vendor-directory' to allow vendoring the files into a
separate directory (e.g. under third_party.) Remove a contradictory
comment.

Remove 'revision' from 'vendoring'.  This doesn't make sense to me:
'vendoring' is about how to update the library. In a future iteration
we may wish to restrict updates to a branch; but specifying a revision
is specifically about _not_ updating. It appears the intent of revision
was to identify what revision was currently in-tree; but that information
should live in the 'origin' section.

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

Depends on D75896
2020-06-10 14:40:51 +00:00
Byron Campen [:bwc] 1c3be2b686 Bug 1644477: Make candidate pair insertion code easier to read/understand. r=mjf
Includes removing an error code for a function that never fails, and removing
an error return when the function successfully did what it said it would.

Differential Revision: https://phabricator.services.mozilla.com/D78929
2020-06-09 19:44:50 +00:00
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