Commit Graph

926 Commits

Author SHA1 Message Date
Byron Campen [:bwc]
aaf0e9394c Bug 1411977 - Part 1: Stop queue jumping in RUN_ON_THREAD. r=drno
MozReview-Commit-ID: GaCcLZuo7uy

--HG--
extra : rebase_source : f0f3330aef0f8f41038c070fea42d6631a6bb8a6
2018-01-25 08:32:58 -06:00
David Keeler
0375f07548 bug 1432923 - fix a leak in some TransportTests r=drno
Before this patch, TransportTest::Reset would assign to p1_ and p2_ without
releasing their resources first. Since they're not RAII types, they would just
leak. This fixes the leak by a) explicitly initializing them to nullptr in the
constructor and b) deleting them if they previously had a non-null value.

MozReview-Commit-ID: 20U6sqRWg06

--HG--
extra : rebase_source : e304c7636a9b31df53d3ff0e8d7e0042f7e82494
2018-01-25 16:56:56 -08:00
Christian Holler
8e72e4cc2f Bug 1431090 - Prepare tools/fuzzing/ to be used with JS_STANDALONE. r=froydnj
This patch adjusts tools/fuzzing/ in such a way that the relevant parts can be
reused in the JS engine. Changes in detail include:

* Various JS_STANDALONE checks to exclude parts that cannot be included in
  those builds.

* Turn LibFuzzerRegistry and LibFuzzerRunner into generic FuzzerRegistry and
  FuzzerRunner classes and use them for AFL as well. Previously, AFL was
  piggy-backing on gtests which was kind of an ugly solution anyway (besides
  that it can't work in JS). Now more code like registry and harness is
  shared between the two and they follow almost the same call paths and entry
  points. AFL macros in FuzzingInterface have been rewritten accordingly.
  This also required name changes in various places. Furthermore, this unifies
  the way, the fuzzing target is selected, using the FUZZER environment
  variable rather than LIBFUZZER (using LIBFUZZER in browser builds will give
  you a deprecation warning because I know some people are using this already
  and need time to switch). Previously, AFL target had to be selected using
  GTEST_FILTER, so this is also much better now.

* I had to split up FuzzingInterface* such that the STREAM parts are in a
  separate set of files FuzzingInterfaceStream* because they use nsStringStream
  which is not allowed to be included into the JS engine even in a full browser
  build (error: "Using XPCOM strings is limited to code linked into libxul.").
  I also had to pull FuzzingInterface.cpp (the RAW part only) into the header
  and make it static because otherwise, would have to make not only separate
  files but also separate libraries to statically link to the JS engine, which
  seemed overkill for a single small function. The streaming equivalent of the
  function is still in a cpp file.

* LibFuzzerRegister functions are now unique by appending the module name to
  avoid redefinition errors.

MozReview-Commit-ID: 44zWCdglnHr

--HG--
extra : rebase_source : fe07c557032fd33257eb701190becfaf85ab79d0
2018-01-17 15:20:35 +01:00
Coroiu Cristina
faa2f8c7da Backed out 2 changesets (bug 1431090) for Bf bustage at src/tools/fuzzing/interface/harness/FuzzerTestHarness.h
Backed out changeset 2e98bda3f397 (bug 1431090)
Backed out changeset eb6acc9e44ad (bug 1431090)

--HG--
rename : tools/fuzzing/registry/FuzzerRegistry.cpp => tools/fuzzing/libfuzzer/harness/LibFuzzerRegistry.cpp
rename : tools/fuzzing/registry/FuzzerRegistry.h => tools/fuzzing/libfuzzer/harness/LibFuzzerRegistry.h
rename : tools/fuzzing/interface/harness/FuzzerRunner.cpp => tools/fuzzing/libfuzzer/harness/LibFuzzerRunner.cpp
rename : tools/fuzzing/interface/harness/FuzzerRunner.h => tools/fuzzing/libfuzzer/harness/LibFuzzerRunner.h
rename : tools/fuzzing/interface/harness/FuzzerTestHarness.h => tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
rename : tools/fuzzing/interface/harness/moz.build => tools/fuzzing/libfuzzer/harness/moz.build
2018-01-23 13:49:26 +02:00
Christian Holler
4ce6f81fee Bug 1431090 - Prepare tools/fuzzing/ to be used with JS_STANDALONE. r=froydnj
This patch adjusts tools/fuzzing/ in such a way that the relevant parts can be
reused in the JS engine. Changes in detail include:

* Various JS_STANDALONE checks to exclude parts that cannot be included in
  those builds.

* Turn LibFuzzerRegistry and LibFuzzerRunner into generic FuzzerRegistry and
  FuzzerRunner classes and use them for AFL as well. Previously, AFL was
  piggy-backing on gtests which was kind of an ugly solution anyway (besides
  that it can't work in JS). Now more code like registry and harness is
  shared between the two and they follow almost the same call paths and entry
  points. AFL macros in FuzzingInterface have been rewritten accordingly.
  This also required name changes in various places. Furthermore, this unifies
  the way, the fuzzing target is selected, using the FUZZER environment
  variable rather than LIBFUZZER (using LIBFUZZER in browser builds will give
  you a deprecation warning because I know some people are using this already
  and need time to switch). Previously, AFL target had to be selected using
  GTEST_FILTER, so this is also much better now.

* I had to split up FuzzingInterface* such that the STREAM parts are in a
  separate set of files FuzzingInterfaceStream* because they use nsStringStream
  which is not allowed to be included into the JS engine even in a full browser
  build (error: "Using XPCOM strings is limited to code linked into libxul.").
  I also had to pull FuzzingInterface.cpp (the RAW part only) into the header
  and make it static because otherwise, would have to make not only separate
  files but also separate libraries to statically link to the JS engine, which
  seemed overkill for a single small function. The streaming equivalent of the
  function is still in a cpp file.

* LibFuzzerRegister functions are now unique by appending the module name to
  avoid redefinition errors.

MozReview-Commit-ID: 44zWCdglnHr

--HG--
rename : tools/fuzzing/libfuzzer/harness/LibFuzzerRunner.cpp => tools/fuzzing/interface/harness/FuzzerRunner.cpp
rename : tools/fuzzing/libfuzzer/harness/LibFuzzerRunner.h => tools/fuzzing/interface/harness/FuzzerRunner.h
rename : tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h => tools/fuzzing/interface/harness/FuzzerTestHarness.h
rename : tools/fuzzing/libfuzzer/harness/moz.build => tools/fuzzing/interface/harness/moz.build
rename : tools/fuzzing/libfuzzer/harness/LibFuzzerRegistry.cpp => tools/fuzzing/registry/FuzzerRegistry.cpp
rename : tools/fuzzing/libfuzzer/harness/LibFuzzerRegistry.h => tools/fuzzing/registry/FuzzerRegistry.h
extra : rebase_source : 7d0511ca0591dbf4d099376011402e063a79ee3b
2018-01-17 15:20:35 +01:00
Chris Peterson
37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Nils Ohlmeier [:drno]
ae5815d5e1 Bug 1426059: removed transportlayerprsock code. r=bwc
MozReview-Commit-ID: IWcpxq1Z2V9

--HG--
extra : rebase_source : 5f4461cf80bd19c7f9eb22bc5026cfb0f1c51ce1
2017-12-18 20:30:05 -08:00
Michael Froman
1b1c4f9ab7 Bug 1414169 - pt 1 - add trickle field to nr_ice_candidate. r=drno
Adding trickle field that will allow us to flag trickled candidates
on about:webrtc.
Also added label field to NrIceCandidate to facilitate showing the
raw candidate info on about:webrtc.

MozReview-Commit-ID: HuP3IxYOOBJ

--HG--
extra : rebase_source : 975cb5b29b2aef233f856bfbdc8c325535d24272
2017-11-20 16:52:21 -06:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Byron Campen [:bwc]
b2254c16eb Bug 1290948 - Part 8: Don't cause ICE to fail if there's no streams to establish. r+drno r=drno
MozReview-Commit-ID: 4wxlK9w3sL6

--HG--
extra : rebase_source : 06a01ef64beb1352cee503349a287a511de50053
2017-09-29 09:16:14 -05:00
Byron Campen [:bwc]
9fed82e6f6 Bug 1290948 - Part 6: Remove some unused code. r+drno r=drno
MozReview-Commit-ID: G1uxg77wO78

--HG--
extra : rebase_source : bb8f7238bebb48251967cc453257ea6665095535
2017-08-23 16:15:11 -05:00
Jesse Schwartzentruber
5b3e545888 Bug 1419798 - Only build fuzzing interfaces if clang or AFL compilers are used. r=glandium
MozReview-Commit-ID: H1I9wdqTV4n

--HG--
extra : rebase_source : 18eb2536a5db80c585828ae44329f1a00d82209a
2017-11-22 11:21:09 -05:00
Andreea Pavel
449023b47c Backed out 8 changesets (bug 1290948) for failing mochitest dom/tests/mochitest/general/test_interfaces.html r=backout on a CLOSED TREE
Backed out changeset 97a271bf671e (bug 1290948)
Backed out changeset 8ff38e646037 (bug 1290948)
Backed out changeset 314675023cd5 (bug 1290948)
Backed out changeset 1a5f090502b0 (bug 1290948)
Backed out changeset ffb6e6da955f (bug 1290948)
Backed out changeset 56c169018ceb (bug 1290948)
Backed out changeset 49878c508ce6 (bug 1290948)
Backed out changeset bbe53fb92e21 (bug 1290948)
2017-11-14 21:02:11 +02:00
Byron Campen [:bwc]
a944344724 Bug 1290948 - Part 8: Don't cause ICE to fail if there's no streams to establish. r+drno r=drno
MozReview-Commit-ID: 4wxlK9w3sL6

--HG--
extra : rebase_source : ac299a914de054e0b20fbd7409c494ac8708e3b5
2017-09-29 09:16:14 -05:00
Byron Campen [:bwc]
6771ce65da Bug 1290948 - Part 6: Remove some unused code. r+drno r=drno
MozReview-Commit-ID: G1uxg77wO78

--HG--
extra : rebase_source : 565120ee7722ac357b682aa2689517f2898e5c7a
2017-08-23 16:15:11 -05:00
Michael Froman
033ed8ae3a Bug 1415249 - remove unused variables introduced in Bug 1408218. r=drno
Two variables, contains_mac_based_ipv6 and contains_teredo_ipv6, were
added that are set but never used.  This will cause compiler warnings
issues in the future.

MozReview-Commit-ID: C5ZReH94RpM

--HG--
extra : rebase_source : 50e06da3c093a118151d840b7d25a979afce6321
2017-11-07 09:28:47 -06:00
Nicholas Nethercote
9252435548 Bug 1410794 (attempt 2) - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm.
This makes the code nicer. In particular, it removes many getter_Copies()
calls. The patch also converts a lot of nsCStrings to nsAutoCString, which will
avoid heap allocation in the common case.

The patch also renames PREF_CopyCharPref() as PREF_GetCStringPref(), because
it's actually getting a string, not a char, and that matches the existing
GetCString() and GetDefaultCString() methods. Correspondingly, it also renames
PREF_SetCharPref() as PREF_SetCStringPref().

The |aPrefName| arguments in nsIPrefBranch.idl remain as |string| because they
almost always involve passing in C string literals, and passing "foo" is much
nicer than passing NS_LITERAL_CSTRING("foo").

It's worth noting that early versions of this patch used |AUTF8String| instead
of |ACString|. But it turns out that libpref stores prefs internally as Latin1.
And |ACString| is compatible with Latin1 but |AUTF8String| isn't, because
non-ASCII Latin1 strings are not valid UTF-8!

MozReview-Commit-ID: D3f7a1Vl1oE

--HG--
extra : rebase_source : e6e4b15d6d210cfd93686f96400281f02bd1d06b
2017-10-27 10:30:33 +11:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Nils Ohlmeier [:drno]
75da806f11 Bug 1408218: ignore EUI 64 and Teredo addresses if not needed. r=bwc
MozReview-Commit-ID: 5QHi9iC2e7y

--HG--
extra : rebase_source : 0f4f4afa3edd4153418661d8ef6f3efa12bf6223
2017-10-13 08:32:16 -07:00
Michael Froman
90e4564993 Bug 1405940 - Fix Null Pointer dereference in sigslot::lock_block r=bwc
Caused by several issues:
1) We were allowing an answer with modified ufrag/pass to
   begin an ICE restart even if the offer didn't indicate
   it was restarting.
2) This should no longer happen, but in cases where restart logic
   was started inappropriately, TransportLayerIce::SetParameters
   could get a null stream, and we check for that now.

