Commit Graph

564 Commits

Author SHA1 Message Date
Paul Kerr [:pkerr]
2fb6265743 Bug 1209252 - Part 2: typo fix for compile issue. r=bustage on a CLOSED TREE 2016-01-27 18:09:19 -08:00
Paul Kerr [:pkerr]
d4e008ea3b Bug 1209252: add buttons to clear session and signaling logs. r=jib, r=sicking 2016-01-27 16:05:10 -08:00
Xidorn Quan
0f91e96d64 Bug 1237909 part 1 - Remove unused TransportLayer::RunOnThread function. r=bwc 2016-01-25 14:52:34 +11:00
Nils Ohlmeier [:drno]
3e928004ef Bug 1117984: added proxy connection state enum. r=bwc 2016-01-20 15:55:35 -08:00
Nils Ohlmeier [:drno]
05faf0b611 Bug 1241690: reduce logging output for unconnected PCs. r=bwc 2016-01-21 12:04:28 -08:00
Randell Jesup
02da63c00b Bug 1194259: nsresult != NS_IMETHODIMP rs=bustage 2016-01-22 04:32:50 -05:00
Randell Jesup
e266b70181 Bug 1194259: Make ICE IP restriction to default routes work in E10S r=jesup,mcmanus,drno 2016-01-22 02:47:01 -05:00
Nils Ohlmeier [:drno]
6eeb92771a Bug 1237299: addedd missing address family to DNS lookup for proxies r=bwc 2016-01-11 13:39:11 -08:00
Nils Ohlmeier [:drno]
f5f3ec25ac Bug 895793: added interface type and link speed detection for Windows. r=bwc 2016-01-08 14:37:18 -08:00
Chris Peterson
3a43de57f0 Bug 1235235 - Fix -Wimplicit-fallthrough warning in media/mtransport/. r=ekr
media/mtransport/transportlayerdtls.cpp:872:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-22 22:03:13 -08:00
Nils Ohlmeier [:drno]
02af92ce64 Bug 1229633: hash interface names on Windows. r=ekr 2015-12-21 23:13:44 -08:00
Jan Beich
3d497044e1 Bug 1231117 - Use xlocale on DragonFly as well. r=jesup 2015-12-03 12:32:52 +00:00
Jan Beich
01b3717339 Bug 1231109 - Drop FreeBSD checks for unsupported versions. r=jld r=jesup 2015-12-03 12:28:22 +00:00
Nils Ohlmeier [:drno]
041b342a19 Bug 1219557 - don't pair candidates from different reserved networks. r=mt r=bwc 2015-12-04 20:43:15 -08:00
Nils Ohlmeier [:drno]
40a79bf2f0 Bug 1006809 - update triggered check behavior to RFC 5245. r+bwc r=mjf 2015-11-27 23:50:14 -08:00
Randell Jesup
0326ca0ffd Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons
Landing as one rolled-up patch to avoid breaking regression tests, and in
keeping with previous WebRTC imports.  Broken out parts that needed review
are on the bug.
2015-11-18 15:03:25 -05:00
Nils Ohlmeier [:drno]
a9cff2f915 Bug 1208278 - improved STUN request timeout handling. r=bwc 2015-10-21 00:37:48 -07:00
Nils Ohlmeier [:drno]
d0dad70b11 Bug 1220441 - Improve gather trickle ice unit tests. r=bwc r=mjf 2015-11-02 14:57:30 -08:00
Nils Ohlmeier [:drno]
c20885fcd8 Bug 1192403 - improve ICE TCP error message. r=mjf 2015-08-08 00:39:32 -07:00
Nils Ohlmeier [:drno]
c4d46806a2 Bug 1216815 - fix memory leaks in test TCP STUN server. r=mjf 2015-10-20 17:07:09 -07:00
Byron Campen [:bwc]
749563e567 Bug 1214279: Fix the same infinite loop from bug 957236 in a different place. r=drno 2015-10-22 16:40:38 -04:00
Mike Hommey
9768be95eb Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Nicholas Nethercote
4b27ee8c29 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.
2015-10-19 18:05:20 -07:00
Nathan Froyd
9c5965b035 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
e504437747 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Nils Ohlmeier [:drno]
f33c6a0f24 Bug 1215616: use base address for server rflx ICE candidates r=bwc 2015-10-17 11:34:01 -04:00
Byron Campen [:bwc]
756efc3e75 Bug 1208176 - Part 3: Be forgiving when we see prflx instead of host candidates in ice_unittest. r=drno 2015-10-06 15:09:45 -05:00
Byron Campen [:bwc]
73dea1adfc Bug 1208176 - Part 2: Add a one-sided trickle test case to ice_unittest. r=drno 2015-10-06 15:07:19 -05:00
Byron Campen [:bwc]
7370be3015 Bug 1208176 - Part 1: Add a couple of interface names. r=drno 2015-10-06 15:06:36 -05:00
Byron Campen [:bwc]
d95b9088d9 Bug 1211389 - Make absolutely sure the relay->srflx pointer doesn't dangle. r=drno 2015-10-05 14:32:22 -05:00
Byron Campen [:bwc]
f23eb5ac72 Bug 1208096 - Handle various failure cases for TURN gathering better. r=drno 2015-09-24 14:12:37 -05:00
Nils Ohlmeier [:drno]
0b64c98465 Bug 1207451 - removed framing from multi_tcp API. r=bwc 2015-09-19 12:12:15 -07:00
Nils Ohlmeier [:drno]
6fab6921c5 Bug 1206465 - removed ice_ctx from TestStunTcpServer. r=bwc 2015-09-18 23:25:38 -07:00
"Chih-Kai (Patrick) Wang"
32389b8a47 Bug 950660: Part 4: Bridge TCPSocketChild to nr_socket r=bwc,jdm
Improve use of TCPSocket to track in-flight writes and suppress extra runnables
Adds lots of logging to nr_socket_buffered_stun.c
Rework mtransport code to use new TCPSocketChild interface
2015-01-05 15:49:50 +08:00
Nils Ohlmeier [:drno]
d73de1c065 Bug 1205421 - fix DNS resolution of STUN server in ice_unittest. r=bwc 2015-09-16 13:42:57 -07:00
Martin Thomson
e92c82005b Bug 1125292 - Sending ALPN header field for WebRTC calls, r=bwc 2015-09-15 10:28:34 -07:00
Byron Campen [:bwc]
b272da0efb Bug 1186590 - Part 2 - Move hard-coded interface priority list into nrinterfaceprioritizer, and simplify some functions. r=drno 2015-09-04 15:25:37 -05:00
Byron Campen [:bwc]
161f746ca2 Bug 1186590 - Part 1 - Enable interface prioritizer on all platforms. r=drno 2015-09-02 15:06:58 -05:00
Byron Campen [:bwc]
92e769ad78 Bug 1200763 - Remove hard-coded STUN IP address from ice_unittest, and do a DNS lookup instead. r=drno 2015-09-04 10:21:12 -05:00
Michael Froman
e5a6261ceb Bug 1008792 - Check for valid pointer before using. r=bwc 2015-09-01 11:52:43 -05:00
Byron Campen [:bwc]
6e40337826 Bug 1201209 - Extend the timeout on socket readiness in test_nr_socket_unittest. r=drno 2015-09-02 14:27:07 -05:00
Nils Ohlmeier [:drno]
738b65f581 Bug 1199766 - Disable ICE TCP SO gathering via user pref. r=bwc 2015-08-28 13:22:45 -07:00
Nicholas Nethercote
10d95cca57 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Nils Ohlmeier [:drno]
5bfe29f992 Bug 1142964 - Fix ICE tiebreaker on Windows. r=bwc 2015-08-21 10:35:28 -07:00
Nils Ohlmeier [:drno]
86ffea1d7c Bug 1194385 - Add new unit tests which demonstrate the current behavior. r=bwc 2015-08-13 12:05:40 -07:00
Nils Ohlmeier [:drno]
90a3950d0c Bug 1194019 - New defaults for gather tests. r=bwc 2015-08-14 14:52:06 -07:00
Nils Ohlmeier [:drno]
cf2b2a3775 Bug 1037618 - Relax candidate verification for TCP. r=bwc 2015-08-10 16:31:12 -07:00
Randell Jesup
facda89249 Bug 1189040: add a whitelist for network interfaces to use with ICE/webrtc r=ekr 2015-08-12 19:45:36 -04:00
EKR
08b6404747 Bug 1189041 - Add option to only gather addresses for default route. r=bwc 2015-08-12 10:53:15 -04:00
Jan-Ivar Bruaroey
fd310e2cd0 Bug 1187775 - skip host and reflexive ICE candidates if relay-only. r=bwc 2015-08-05 08:22:55 -04:00