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

37 Коммитов

Автор SHA1 Сообщение Дата
Byron Campen [:bwc] 72bcc87880 Bug 1569183: Simplify how NrSockets specify whether they're proxied or not. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D46032

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:19 +00:00
Sylvestre Ledru d264b841c9 Bug 1576502 - Fix some wording issues r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D43363

--HG--
extra : moz-landing-system : lando
2019-08-27 15:38:58 +00:00
Ryan Alderete 4b595ec1a8 Bug 1570158 - Add proxy information to candidates table in about:webrtc r=bwc,baku
This adds a field to about:webrtc which indicates whether an associated
candidate is behind a proxy or not.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:04:45 +00:00
Sylvestre Ledru e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Paul Vitale 09f4c06235 Bug 1203503 - part 2. replace proxy tunnel with new ipc-based tunnel r+bwc, r+mayhemer
This replaces the tunnel using a new nr_socket implementation.  Proxy detection
code is still done in the peer connction.  However, the result is only used to
detect a proxy.  The result is unused.  Address resolution is done by necko code
in the parent process.  The new socket wraps a WebrtcProxyChannel which uses
necko to handle proxy negotiation.  This has a happy side effect of enabling all
authentication modes that necko already supports for http proxies.

This adds a protocol for Necko to manage, WebrtcProxyChannel.  This new protocol
serves as a pipe for a CONNECT tunnel.  It is only used in WebRtc and not built
in no WebRtc builds.

--HG--
extra : rebase_source : a951841f95eaaa0562886cf76b405b01f1adf70e
extra : intermediate-source : 5c3da21957fc80b07188bc8a405437b858027a22
extra : source : 594a32883463ab051677ba06e22fa6d062b4b4a9
2018-06-05 12:10:16 -05:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02: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 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
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
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
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
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
Byron Campen [:bwc] 9c47a3e286 Bug 1276805: Make TestNrSocket less chatty. r=drno
MozReview-Commit-ID: 7lXcrCbuQpz

--HG--
extra : rebase_source : bd80c7e4ebdd0413e35f3807ce503d7c27f7809a
2016-06-14 07:08:52 -05:00
Byron Campen [:bwc] c2d6cc516f Bug 1231975 - Part 5: Fix an intermittent failure caused by the NAT simulator erroneously canceling NR_ASYNC_WAIT_READ. r=drno
MozReview-Commit-ID: HwatO6UaeEX

--HG--
extra : rebase_source : fd5d972f042baf0007d09579fe43893c1a787836
2016-04-14 15:33:40 -05:00
Byron Campen [:bwc] ac965bfc5a Bug 1231975 - Part 4: Add some logging and simplification in TestNrSocket. r=drno
MozReview-Commit-ID: ASbgh62xqQU

--HG--
extra : rebase_source : d611712e2a7f0a29063ee5765dc66fb7ed9e5b0f
2016-04-14 09:24:47 -05:00
Byron Campen [:bwc] ff7fa1e45c Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : 12e1d24a7324ff1d87954fa1b56d83d2adaaa530
2016-03-14 13:31:01 -05:00
Wes Kocher 55d7bfae3f Backed out changesets 8ed054e5853e,d56adef9c8e0,408df9f84697,7092e498ac3a,29dce05596c6,ae1dc75009e7 (bug 1231975) for breaking local mochitests a=backout
MozReview-Commit-ID: 17mJDyZMVju

--HG--
extra : histedit_source : cf965b94d4b36cc1b4ce0a89272f9c355ae1b82e%2C72cefdebce52a0e6653a87dd0ef0a1316fe0ec18
2016-04-27 10:20:42 -07:00
Nils Ohlmeier [:drno] 696852ce71 Bug 929977: Add support for RFC 7675 ICE consent freshness. r=bwc,mt
MozReview-Commit-ID: HGRM10L0R3M

--HG--
extra : rebase_source : c50f8665230140096dd163bb5fbb13482a976c91
2016-04-26 13:11:25 -07:00
Byron Campen [:bwc] 475039d8aa Bug 1231975 - Part 5: Fix an intermittent failure caused by the NAT simulator erroneously canceling NR_ASYNC_WAIT_READ. r=drno
MozReview-Commit-ID: HwatO6UaeEX

