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

347 Коммитов

Автор SHA1 Сообщение Дата
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Nico Grunbaum bb1557ee1c Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

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

--HG--
extra : moz-landing-system : lando
2018-12-21 02:35:58 +00:00
Narcis Beleuzu 1110297dc8 Backed out changeset ccb218cd2d87 (bug 1380555) for mozlint failure on PeerConnection.js . CLOSED TREE 2018-12-21 04:20:58 +02:00
Nico Grunbaum 684ea28cec Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

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

--HG--
extra : moz-landing-system : lando
2018-12-21 00:46:54 +00:00
Nico Grunbaum 4f1b23fe19 Bug 1328194 - Remove deprecated legacy WebRTC stats callback and associated dictionary like results r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D13393

--HG--
extra : moz-landing-system : lando
2018-12-21 00:46:12 +00:00
Nico Grunbaum 4380b01ee3 Bug 1512517 - update WebRTC stat deprecation messages r=jib
Update WebRTC stat deprecation messages which were originally targeting 65, which are now targeting 66.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:48:31 +00:00
Nico Grunbaum 41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

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

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Nico Grunbaum 0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Nils Ohlmeier [:drno] d0376ddab9 Bug 1456417: made MLineIndex nullable. r=bwc,smaug
Differential Revision: https://phabricator.services.mozilla.com/D10807

--HG--
extra : moz-landing-system : lando
2018-11-13 22:52:24 +00:00
Paul Adenot 71204ef979 Bug 1502927 - Remove MediaStream.currentTime. r=baku,jib
This has never been specced and is unused appart from our tests.

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

--HG--
extra : rebase_source : c044f11325ec630dcabb673c85531a2283ff6ad4
extra : source : db3c2a88f79cb28440f4e13bcf27c5165c6ee060
2018-10-29 17:38:19 +01:00
Cosmin Sabou dd34f6cbd5 Backed out changeset db3c2a88f79c (bug 1502927) for mochitest failures on test_reduce_time_precision. 2018-11-05 19:46:42 +02:00
Paul Adenot 6c82d39b64 Bug 1502927 - Remove MediaStream.currentTime. r=baku,jib
This has never been specced and is unused appart from our tests.

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

--HG--
extra : rebase_source : 4c54d808fb69c0e403ff2e1775b97571889efca4
extra : histedit_source : bc568066b0684bb82b4f553b99f0dd48212aa633
2018-10-29 17:38:19 +01:00
Nico Grunbaum f02f2acdee Bug 816496 - this._dompc._pc can be null in onStateChange r=jib
In the onStateChange event the this._dompc._pc is not guaranteed to exist. This causes exceptions to be thrown durring tests.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 18:50:22 +00:00
Nico Grunbaum 29b141f8e4 Bug 1503023 - After waiting for certs make sure the PeerConnection still exists r=jib
Ensure that a PeerConnection is still open before setting the certificates.

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

--HG--
extra : moz-landing-system : lando
2018-10-29 22:57:10 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Byron Campen [:bwc] 79ea3c1025 Bug 1468451: Add a closed check to addTransceiver. r+jib r=jib
MozReview-Commit-ID: DMmorKFz5EL

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

--HG--
extra : moz-landing-system : lando
2018-09-19 21:03:30 +00:00
Jan-Ivar Bruaroey c65e5bbe7b Bug 1489623 - Throw SyntaxError on empty urls in iceServers and switch to real SyntaxError over DOMException, + update WPT. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D5452

--HG--
extra : moz-landing-system : lando
2018-09-10 19:23:15 +00:00
Nico Grunbaum 11b40b9572 Bug 1455724 - add telemetry for legacy PeerConnection getStats API usage r=mjf
MozReview-Commit-ID: L17M2whvxpV

--HG--
extra : rebase_source : 2938839a5465348eb8e34855287093d6f184844d
2018-04-23 09:49:32 -07:00
Philipp Hancke 660235d2fd Bug 1481557: improve getStats isRemote deprecation warning. r=jib
by adding the key that is accessed.
2018-08-07 20:00:26 +02:00
Nico Grunbaum 913ae8e3d3 Bug 1480525 - ensure localIdp, remoteIdp exist before closing them r=mjf
If PeerConnection initialization terminates early due to an excpetion localIdp, and remoteIdp aren't created.
This causes another exception in close(). The patch checks that they each exist in close before attempting to
access them.

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

--HG--
extra : moz-landing-system : lando
2018-08-06 21:44:32 +00:00
Jan-Ivar Bruaroey 508b6fa2e0 Bug 1393306 - Pick Firefox 65 as new isRemote end-date. r=ng
MozReview-Commit-ID: 8VgqgAQ51to

--HG--
extra : rebase_source : cf2c7e47a6a7895375af7a1737dd987bfa640826
2018-08-03 23:54:04 -04:00
Jan-Ivar Bruaroey bb4a34952e Bug 1393306 - Add deprecation warning in 57 for removal of stat.isRemote in 58. r=ng,peterv
MozReview-Commit-ID: 7wKBg3KQxjo

--HG--
extra : rebase_source : 41e7e1d5429af08693296b3f774edb97f28fd92c
2017-09-01 22:35:56 -04:00
Boris Zbarsky 1312fcd10f Bug 1476145 part 5. Stop using getInterface(nsIDOMWindowUtils) in DOM code. r=mccr8 2018-07-24 19:47:41 -04:00
Byron Campen [:bwc] 0afe738d22 Bug 1464079: Bring ICE connection state change callback up to spec. r=jib
--HG--
extra : rebase_source : e287ad23cbf3766731b14e93ad18e295654564ee
2018-05-31 11:30:19 -05:00
Felix Weinrank 26bdec1e8b Bug 1464917 - Allow maxPacketLifeTime and maxRetransmits to be zero; r=drno
MozReview-Commit-ID: HtYGXPy6pZ

