Commit Graph

264 Commits

Author SHA1 Message Date
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
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
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
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
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
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]
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
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
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]
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
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
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
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
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
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
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
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
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
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
Michael Froman
d81f5eab06 Bug 1295552 - restart ice ctx needs stun/turn/dns setup to match original ctx. r=drno
MozReview-Commit-ID: H8o3gEnFfzQ

--HG--
extra : rebase_source : 59a5b05cf14da6492f4edaba6e3d7d18cf8ca242
2016-08-18 17:29:49 -05:00
Iris Hsiao
1637787858 Backed out changeset e7b0bdaa0661 (bug 1295552) for GTest crashed @mozilla::NrIceCtxHandler::CreateCtx 2016-08-22 11:11:05 +08:00
Michael Froman
8c9dbf602e Bug 1295552 - restart ice ctx needs stun/turn/dns setup to match original ctx. r=drno
MozReview-Commit-ID: H8o3gEnFfzQ

--HG--
extra : rebase_source : d5b1d8a4beb7f2ad1cb76391c09efc01735771ad
2016-08-18 17:29:49 -05:00
Wes Kocher
e9097643d5 Merge inbound to central, a=merge 2016-08-12 13:44:29 -07:00
Byron Campen [:bwc]
fe142cf303 Bug 1280443: Copy this the hard way. r=drno
--HG--
extra : rebase_source : d3ad50a2fb57bdaab31e53188d918ed8d6d1daa7
2016-08-10 11:51:28 -05:00
Nils Ohlmeier [:drno]
69df337992 Bug 1293206: cancel TCP connect callback after connect. r=bwc
MozReview-Commit-ID: 6hczFqHMBNA

--HG--
extra : rebase_source : 90a352c0bcf8e9d3b14f62a27c76160272cd45bb
2016-08-09 15:55:37 -07:00
Nils Ohlmeier [:drno]
b3a05a317c Bug 1290365: add TURN TCP socket to read poll after connect. r=bwc
MozReview-Commit-ID: FLITvQCt9Xq

--HG--
extra : rebase_source : 8346b3b8e1655882584bdf1a60a8af75fc1da1bf
2016-08-02 10:58:55 -07:00
Nils Ohlmeier [:drno]
650d5a0e64 Bug 1289984: fix Windows compiler warnings. r=bwc
MozReview-Commit-ID: EWSJZdxPzQk

--HG--
extra : rebase_source : 5d5c2e088c6e0dffcba9d8692d4e1a878b24ae44
2016-07-27 17:13:43 -07:00
Byron Campen [:bwc]
38b1158591 Bug 1287874: Add missing math.h include. r=drno
MozReview-Commit-ID: APRXVtWHlBX

--HG--
extra : rebase_source : fe8e299f81d4623456c28e2b5aca76b1e29b4503
2016-07-27 14:21:58 -05:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Nils Ohlmeier [:drno]
f746914c9a Bug 1268291: use ICE binding requests for consent refresh r=mjf
MozReview-Commit-ID: 9NBw2WBE5xJ

--HG--
extra : rebase_source : 2047c775c9e0083ab65420c1aead67642d67275e
2016-05-03 00:31:11 -07:00
Byron Campen [:bwc]
73c29a05f5 Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : 7b9b7cc850a7968e9ad778a42e87b9df196307f1
2016-03-04 15:45:57 -06:00
Wes Kocher
20598f44f6 Backed out changesets baa6c68ec413,5b8583070c9e,2942bb31152c,dd2ad6863f53,c68772362633,c8db6695b991 (bug 1231981) a=backout
MozReview-Commit-ID: EoGyz071RoN

--HG--
extra : amend_source : 69d6593ae0a946ed6366513a2e186b43c7435440
extra : histedit_source : cdce5a0698d6e7996ae731cff56263abc202ae65%2Ca62e94bdb37fc3e9266884f283d732e61e0f4715
2016-04-27 10:24:37 -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]
903901c97b Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : 81f06e74ab74558cfba435cac79bc6fee0d7409c
extra : source : 9249495e35aa39f4cf4f5604a9e1b56608c8775a
2016-03-04 15:45:57 -06:00
Carsten "Tomcat" Book
94cebd7b33 Backed out changeset a9fcd0e98cc3 (bug 1231981) 2016-04-25 16:28:53 +02:00
Byron Campen [:bwc]
543c799051 Bug 1266468: Respond to STUN requests with 400 if the component is failed. r=drno
MozReview-Commit-ID: 106OvQ7WLvp

--HG--
extra : rebase_source : 797c932080d07ff3d0be2fd20d9082944f1ac51d
2016-04-21 13:00:26 -05:00
Byron Campen [:bwc]
50135632ac Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : f52583fe21269d4d4214b93315cc75f0535de55d
2016-03-04 15:45:57 -06:00
Nils Ohlmeier [:drno]
df7216ecb4 Bug 1259842: allow RFC1918 pairing again r=mjf
MozReview-Commit-ID: 6afbRF64PM2

--HG--
extra : rebase_source : fbdf8db55ed9fb22cf39b375551741a5e75aac14
2016-04-05 17:10:03 -07:00
Michael Froman
e2e642f12e Bug 906986 - Ice restart and tests. r=bwc, r=drno, r=smaug
MozReview-Commit-ID: AMEi7SZebBG
MozReview-Commit-ID: GS2EkamNGc7

--HG--
extra : rebase_source : f715bc837331028f6b5e22820c530e34ca5bedb8
2016-04-08 09:20:53 -05:00
Byron Campen [:bwc]
7325e61fd6 Bug 1258753: Base candidate pair priority on controlling/controlled. r=drno
MozReview-Commit-ID: 6RAFaAtBbJq

--HG--
extra : rebase_source : 976b63d44fc7c50efa8f40b067cf45b56c66ed09
extra : source : 7b6263bcd3d7e9148914f5aaace10fc69ea0395d
2016-03-22 12:22:56 -05:00
Nicholas Nethercote
ea9bc73f05 Bug 1254780 (attempt 2) - Shrink log_types from 1024 entries to 16. r=ekr.
MozReview-Commit-ID: KWrOTuTlt6H

--HG--
extra : rebase_source : 36ec95f4584ea0d67286e9956456dffbe5294401
2016-03-11 10:06:32 +11:00