MozReview-Commit-ID: JFQ1zz3l5wY

--HG--
extra : rebase_source : a6d43aabada86669850ddce07ea86da8118a6bec
2017-10-12 22:38:01 -05:00
Byron Campen [:bwc]
4fda13fafa Bug 1406154: Ensure that we avoid truncating the interface description strings in a couple of corner cases. r+drno
MozReview-Commit-ID: KMTpbkvA4N

--HG--
extra : rebase_source : 377b9ae8c2664d186a496ef04a6e42b00d56883f
2017-10-12 12:12:40 -05:00
Kris Maglione
9184710ae5 Bug 1404198: Part 2g - Switch to NS_NewTimer* in media. r=njn
MozReview-Commit-ID: 3ydSj5HfYzZ

--HG--
extra : rebase_source : 6d38da71d3c82b900b46e69c12ceb81202dd965d
2017-10-15 23:14:33 -07:00
Byron Campen [:bwc]
f651e3ada4 Bug 1404535: Add telemetry that times nr_ice_gather. r+drno r=chutten,drno,liuche
MozReview-Commit-ID: I4nH8sZNX5g

--HG--
extra : rebase_source : 9a7cc3673f68fefb9ed19a58ab896b0d60648b17
2017-09-29 17:49:32 -05:00
Michael Froman
6e07c1bbf9 Bug 1361894 - ignore STUN/TURN servers with mis-matched link local addr. r=bwc
MozReview-Commit-ID: FMRWMHCROUf