--HG--
extra : rebase_source : 75e153fbf3841d20f7fca80de6905b7ee96f688b
2018-05-31 09:49:24 -04:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Mark Banner 88e4fd5825 Bug 1456076 - Update ESLint to 4.19.1 & eslint-plugin-html to 4.0.3. r=mossop
MozReview-Commit-ID: Gs6T8AsLPPo

--HG--
extra : rebase_source : bf189ef047294ea405d8e7628eae94daa6d93e89
2018-04-23 11:33:31 +01:00
Nico Grunbaum 7522ae5acb Bug 1452673 - trackless RTCRtpSender.getStats() returning unfiltered results r=mjf
MozReview-Commit-ID: 7JzZlBUqc0O

--HG--
extra : rebase_source : 6bc54727c6ac024c0d2628fc99751c9c4dc447bf
2018-04-18 00:16:27 -07:00
Dan Minor 30d5029270 Bug 1453030 - Only create RTCDTMFSender on audio RTCRtpSender senders; r=bwc
MozReview-Commit-ID: KsnUYCs8IYU

--HG--
extra : rebase_source : 2bee2f713ef65ef5baaa6cd37a3f9521beaa9a73
2018-04-10 13:19:42 -04:00
Byron Campen [:bwc] c67de40370 Bug 1449272 - Part 2: When using both offerToReceiveAudio and offerToReceiveVideo, create the audio transceiver first. r=jib
MozReview-Commit-ID: ClgChq6FLQ7

--HG--
extra : rebase_source : e2c2e9f2abd609522d618b6828c4447f4a515dd0
2018-03-27 13:36:02 -05:00
Nils Ohlmeier [:drno] 641209cf77 Bug 1446880: update setIdentityProvider() to take RTCIdentityProviderOptions. r=mt
MozReview-Commit-ID: Hx3LV9Uw7fi

--HG--
extra : rebase_source : b597b7fe0daff9b6fead92b3cc9c2da3e45a671c
2018-03-19 06:16:20 +00:00
Brindusan Cristian 88cd740311 Backed out 3 changesets (bug 1446880) for mochitest failures on test_exceptions_from_jsimplemented.htm CLOSED TREE
Backed out changeset 3d162d7e2721 (bug 1446880)
Backed out changeset 7142d472f2a4 (bug 1446880)
Backed out changeset 50c255c237f1 (bug 1446880)
2018-04-04 20:48:59 +03:00
Nils Ohlmeier [:drno] 5051a0eb24 Bug 1446880: update setIdentityProvider() to take RTCIdentityProviderOptions. r=mt
MozReview-Commit-ID: Hx3LV9Uw7fi

--HG--
extra : rebase_source : 0ecc2d1e17409f7cb4379be9efb6675aa1eb92f2
2018-03-19 06:16:20 +00:00
Peter Van der Beken 5e6f3328ec Bug 1448850 - Remove nsIMessageListener and nsIMessageListenerManager. r=bz.
--HG--
extra : rebase_source : 2938f6e1cb9078a6d45a8d58db0f6bf70e461b9c
2018-02-16 15:28:31 +01:00
Peter Van der Beken f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Byron Campen [:bwc] e92f4bada3 Bug 1443198 - Part 2: Check whether PC is closed before trying to create transceivers due to offerToReceive. r=jib
MozReview-Commit-ID: 5xDzBc9af6Y

--HG--
extra : rebase_source : ae6088f63bc760d8506b1453f221a5986b35218b
2018-03-06 09:24:18 -06:00
Byron Campen [:bwc] 10af499fbf Bug 1442385: Remove old onremovestream event stuff. r=jib,smaug
MozReview-Commit-ID: Bay5NvTsTFU

--HG--
extra : rebase_source : 7eba187b24ed9893abd2b2ec9b0f89c2a9d00689
2018-03-01 14:39:07 -06:00
Sebastian Hengst 3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Peter Van der Beken 6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Byron Campen [:bwc] 01d2150df6 Bug 1437832 - Part 2: Use the same C++ logic for replaceTrack, removeTrack, and addTrack (when on a pre-existing transceiver). r+jib r=jib
MozReview-Commit-ID: KQSlagkmAZ

--HG--
extra : rebase_source : 10a1f60995277f37b76b32ed741f51821a8a9729
2018-02-13 13:25:19 -06:00
Byron Campen [:bwc] 63e00f7ce5 Bug 1435013: Sync transceivers before creating offers/answers. r=jib
MozReview-Commit-ID: EORXVc8Hnky

--HG--
extra : rebase_source : 1ea186ac38f44b83f247b51224dd83be0b09df42
2018-02-01 12:07:02 -06:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Nico Grunbaum c4a0cebf58 Bug 1433576 - bring rtp sources js timestamp and timebase up to spec r=jib
MozReview-Commit-ID: 2joFQ41NaMp

--HG--
extra : rebase_source : e424cbbeb00d0b152609a4390d43d5ca6e4aceb7
2018-01-26 13:40:30 -08:00
Nico Grunbaum 5477fb29c4 Bug 1419093 - P3 - update rtp source js & mochi tests r=mjf
MozReview-Commit-ID: LqI3WG4cgtu

--HG--
extra : rebase_source : f9287fc1e6e6fc7598c41dd6faf7d5fa8c500f45
2017-12-18 19:24:55 -06:00