--HG--
extra : rebase_source : 9ba82ea745c3aa8f4e3c14291aca36d68b775f7e
extra : source : e215c66a184b9424e76892673f2849d3bf262606
2016-04-14 15:33:40 -05:00
Byron Campen [:bwc] d99ec1f82d Bug 1231975 - Part 4: Add some logging and simplification in TestNrSocket. r=drno
MozReview-Commit-ID: ASbgh62xqQU

--HG--
extra : rebase_source : 162ab84cf48171a818e3aff7c65b4964a4989b05
extra : source : 99b6fffc375214bd061e729ed0462edbaec844ce
2016-04-14 09:24:47 -05:00
Byron Campen [:bwc] 18f4a13f02 Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : d5fa4d0138112d5932f4db43958b60f1606f0af2
extra : source : 81271ec54981bd4c7b0fa72889ba509e5c434ff4
2016-03-14 13:31:01 -05:00
Carsten "Tomcat" Book 42f342e18c Backed out changeset 4cff2bed6747 (bug 1231975) 2016-04-25 16:28:47 +02:00
Carsten "Tomcat" Book 8353eec0ac Backed out changeset 9d0c273048d6 (bug 1231975) 2016-04-25 16:28:42 +02:00
Carsten "Tomcat" Book 7cc02680ae Backed out changeset b21f8efbd341 (bug 1231975) 2016-04-25 16:28:41 +02:00
Byron Campen [:bwc] f508596540 Bug 1231975 - Part 5: Fix an intermittent failure caused by the NAT simulator erroneously canceling NR_ASYNC_WAIT_READ. r=drno
MozReview-Commit-ID: HwatO6UaeEX

--HG--
extra : rebase_source : 4fa178e6b2d715d5f7e56e7dd19d607830c31ff7
2016-04-14 15:33:40 -05:00
Byron Campen [:bwc] 4262b60302 Bug 1231975 - Part 4: Add some logging and simplification in TestNrSocket. r=drno
MozReview-Commit-ID: ASbgh62xqQU

--HG--
extra : rebase_source : 3fdcbf69370a69556b6b34d1a9c8c142732e21f8
2016-04-14 09:24:47 -05:00
Byron Campen [:bwc] 98c17059df Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : 20d6bc3424e433fbc0a98739310598c3c9433c87
2016-03-14 13:31:01 -05:00
Byron Campen [:bwc] 3a66dfe493 Bug 1252171: Update last_used_ on TCP port mappings when they are used, similar to UDP. r=drno
MozReview-Commit-ID: DNinTza44la

--HG--
extra : rebase_source : 5d65d9a4c21ad113a2762ebf397b1e7b8f289dd5
2016-02-29 13:04:42 -06:00
Byron Campen [:bwc] 139b740255 Bug 1231973 - Allow NAT simulator to be enabled with the pref system. r=drno
--HG--
extra : transplant_source : %DC%23%97%86a%7D-%C5%1BU%10%C4%13%5E%BE%D7%CA%9B%3B%8D
2015-12-16 14:26:02 -06:00
Byron Campen [:bwc] ea0d28b380 Bug 1231971 - Refactor the NAT simulator to use e10s sockets when appropriate. r=drno
--HG--
extra : transplant_source : %B4%2B%26%B8I%C5%E4%F9%83%A6%0B%21%D8%AA%D5%96%3B%B2%00%E1
2016-01-20 17:25:26 -06:00
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 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
EKR e92a0a38f4 Bug 1189041 - Add option to only gather addresses for default route. r=bwc 2015-08-12 10:53:15 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Byron Campen [:bwc] dc3971b1c9 Bug 1035468: A NAT simulator based on NrSocket, and integrate into ice_unittest. r=ekr
--HG--
extra : rebase_source : 1ca1bb919526b3a4e091022e5aba04140efc9c90
extra : source : d354fa12177226f079090cc34277aaf1016e23fa
2015-06-10 15:27:12 -07:00