--HG--
extra : rebase_source : 98d3100010c50a21bd48c474aac140e8e1636271
2017-09-29 09:20:07 -05:00
Dan Minor
55f5ef6e16 Bug 1373843 - Add -fsanitize-coverage to cflags in nicer.gyp; r=posidron
I missed doing this in the original patch because my mozconfig defined the
CFLAGS globally to include -fsanitize-coverage.

MozReview-Commit-ID: 4QdiIgdfAm2

--HG--
extra : rebase_source : bfd1ef5097b91c23913c0349a04154f18f60eef5
2017-09-20 17:05:07 -04:00
Dan Minor
6e7bc1c221 Bug 1373843: Change assertion about message length to error in stun_codec.c; r=drno
MozReview-Commit-ID: 1oUEQk9vg1L

--HG--
extra : rebase_source : 8ca178eb1e356b06b09582e85a0e91a93648b29c
2017-09-19 15:29:22 -04:00
Nils Ohlmeier [:drno]
a8d005b348 Bug 1373843: Add a libfuzzer test for the stun parser; r=decoder
MozReview-Commit-ID: BWUnBIMhT5C

--HG--
extra : rebase_source : 8d8c6de040601621f5f64c8a7cf5a99486ae9879
2017-06-16 16:01:19 -07:00
Henri Sivonen
1961f9269f Bug 860727 clean-up - Remove mbslen.c/h from the tree. r=bwc
MozReview-Commit-ID: 2sRjpNYX5eA

--HG--
extra : rebase_source : 23b0bf6a5ce470daa7ec5ee951d0cccf43402426
2017-09-06 10:24:54 +03:00
Henri Sivonen
2aa5a465d3 Bug 860727 - Implement UTF-8 code unit counting without setlocale(). r=bwc
Counting the code points in a UTF-8 string is simple enough that that it is
not worthwhile to use the locale-dependent parts of the C standard library
for the task.

MozReview-Commit-ID: 6Tzd5NHub3B

--HG--
extra : rebase_source : d452896317d354ee85c817533cba3116adf5277e
2017-09-05 09:12:02 +03:00
Michael Froman
5d1597b31f Bug 1391857 - fixing ctx flags for e10s stun addr gathering. r=drno
In the case of e10s, the ctx flags for default route only (and less
importantly in this case, proxy only) were not set on the ice ctx
when SetStunAddrs was called in PeerConnectionMedia.

MozReview-Commit-ID: CldUpJfaaH3

--HG--
extra : rebase_source : 6223722275d4741519890d4d2b8436b05ca43155
2017-08-22 10:13:06 -05:00
Eric Rahm
50513900c7 Bug 1389598 - Part 2: Remove gonk references from media/ r=jesup
--HG--
extra : rebase_source : d1af2d0987038e1c0b0b0c971d0d2e4e9f08364a
2017-08-11 17:46:15 -07:00
Karl Tomlinson
64c0c31a2d bug 1390286 receive WrapRunnable*() parameters by reference r=jesup
This permits using these functions with non-param types such as AutoTArray.

MozReview-Commit-ID: 3J1bLjgwB9M

--HG--
extra : rebase_source : 897e64b6f1c8d1c8c939a18d2b0813b33bcd8083
2017-08-14 11:33:53 +12:00
Sylvestre Ledru
d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
Mike Hommey
66d4d80b03 Bug 1388681 - Disable -Wformat-security where -Wformat is disabled. r=bwc
--HG--
extra : rebase_source : b303f70c2900b8dff538083a6b406545170356c2
2017-08-09 18:45:16 +09:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Bill McCloskey
224d56eb18 Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Jan Keromnes
5257fdad8c Bug 1372977 - Use nullptr in /media and /dom/media (clang-tidy: modernize-use-nullptr). r=bwc 2017-06-28 15:38:00 -04:00
Dan Minor
a9df96e992 Bug 1355947 - Use TestNrSocket to build a fake ICE implementation for testing; r=drno
MozReview-Commit-ID: GhSX9t8DmTO

--HG--
extra : rebase_source : 8fea1934f88b378606b4af96d96c27560906fd88
extra : histedit_source : 4d6fc904c79c74ba8c24e816d70368ee3a850769
2017-04-18 06:54:34 -04:00
Dan Minor
1cc1e5734f Bug 1355947 - Add NatDelegate to TestNat; r=bwc
This allows tests to implement different packet handling schemes without having
to extend or modify TestNat itself.

MozReview-Commit-ID: 6DlESF3hfX6

--HG--
extra : rebase_source : ebb621f6f6ba00811cda7baef449caec126cb15e
2017-06-13 10:08:45 -04:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Nicholas Nethercote
f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Chris Peterson
7dd51821f3 Bug 1373525 - media/mtransport: Remove unused member functions and unused member variable trickled_. r=drno
media/mtransport/test/ice_unittest.cpp:353:12 [-Wunused-member-function] unused member function 'Stream'
media/mtransport/test/ice_unittest.cpp:1394:7 [-Wunused-member-function] unused member function 'trickled'
media/mtransport/test/ice_unittest.cpp:1867:8 [-Wunused-member-function] unused member function 'SetExpectedTypes'
media/mtransport/test/transport_unittests.cpp:917:8 [-Wunused-member-function] unused member function 'InitIce'

MozReview-Commit-ID: 70PNtdc92mg

--HG--
extra : source : 5dc220c3efd5bd2f8f844eb85887a4bcfabb3990
extra : intermediate-source : 0751fb1b9b19a8451c5aba7e021bcb386962ce5d
2017-06-11 00:09:42 -07:00
Carsten "Tomcat" Book
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Nils Ohlmeier [:drno]
f6cddda6c5 Bug 1373103: log TCP read callback log message only if more then 5 callback are pending. r=mjf
MozReview-Commit-ID: E0oAG89XGwg

--HG--
extra : rebase_source : 21d14ddd28d819a498fce03d1b484e5a82e22a0d
2017-06-14 18:35:59 -07:00
Michael Froman
da7254ecbf Bug 1339906 - pt 5 - add writable field to webidl for RTCIceCandidatePairStats and implement readable and writeable fields. r=drno,qdot
MozReview-Commit-ID: 6IODhX5mtnP

--HG--
extra : rebase_source : 30245be09b3b4bf057672cceb2d90d3393da035c
2017-06-06 17:33:02 -05:00
Michael Froman
1b76f106fd Bug 1339906 - pt 4 - add last sent and received timestamps to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: GE23lS7qs9n

--HG--
extra : rebase_source : 5b39e4232258eca1807d3c962a2ed40c2724822b
2017-06-06 17:36:40 -05:00
Michael Froman
69f85fff44 Bug 1339906 - pt 1 - Add bytesSent and bytesReceived to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: BQGPTUzRCB3

--HG--
extra : rebase_source : cd2abb970a07479c8425a13d12fc0fbaa487b00e
2017-06-06 16:30:56 -05:00
Michael Froman
55d8a7bd34 Bug 1368159 - change log statement for pre-existing local addresses from error to warning in nr_ice_set_local_addresses. r=drno
When I added this check during the modifications for Bug 1345511 (Move
nICEr stun local address discovery to an IPC call to enable future
sandbox restrictions on content process) I originally thought this was
more of an error condition, but it really isn't.  It can happen each
time the following method(s) is called:
  PeerConnectionMedia::EnsureTransports() ->
    GatherIfReady() ->
      EnsureIceGathering_s()

MozReview-Commit-ID: Ct3teqXBxWd

--HG--
extra : rebase_source : a116a8423fd999c4746e9375b8f42a6d908a1ea7
2017-06-07 13:38:46 -05:00
Kershaw Chang
104a4b2e9c Bug 1343743 - Part6: Pass a labeled event target to StunAddrsRequestChild's constructor., r=bwc
Pass an event target argument in constructor, so we can call gNeckoChild->SetEventTargetForActor before sending constructor message to parent.
2017-06-12 00:25:00 +02:00
Kershaw Chang
d17d3c6887 Bug 1343743 - Part4: Pass a labeled main thread event target in nsIUDPSocketChild::bind, r=jdm
Add an event target parameter in nsIUDPSocketChild::bind, so we can use this labeled event target to dispatch runnables in UDPSocketChild.
2017-06-12 00:24:00 +02:00
Kershaw Chang
a2f2bae579 Bug 1343743 - Part3-1: Use system group's event target for TCPSocketChild's constructor, r=bwc
Pass an event target argument in constructor, so we can call gNeckoChild->SetEventTargetForActor before sending constructor message to parent.
2017-06-12 00:23:00 +02:00
Dan Minor
f17b41d15d Bug 1354353 - nICEr and nrappkit should not build with NVALGRIND under MOZ_VALGRIND builds; r=drno
This applies the fix used in Bug 1354207 for webrtc to nICEr and nrappkit.

--HG--
extra : rebase_source : d3f1370c9100ca66272611348c1b3462e65cdfaf
2017-05-30 12:37:29 -04:00
Nils Ohlmeier [:drno]
274b2c935b Bug 1358889: check if mThread is around before dereferencing. r=jesup
MozReview-Commit-ID: 88ZonLVGZK9

--HG--
extra : rebase_source : 8d3ee2e0a9e77b73ece6d2351758ad8256b2ade0
2017-04-24 16:15:10 -07:00
Nils Ohlmeier [:drno]
f588ac7e28 Bug 1303867: destroy SSL FD to send out DTLS allert on close. r=mt
MozReview-Commit-ID: EaMkehmTcs3

--HG--
extra : rebase_source : 18acf0fe7bc3b6ccffc0c5667a962161411b56d5
2017-04-20 19:52:24 -07:00
Nils Ohlmeier [:drno]
948bfcc4f7 Bug 969715: remove INET and INET6 from sctp build env. r=jesup
MozReview-Commit-ID: 4e67tOzltoc

--HG--
extra : rebase_source : c0c134bde1b0400b3fc37aaada0187948442e9cb
2016-12-08 23:49:43 -10:00
Mike Hommey
34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Nils Ohlmeier [:drno]
45a1983cc1 Bug 1354222: fix log level casting warnings. r=erahm
MozReview-Commit-ID: A6hnPD3NkYr

--HG--
extra : rebase_source : a59a3d5acfdc219dd3f21b6acf1179125c766f5b
2017-04-06 11:00:35 -07:00
Michael Froman
1a2153bf46 Bug 1353575 - Switch to google stun server instead of twilio for ice_unittest.cpp. r=bwc,drno
MozReview-Commit-ID: HrS3oKjg17Z

--HG--
extra : rebase_source : a4a40bb9a5694054d736cabc7ff22b57037f6487
2017-04-04 13:47:54 -05:00
Eric Rahm
83eba01284 Bug 1353143 - Part 1: Explicitly include prlog.h in mtransport/logging.h. r=drno
This updates mtransport logging to explicitly include prlog.h and defines
MOZ_MTLOG in terms of PR_LOG rather than MOZ_LOG when building outside of XUL.
2017-04-04 14:36:14 -07:00
Michael Froman
5ffad762cd Bug 1350568 - don't dispatch IPC call to StunAddrsRequestChild after content process IPC channel goes away. r=jesup
MozReview-Commit-ID: IoAWO9Frf1u

--HG--
extra : rebase_source : fc3a5d8d066dadb476ea965014553c99515b1547
2017-03-26 13:30:28 -05:00
Nils Ohlmeier [:drno]
3fe5112bbb Bug 1345791: ICE disconnect state is not a crash. r=bwc
MozReview-Commit-ID: IwrWVvjkNmX

--HG--
extra : rebase_source : e9c4b92acddb82298b439152e622132a49bd6daa
2017-03-29 16:39:42 -05:00
Dan Minor
429e0c1350 Bug 964133 - move nICEr and nrappkit to libxul; r=ted.mielczarek
Building these as part of the webkit lib adds unnecessary dependencies on Mozilla code for things that only case about the webrtc static lib.

MozReview-Commit-ID: 7ThU7hAwRX0

--HG--
extra : rebase_source : eef256711e205d023a647e6196dcc61e657f6e28
2017-01-13 09:28:43 -05:00
Michael Froman
31e4ce10aa Bug 1350055 - fix --disable-webrtc build with new PStunAddrsRequest.ipdl r=jduell
MozReview-Commit-ID: 5oxJtUppHWC

--HG--
extra : rebase_source : 7cfbddb1168711439530b3ead47bd35bec70ab80
2017-03-23 20:04:41 -05:00
Michael Froman
647131bd6f Bug 1345511 - pt 3 - start using IPC call for stun addrs in PCMedia. r=bwc
Two new calls are added to NrIceCtx.
1) A static call to allow StunAddrsRequestParent to get stun addrs from the main
process.
2) A call to allow StunAddrsRequestChild to pass the new stun addrs back to
PeerConnectionMedia on the content process.

PeerConnectionMedia, when running in e10s mode, sets up the StunAddrsRequestChild
and makes the async request to get the stun addrs.  When they are returned, it
sets the stun addrs in NrIceCtx avoid the network calls that would otherwise
cause a further restricted sandbox to fail.

MozReview-Commit-ID: C2hYBzm6WNv

--HG--
extra : rebase_source : 4c71056850c418efdc0f709f4d838a3e0bf4bee2
2017-03-22 09:59:46 -05:00
Michael Froman
f0c929ff2d Bug 1345511 - pt 2 - add IPC mechanism for getting stun addrs on main process. r=bwc
PStunAddrsRequest.ipdl defines the new IPC protocol to get stun
  addrs on the main process.
StunAddrsRequestChild requests the stun addrs from the parent.
StunAddrsRequestParent uses a static method on NrIceCtx to get the
  stun addrs from the STS thead and sends the addrs back to the
  child process.
NrIceStunAddr (nricestunaddr.{cpp|h}) wraps nr_local_addr and makes
  it easier to serialize/deserialize over IPC.
NrIceStunAddrMessageUtils follows the pattern used by other Necko
  IPC classes to define top-level serialization/deserialization
  calls used by the IPC framework.

Modifications under netwerk/ipc are to connect the new IPC
protocol to get stun addrs to PNecko since it is a network
related IPC protocol.

MozReview-Commit-ID: GyEapBe5krl

--HG--
extra : rebase_source : c650d6aa4f7928bcae6032424303869074a755d4
2017-03-21 19:59:05 -05:00
Michael Froman
032f9ca0bc Bug 1345511 - pt 1 - nICEr changes to support stun addr gathering from main process. r=bwc
Expose a tweaked version of nr_ice_get_local_addresses to allow callers to
provide pre-fetched stun addrs if they are available.  By default, the normal
call to nr_ice_gather calls this with no pre-fetched stun addrs (read
non-e10s).  In e10s, the stun addrs are discovered on the main process and
provided to nr_ice_get_local_addreses.  When nr_ice_gather is called from
the content process the local addresses have already been gathered.

In the past, nr_ice_get_local_addresses also applied policy (by removing
duplicate addrs, and, based on stun prefs, removing loopback and/or
link_local addrs.  This functionality has been moved to
nr_ice_set_local_addresses where other policy is being applied (like
default route only, forcing specific interfaces, and prioritization).

Because we're now serializing nr_local_addr (wrapped by NrIceStunAddr), we
can't assume that certain pointer references in the source nr_local_addr
are correct when calling nr_local_addr_copy.  New non-pointer-arithmetic
version of setting up the pointer on the copied nr_local_addr is used.  Also
easier to understand when walking up to it the first time.

MozReview-Commit-ID: KVRFl4dfr7J

--HG--
extra : rebase_source : c0437700ad77ee3b7f98947d3505551ca9ed43e9
2017-03-16 12:06:09 -05:00
Nils Ohlmeier [:drno]
62d88014e0 Bug 1335966: skip refreshing ICE cosent for streams with no consent context. r=bwc
MozReview-Commit-ID: 91aZIMdGBAQ

--HG--
extra : rebase_source : 4cf76f2344fe74ed026e1029753a45a3203f072a
2017-02-01 16:54:59 -08:00
Wes Kocher
dac8dc0c7b Merge inbound to central, a=merge
MozReview-Commit-ID: 96co4Bbby7W
2017-03-07 16:40:44 -08:00
Joel Maher
43d997b5a3 Bug 1344470 - add BUG_COMPONENT to media/* files. r=padenot
MozReview-Commit-ID: C7xWOE0OwIK
2017-03-07 13:06:45 -05:00
Byron Campen [:bwc]
3be4ec69b5 Bug 1342523 - Part 2: Add some better ICE duration telemetry. r=bsmedberg,drno
MozReview-Commit-ID: 7qRd1v6rUHl

--HG--
extra : rebase_source : 0c5bbdd47f719226b29660d59bb283c530118a8a
2017-02-24 15:03:49 -06:00
Byron Campen [:bwc]
42465ae6db Bug 1342523 - Part 1: Clean up how controlling/offerer is specified. r=drno
MozReview-Commit-ID: D8qPAPUZC1J

--HG--
extra : rebase_source : dec5598ee2edd9168bd5c93be222cc409a7db096
2017-02-24 14:05:27 -06:00
Tim Huang
fc6e097c7a Bug 1337893 - Part 4: Updating whole gecko to make all callers of DNS using correct originAttributes. r=baku
MozReview-Commit-ID: D6Vp8ANSzLI

--HG--
extra : rebase_source : f3608b09835040e4a4f8e7675aa53d003f298d32
2017-02-15 10:39:40 +08:00
Nils Ohlmeier [:drno]
41b62a7872 Bug 1341374: ensure mtransport refcounting is happening on the same thread r=jesup
MozReview-Commit-ID: 6Q3Wc1dIfnR

--HG--
extra : rebase_source : 29c73b5ac8b23d60df7946b993efa3542316bb5e
2017-02-23 21:57:50 -08:00
Benjamin Smedberg
b0dd6ff594 Bug 1332639 - Stop building the media/mtransport/testlib library which isn't used, r=dminor
MozReview-Commit-ID: 2tM8ftLBDpi

--HG--
extra : rebase_source : 0730f464b5cbd63d0a4e2b3d7c56b55212db7466
2017-02-27 13:07:55 -05:00
Jeff Walden
d73ce21741 Bug 1287006 - Adjust media/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=jw_wang, r=rjesup
--HG--
extra : rebase_source : 176a2afde5772bbdf43f0f6dc8082201acadcf4f
2017-02-13 09:07:40 -08:00
Byron Campen [:bwc]
05f117a2ad Bug 1338696: Don't deref null when nr_stun_message_create2 fails. r=drno
MozReview-Commit-ID: 6yo1NtElboR

--HG--
extra : rebase_source : ea9ea0868e6d806db07ec0f3509f3588bd433395
2017-02-13 16:22:54 -06:00
Byron Campen [:bwc]
bcf0706eb7 Bug 1340734: Move the TLS detection logic to TestNrSocket::create, to keep up with changes from bug 1336507. r=drno
MozReview-Commit-ID: A0wYXBmvhyh

--HG--
extra : rebase_source : af80ae36fe7e2777d66a51a6f879c8e48bf7fb35
2017-02-17 17:31:55 -06:00
Tom Tromey
b6eaee7842 Bug 1060419 - add -Werror=format to the warnings.configure, r=froydnj
MozReview-Commit-ID: 9pvECUzAjF1

--HG--
extra : rebase_source : 4a1e1d8b243128e62359c32b3d7c5ad01d3cefac
2016-12-15 09:57:59 -07:00
Randell Jesup
3d2997d55f Bug 1332402 - Part 2: just complain if SingletonThread is still active at shutdown r=bwc
MozReview-Commit-ID: B57cZnCuAdv

--HG--
extra : rebase_source : 87d10a7c546f6f85f8e2c769e20afcc63ea724ef
2017-01-19 15:07:47 -05:00
Byron Campen [:bwc]
56b7c03b51 Bug 1332402 - Part 1: Simplify shutdown of the IO thread. r=jesup
MozReview-Commit-ID: DsGcaQGxz7u

--HG--
extra : rebase_source : 388fac2352fc5a7e83b91e7b011358458171e9a7
2017-01-19 14:06:21 -06:00
Sylvestre Ledru
364ecfb0c7 Bug 1338086 - Remove useless else blocks in order to reduce complexity in media/mtransport/ r=drno
MozReview-Commit-ID: 9Hvf7kGOi2s

--HG--
extra : rebase_source : d7a182a4b6fc02030f3e8d0eb5cbd75c0f5ff117
2017-02-14 15:08:29 +01:00
Michael Froman
d4be0d3431 Bug 1338273 - initialize NrIceStats vars to zero. r=drno
MozReview-Commit-ID: 1Yir1vQAvhX

--HG--
extra : rebase_source : b6ee2a80bffd55cb08ce094e06affd90e305edb4
2017-02-13 11:58:57 -06:00
Byron Campen [:bwc]
e59a5f112e Bug 1336182 - Part 2: Use "override" keyword to silence some warnings about inconsistency. r=drno
MozReview-Commit-ID: 1mVXvIGNBdr

--HG--
extra : rebase_source : 671fd46798807b72ee390cc37f0beae18be3d222
2017-02-06 16:44:14 -06:00
Byron Campen [:bwc]
3781dd7683 Bug 1336182 - Part 1: Add DTLS handshake time telemetry. r=bsmedberg,drno
MozReview-Commit-ID: JczL8eFuzMg

--HG--
extra : rebase_source : 4344125a9605bfa39696bac445231e35b05e9b1f
2017-02-03 17:01:05 -06:00
Sylvestre Ledru
24eaa6aa67 Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in media/mtransport/ r=bwc=jesup
MozReview-Commit-ID: 1ALL9rdhk24

--HG--
extra : rebase_source : c1899accbe87f6d226f8bbd5922b5899362f2e26
2017-02-13 14:42:00 +01:00
Nils Ohlmeier [:drno]
8d98a3e4de Bug 1338384: added STUN bandwidth attribute. r=bwc
MozReview-Commit-ID: DiW32Zdmen8

--HG--
extra : rebase_source : 6509d924bc44fdd7dc65fe80ff714f5231550150
2017-02-10 12:33:26 -08:00
Byron Campen [:bwc]
9699169e39 Bug 1336507 - Part 3: Make sure mozLocalTransport is set to "tls" where appropriate. r=drno
MozReview-Commit-ID: EQCKgaFlA3q

--HG--
extra : rebase_source : 35a7a337f0e02e3d1543035314e2c129d3fac7e5
2017-02-03 16:48:02 -06:00
Byron Campen [:bwc]
f55547b66e Bug 1336507 - Part 2: Move some TLS related stuff from |connect| to |create|, so it is better reflected in candidate labels/codeword. r=drno
MozReview-Commit-ID: GnaJa1EPw0j

--HG--
extra : rebase_source : 58b1b4e09e2ae61a9596ae94cf0a27dab3bfca31
2017-02-03 16:47:05 -06:00
srivatsav
74183ba990 Bug 1334265 - Replace double quotation marks with single quotation marks in ice_unittest.cpp. r=jesup
--HG--
extra : rebase_source : 2d90c8cdb8c16455ddedd79a90e05627fa7e599e
2017-02-02 14:42:27 +05:30
Michael Froman
a7b3b8a6bb Bug 1325536 - ice telemetry. r=bsmedberg,chutten,drno
MozReview-Commit-ID: 8pZBXA8Pjea

--HG--
extra : rebase_source : 7ffca52f5eaccc0fad4b8cbc2104bbb57302190a
2017-01-11 19:57:03 -06:00
Nils Ohlmeier [:drno]
a38f5b69d4 Bug 1334682: start trickle timeout only after we have received at least on candidate. r=bwc
MozReview-Commit-ID: DZ1oytW6Jof

--HG--
extra : rebase_source : f4e4b5f795471188581f3949f0a0abc9ad22a4e7
2017-01-27 14:34:42 -08:00
Randell Jesup
e8948cb4f3 Bug 1219468: Remove the rest of the non-LazyLogModules in webrtc, except for cppunit tests r=erahm,ng
Also captures LOG(...) << .... uses in webrtc.org code when 'nspr' is the target

MozReview-Commit-ID: znvsArbS85
2017-01-27 23:35:17 -05:00
Kartikaya Gupta
1af1a82edf Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
MozReview-Commit-ID: 5yt3O4Hoois

--HG--
extra : rebase_source : 5dad12cd8400b8a783e8407de874d4b7c75cb645
2017-01-25 14:51:34 -05:00
Phil Ringnalda
ef758dcbf4 Backed out changeset 95d09880ddf6 (bug 1325536) for nsVariant::Release crashes 2017-01-20 22:05:26 -08:00
Michael Froman
007f4afe98 Bug 1325536 - ice telemetry. r=bsmedberg,chutten,drno
MozReview-Commit-ID: 8pZBXA8Pjea

--HG--
extra : rebase_source : 37efe5b463098ff1489d317b1f78206cac4963b3
2017-01-11 19:57:03 -06:00
Byron Campen [:bwc]
3ab20717f0 Bug 1056934 - Part 5: Open TLS sockets when communicating with a TLS endpoint. r=drno
MozReview-Commit-ID: 1V7bzPLPBYi

--HG--
extra : rebase_source : 588697a31e2991ea24526ad32d74ecb4ec3c306b
2017-01-03 12:32:54 -06:00
Byron Campen [:bwc]
357ff5d106 Bug 1056934 - Part 4: Handle turns URLs when configuring nICEr. r=drno
MozReview-Commit-ID: 6izdoAUgwcn

--HG--
extra : rebase_source : 8a45e9cd5b7962b0d674aff8a72283d99655c556
2017-01-03 12:31:30 -06:00
Byron Campen [:bwc]
b35cd43e20 Bug 1056934 - Part 3: Make it possible to configure TURN TLS servers in nICEr. r=drno
MozReview-Commit-ID: 2FotueuPHKn

--HG--
extra : rebase_source : f79dc559b03b540343d15abd07651a09f124bb36
2017-01-03 12:29:59 -06:00
Byron Campen [:bwc]
f917fb4175 Bug 1056934 - Part 2: Test-case for TURN TLS. r=drno
MozReview-Commit-ID: AWJGwWE55Ct

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_basicAudioNATRelayTCP.html => dom/media/tests/mochitest/test_peerConnection_basicAudioNATRelayTLS.html
extra : rebase_source : d2687df6c52f13cabf3138c89c187175c59602a5
2017-01-03 12:28:13 -06:00
Nils Ohlmeier [:drno]
3694cbb29c Bug 1324995: null pointer after freeing. r=bwc
MozReview-Commit-ID: GJ6PQHU5nU

--HG--
extra : rebase_source : c1a121f85ea89ce9e1f86072715cbc4b7c30a0e6
2017-01-04 16:47:44 -08:00
Carsten "Tomcat" Book
fbe86342ad Merge mozilla-central to mozilla-inbound 2017-01-10 12:21:12 +01:00
Benjamin Smedberg
29c0b37b6c Bug 1329932 - Remove unneeded nsXPCOMGlue includes. r=glandium 2017-01-10 18:40:50 +09:00
Nils Ohlmeier [:drno]
54ada30c75 Bug 1266667: socket reuse option for TCPSocket. r=mcmanus
MozReview-Commit-ID: CJEK714ruLl

--HG--
extra : rebase_source : a52f8c96c0fed3881f3480a38dc2167f1eb4c451
2016-12-21 23:38:06 -08:00
Markus Stange
2ab94363e9 Bug 1323100 - Use NS_NewNamedThread in SingletonThreadHolder. r=froydnj
MozReview-Commit-ID: Jcf5DfSrxrf

--HG--
extra : rebase_source : 4d0d753d22b3cd46d2e9e4422c7d839953d20afd
2016-12-12 19:17:51 -05:00
Sylvestre Ledru
2e2def32f7 Bug 1324547 - ensure we're not needlessly copying things in ranged for loop r=froydnj
MozReview-Commit-ID: 2NnjjmANem5

--HG--
extra : rebase_source : 4387ede40b6726b4a879b57e31f8428784f0bfc7
2016-12-21 18:05:50 +01:00
Nils Ohlmeier [:drno]
2ca25c39f6 Bug 1318180: turn network offline events into ice disconnected event. r=bwc,jib
MozReview-Commit-ID: Kqbicl2goL2

--HG--
extra : rebase_source : 4ed7d1364af8bd1575e2ced1bd8512405e0dd669
2016-11-17 23:16:33 -08:00
Wes Kocher
65b11f5302 Backed out 27 changesets (bug 1323100) for leaks in mochitest-e10s-2 a=backout
Backed out changeset 069375097856 (bug 1323100)
Backed out changeset 3e64cdf12bb6 (bug 1323100)
Backed out changeset ba3a6bce2ba5 (bug 1323100)
Backed out changeset 4fcf1517da8d (bug 1323100)
Backed out changeset 5daf48da151e (bug 1323100)
Backed out changeset 4e441df8f70a (bug 1323100)
Backed out changeset 8ba2c7c2d262 (bug 1323100)
Backed out changeset 7b54195f4383 (bug 1323100)
Backed out changeset 8c1328db2d0c (bug 1323100)
Backed out changeset cb8d544864b8 (bug 1323100)
Backed out changeset 00453dfb7172 (bug 1323100)
Backed out changeset 3a5216789011 (bug 1323100)
Backed out changeset 3a7ce80e8657 (bug 1323100)
Backed out changeset 4baecf3669b0 (bug 1323100)
Backed out changeset c5ca13e76e13 (bug 1323100)
Backed out changeset 40249b284066 (bug 1323100)
Backed out changeset 1fb590677ace (bug 1323100)
Backed out changeset 699f7f888ea3 (bug 1323100)
Backed out changeset a1c171f8f925 (bug 1323100)
Backed out changeset c04743218bc5 (bug 1323100)
Backed out changeset 831f4de80f62 (bug 1323100)
Backed out changeset 55b1ef1a16cf (bug 1323100)
Backed out changeset 6675e4fd50f0 (bug 1323100)
Backed out changeset e26f9d68b74c (bug 1323100)
Backed out changeset 061f8e2d0000 (bug 1323100)
Backed out changeset 6695c396ef15 (bug 1323100)
Backed out changeset 5dbb824fd978 (bug 1323100)
2016-12-30 16:09:03 -08:00
Markus Stange
1c1cc66339 Bug 1323100 - Use NS_NewNamedThread in SingletonThreadHolder. r=froydnj
MozReview-Commit-ID: Jcf5DfSrxrf

--HG--
extra : rebase_source : 8ba5017efc93289570f4358fb1694692d935ba48
2016-12-12 19:17:51 -05:00
Wes Kocher
26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange
2d69e3878a Bug 1323100 - Use NS_NewNamedThread in SingletonThreadHolder. r=froydnj
MozReview-Commit-ID: Jcf5DfSrxrf

--HG--
extra : rebase_source : 8ba5017efc93289570f4358fb1694692d935ba48
2016-12-12 19:17:51 -05:00
Nils Ohlmeier [:drno]
bf8b1f5ab9 Bug 1324995: only free AdapterAddresses if needed. r=bwc,jesup
MozReview-Commit-ID: 8C4yPsGGPoV

--HG--
extra : rebase_source : 96364e7469b92f3ce1a2e8b56b886b4581287d89
2016-12-20 23:20:01 -08:00
Randell Jesup
ac570b16c4 Bug 1250356: rollup of changes for webrtc after applying webrtc.org v49 update r=pkerr,ng,pehrsons,etc
See ssh://hg.mozilla.org/users/paulrkerr_gmail.com/webrtc49_merge/ for the
patch development history.
2016-12-27 19:41:02 -05:00
Cykesiopka
0bdf96120a Bug 1323998 - Stop using Scoped.h NSS types in dtlsidentity.(cpp|h) and nricectx.cpp. r=mt
Scoped.h is deprecated.

MozReview-Commit-ID: IRFLV2mfN4J

--HG--
extra : rebase_source : 4c2a73ed8c1e9c695716aafb2da099f60f889454
2016-12-21 22:09:10 +08:00
Makoto Kato
3ee6f7badc Bug 1322546 - Cannot compile nrappkit with WINVER=0x0600 or later. r=drno
MozReview-Commit-ID: HBVVHafiRKQ
2016-12-15 16:37:51 +09:00
Nils Ohlmeier [:drno]
8e17410821 Bug 1320150: only fire consent when previously connected. r=mjf
MozReview-Commit-ID: 4cj5gta8uet

--HG--
extra : rebase_source : 984b7ba3d75f9a25d8644db84d22fa97aac950d5
2016-11-24 00:01:44 -08:00
Martin Thomson
0b45b71319 Bug 1316261 - Configure trust anchors list to be empty for WebRTC, r=drno
MozReview-Commit-ID: ltSVAAp2WF

--HG--
extra : rebase_source : cd7e2aea72c74e8eda7089f5a540d3a839534acf
2016-11-12 10:57:21 +11:00
Nils Ohlmeier [:drno]
d933579cce Bug 852665: add support for ICE disconnected state. r=bwc
MozReview-Commit-ID: 5ONTc2Wz72O

--HG--
extra : rebase_source : 4f99ebbd4fa0e566965f94dc7b5d999bbbfd7b85
2016-10-28 22:22:17 -07:00
Nils Ohlmeier [:drno]
9ddb815b69 Bug 1304920: remove fingerprint attribute from plain binding requests. r=bwc
MozReview-Commit-ID: KpqQfHzv7zn

--HG--
extra : rebase_source : 976af858b54a6ddda23b19310352359659260b71
2016-09-22 17:56:29 -07:00
Martin Thomson
c09374be30 Bug 1311383 - Use unique pointers for DTLS transport and related, r=Cykesiopka
MozReview-Commit-ID: 79wKQtJjBNP

--HG--
extra : rebase_source : 1f5c7f2417c25d17fb99bc55eff8a6b2e5a333ba
2016-10-20 11:29:58 +11:00
Nils Ohlmeier [:drno]
32fa85e614 Bug 1309641: only store a single pre-answer request per 5 tuple. r=bwc
MozReview-Commit-ID: KzrGGRRU28J

--HG--
extra : rebase_source : 97136e8ef20a61130154af695ec09598e91078c5
2016-10-26 21:43:27 -07:00
Nils Ohlmeier [:drno]
414a36866f Bug 1309585: use default address dicovery as backup for interface iteration. r=bwc
MozReview-Commit-ID: ds9rDlddi9

--HG--
extra : rebase_source : 418bb84e925eefe5ae6b687277a05ec2acd273de
2016-10-24 15:55:02 -07:00
Jan-Ivar Bruaroey
6f1eb05923 Bug 1313246 - allow empty username and credential in RTCPeerConnection constructor. r=bwc
MozReview-Commit-ID: 6EJ46BXxXW5

--HG--
extra : rebase_source : e9a5ddc25c61708371ce1c89d172dda432226b25
2016-10-26 20:41:07 -04:00
Nils Ohlmeier [:drno]
8f782c9d56 Bug 1306714: Use RFC 7983 detection for DTLS packets. r=mt
MozReview-Commit-ID: L1BYAFmJOug

--HG--
extra : rebase_source : 33d52ee88d646803014d9e20c3b6969833ebda15
2016-09-30 00:00:54 -07:00
Byron Campen [:bwc]
f21b7f1efe Bug 1312304: Remove ICE policy "none". r=drno,smaug
MozReview-Commit-ID: 2adsRJ6pFnD

--HG--
extra : rebase_source : 03a22d7d990d8959b6eb6d23a6cbc4821ad68428
2016-10-24 13:36:56 -05:00
Nils Ohlmeier [:drno]
298dae8a64 Bug 1310305: skip responding when failed to parse STUN message. r=mjf
MozReview-Commit-ID: D9Ox0nt81bF

--HG--
extra : rebase_source : c26e9826ee0f8a677acf22ccaeecb31d9cecce50
2016-10-14 12:59:22 -07:00
Carsten "Tomcat" Book
d6850a3a86 merge mozilla-inbound to mozilla-central a=merge 2016-10-17 11:19:02 +02:00
Nils Ohlmeier [:drno]
edb7f8ff31 Bug 1310061: avoid interop issues with SHA384. r=mt
MozReview-Commit-ID: 67cJdDWCMAs

--HG--
extra : rebase_source : 0ea1074feacc41ec021db9a8d5d1df0c36147ad2
2016-10-14 11:49:32 -07:00
Nils Ohlmeier [:drno]
ecd5c4c6b9 Bug 1309129: enable redirecting of nICEr logging to NSPR logging. r=bwc
MozReview-Commit-ID: ESB6F0MlKdQ

--HG--
rename : media/mtransport/rlogringbuffer.cpp => media/mtransport/rlogconnector.cpp
rename : media/mtransport/rlogringbuffer.h => media/mtransport/rlogconnector.h
rename : media/mtransport/test/rlogringbuffer_unittest.cpp => media/mtransport/test/rlogconnector_unittest.cpp
extra : rebase_source : 33ea6c07b909c1972a2e9150241536ba56890609
2016-10-11 00:17:26 -07:00
Tom Schuster
774a8bf34d Bug 1302163 - Change code to use SprintfLiteral instead of snprintf. r=ehsan 2016-10-04 17:57:51 +02:00
Byron Campen [:bwc]
548a4d6be0 Bug 1304568: Fix some bad casts. r=drno
MozReview-Commit-ID: XJhCywlTpg

--HG--
extra : rebase_source : 92592e28e738fdc57bb4e89bbf0cace5f8ec7b57
2016-09-22 09:31:30 -05:00
Martin Thomson
54eb5cb215 Bug 1304919 - Update WebRTC to latest NSS, r=ekr
MozReview-Commit-ID: Jz9lraGZIyx

--HG--
extra : rebase_source : 9b80b600f46ecc04ea9f282342d3a98ef0e915b8
extra : source : f1aace586e14a276cc43dd00111d5c9d04580ea0
2016-09-23 13:47:00 +10:00
Sebastian Hengst
a0d432121c Backed out changeset f1aace586e14 (bug 1304919) 2016-09-24 18:00:08 +02:00
Martin Thomson
d566e166e9 Bug 1304919 - Update WebRTC to latest NSS, r=ekr
MozReview-Commit-ID: Jz9lraGZIyx

--HG--
extra : rebase_source : 9731046d82e7aeef9192fe6e7ce10dd56d80a78d
2016-09-23 13:47:00 +10:00
Byron Campen [:bwc]
b571d6f4c1 Bug 1281482: Extend STUN rate limit to e10s sockets. r=drno
--HG--
extra : rebase_source : d39dec248379da239e0a3ed8bd904e713d2f1fa8
2016-09-22 10:38:06 -05:00
Nils Ohlmeier [:drno]
fcb065e03a Bug 1302481: added new no NAT <-> symmetric NAT test case. r=bwc
MozReview-Commit-ID: HpUwesLDWBB

--HG--
extra : rebase_source : b581f7c96c817208cf300bd5d56774d29a192e3b
2016-09-01 21:32:30 -07:00
Phil Ringnalda
3748f182f6 Merge m-i to m-c, a=merge 2016-09-10 00:14:21 -07:00
Igor
60cd1e3bb7 Bug 1296180 - Replace more uses of PR_ARRAY_SIZE with mozilla::ArrayLength. r=keeler,mt 2016-09-09 13:17:52 -07:00
Byron Campen [:bwc]
653b388b32 Bug 1297416 - Part 4: Call close() when create() fails. r=drno
MozReview-Commit-ID: 5uf2xbb2cba

--HG--
extra : rebase_source : f7c9bd97aa2ab17847844c2a4a24ffed6b450c3d
2016-09-02 12:04:54 -05:00
Byron Campen [:bwc]
7eafad9670 Bug 1297416 - Part 3: Add proxy-only mode and pref. r=drno
MozReview-Commit-ID: D1e9f3OkVsU

--HG--
extra : rebase_source : 65784601918246f47d51888f64d90a7a0c580bc9
2016-08-23 15:15:33 -05:00
Phil Ringnalda
4b1303cc59 Back out 1eb6e4e4060f (bug 1296180) for Windows warning-as-error bustage
CLOSED TREE
2016-09-08 23:30:12 -07:00
Igor
d42cc2cb4e Bug 1296180 - Replace more uses of PR_ARRAY_SIZE with mozilla::ArrayLengh. r=mt 2016-09-08 22:35:12 -07:00
Byron Campen [:bwc]
02cf82bf1a Bug 1297416 - Part 2: Disable default route mode if the user has granted camera or microphone permissions. r=drno
MozReview-Commit-ID: CFkVnEwUu2d

--HG--
extra : rebase_source : 7b712eace6c780a9ba20de9acd637d918c80f017
2016-08-04 10:55:20 -05:00
Byron Campen [:bwc]
9f8a1e86b6 Bug 1297416 - Part 1: Split out the hiding of host candidates, and default route mode. r=drno
MozReview-Commit-ID: IQtwAG35CM3

--HG--
extra : rebase_source : 3a206adac4d28688bc2ba0c22436d5bf3b68f113
2016-07-25 15:47:52 -05:00
Michael Layzell
e12728495c Bug 1018486 - Part 9: Changes to account for modifications to clang plugin, r=ehsan
MozReview-Commit-ID: EPQMbfHYxUK
2016-09-07 10:50:47 -04:00
Nils Ohlmeier [:drno]
02dde2e10d Bug 1298991: only create candidate pairs from STUN response when needed. r=bwc
MozReview-Commit-ID: KpqNyi0FVb3

--HG--
extra : rebase_source : 8bde1830fa0a37205f647a4d594583e4641d041a
2016-08-29 16:34:22 -07:00