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

1093 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke c077183836 Bug 1660470 - Avoid including IPCMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93235

Depends on D93234
2020-11-23 16:03:47 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Simon Giesecke 8500063de5 Bug 1677284 - Avoid using PackingStrategy::Variant fallback for MimeResultType. r=alwu
Here, Maybe can be used instead. Also, the returned string is always a literal
string, which makes MimeResultType a trivial type now.

Differential Revision: https://phabricator.services.mozilla.com/D97071
2020-11-23 15:48:43 +00:00
Jon Bauman 6af16546a9 Bug 1675987 - No derogatory language: Remove references to "crazy" in dom module. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97654
2020-11-20 23:37:01 +00:00
Byron Campen [:bwc] 573c881bae Bug 1677759: Don't assert when stream is obsolete in trickle_cb. r=mjf
Depends on D97637

Differential Revision: https://phabricator.services.mozilla.com/D97668
2020-11-19 20:52:23 +00:00
Byron Campen [:bwc] aae97a8cc7 Bug 1677759: Mark STUN/TURN client contexts failed when we encounter a socket read/write failure for TCP. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D97637
2020-11-19 20:29:21 +00:00
Byron Campen [:bwc] 9961c02d2f Bug 1677759: Emit per-stream null candidates when the last candidate fails to init. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D97636
2020-11-19 20:29:14 +00:00
Byron Campen [:bwc] 7e9b0c9dd0 Bug 1677759: Disable TCP in these tests to ensure that UDP srflx/relay are working. r=mjf
This was what ended up finding this bug.

Differential Revision: https://phabricator.services.mozilla.com/D97635
2020-11-19 20:52:16 +00:00
Dan Minor 71228df43f Bug 1677715 - Update gn generated json files for tier-1 platforms; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D97432
2020-11-19 14:14:43 +00:00
Dan Minor 16e7bdc293 Bug 1677715 - Build libpipewire as a dependency of libwebrtc; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D97431
2020-11-19 14:14:40 +00:00
Dan Minor 07df197399 Bug 1677715 - Set write_mozbuild_vars for libwebrtc; r=ng
This sets the write_mozbuild_vars for libwebrtc to include TK_CFLAGS for
desktop_capture.

Differential Revision: https://phabricator.services.mozilla.com/D97428
2020-11-19 14:14:28 +00:00
Paul Adenot ecb3d79e26 Bug 1674283 - Add a missing track disabling in microphone processing code. r=pehrsons
Depends on D97202

Differential Revision: https://phabricator.services.mozilla.com/D97332
2020-11-18 08:52:32 +00:00
Andreas Pehrson 725671b486 Bug 1677520 - Clear the packetizer after an input stopped to avoid using its buffered data later. r=padenot
If an audio input is closed and then re-opened for the same AudioInputProcessing
listener, we end up re-using the same input packetizer. This would lead to the
data buffered in the input packetizer to be unaccounted for, inadvertently
triggering an assert.

This patch makes us clear the input packetizer when stopping an audio input such
that we have no state that can be unaccounted for.

Differential Revision: https://phabricator.services.mozilla.com/D97309
2020-11-18 09:20:56 +00:00
Karl Tomlinson dfb919d222 Bug 1213512 use UTF8 for MediaMgrError and SpeechRecognitionError message r=jib
for consistency with ErrorResult and dom::Promise, which will mean no reverse
conversion is required for rejecting Promises.

Differential Revision: https://phabricator.services.mozilla.com/D95967
2020-11-15 21:59:05 +00:00
Jean-Yves Avenard 6d2df84e41 Bug 1672072 - P8. Create decoder asynchronously. r=mattwoodrow,bryce,padenot,mjf,ipc-reviewers,mccr8
PDMFactory::CreateDecoder is changed to return a MozPromise that will contain the MediaDataDecoder once created.

This will allow to later make RemoteDecoderManager fully asynchronous and no longer require an IPC sync call to start the RDD process.

We also modify the WebrtcMediaDataDecoderCodec to never create a decoder on the main thread, which could cause deadlocks under some circumstances.

Differential Revision: https://phabricator.services.mozilla.com/D96364
2020-11-13 07:46:44 +00:00
Bogdan Tara 266d9ad46c Backed out 13 changesets (bug 1672072) for short.mp4.firstframe.html failures CLOSED TREE
Backed out changeset f093b7969e8b (bug 1672072)
Backed out changeset 28db8276ec2b (bug 1672072)
Backed out changeset ff8fe1b856b3 (bug 1672072)
Backed out changeset 091b9449c786 (bug 1672072)
Backed out changeset 89d9a12c0737 (bug 1672072)
Backed out changeset 9cb71fd4b43b (bug 1672072)
Backed out changeset 09adad7416e1 (bug 1672072)
Backed out changeset 9905650335ef (bug 1672072)
Backed out changeset 6f1d99e9c3a1 (bug 1672072)
Backed out changeset b59655b7a595 (bug 1672072)
Backed out changeset 1ef9d6d10508 (bug 1672072)
Backed out changeset fbf0b5117655 (bug 1672072)
Backed out changeset 65cd3b9de5c6 (bug 1672072)
2020-11-13 06:13:22 +02:00
Jean-Yves Avenard 7a6315ba80 Bug 1672072 - P8. Create decoder asynchronously. r=mattwoodrow,bryce,padenot,mjf,ipc-reviewers,mccr8
PDMFactory::CreateDecoder is changed to return a MozPromise that will contain the MediaDataDecoder once created.

This will allow to later make RemoteDecoderManager fully asynchronous and no longer require an IPC sync call to start the RDD process.

We also modify the WebrtcMediaDataDecoderCodec to never create a decoder on the main thread, which could cause deadlocks under some circumstances.

Differential Revision: https://phabricator.services.mozilla.com/D96364
2020-11-12 22:53:31 +00:00
Nico Grunbaum e212b3c9b4 Bug 1676289 - always allow webrtc VP9 encoder to drop frames;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D96476
2020-11-10 01:41:13 +00:00
Byron Campen [:bwc] c6ea9724b4 Bug 1672590: Move strict jitter sanity check into a separate test, and disable that test on TSan. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D95205
2020-11-09 19:35:08 +00:00
Andreas Pehrson d1cec151fa Bug 1651745 - Update logging for MediaEngineWebRTCMicrophoneSource et al. r=padenot
This patch adds identifiers to existing log messages in the mic source and
AudioInputProcessing, and adds new log messages for complete tracing of frames.

Differential Revision: https://phabricator.services.mozilla.com/D95940
2020-11-05 16:44:38 +00:00
Andreas Pehrson 7d63a92c30 Bug 1651745 - Don't buffer more than necessary in AudioInputProcessing. r=padenot
When opening a second input track, there will already be some data from its
first instantiation in the driver's scratch buffer. If we ignore this data, we
end up buffering too much in AudioInputProcessing::Pull and tripping an assert.

Differential Revision: https://phabricator.services.mozilla.com/D95939
2020-11-05 16:44:00 +00:00
Andreas Pehrson 124f2d951b Bug 1651745 - Signal AudioInputProcessing on input stream stop instead of driver start. r=padenot
Without this patch, AudioInputProcessing wouldn't be aware of an audio driver
changing to another driver, be it a system driver or an audio driver that starts
on its fallback.

It could fail an assert since neither of those new drivers would append any
input data, so AudioInputProcessing would run out of buffered data but not know
to reset the state doing the bookkeeping for this.

Differential Revision: https://phabricator.services.mozilla.com/D95938
2020-11-05 16:43:24 +00:00
Andreas Pehrson e6ea00c8f4 Bug 1651745 - Use the right thread for AudioInputProcessing::SetPassThrough and constify some ControlMessages. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D95937
2020-11-05 16:42:41 +00:00
Andreas Pehrson 3d227dbad2 Bug 1651745 - Simplify the same-iteration assertions in AudioInputProcessing. r=padenot
With a dedicated MediaTrack subclass for microphone input we can now coordinate
appending real data and pulling silence in a single place. This makes it easier
to control the amount of buffering needed, and the timing expectations around
pulling silence.

All in all, we can remove most of the state for the assertions, and the complex
logic surrounding them.

Differential Revision: https://phabricator.services.mozilla.com/D95936
2020-11-05 16:59:51 +00:00
Andreas Pehrson c463e4c3e0 Bug 1651745 - Add methods to inspect buffered amount and to clear AudioPacketizer. r=padenot
This patch also constifies members where applicable, and adds a unittest for the
new methods.

Differential Revision: https://phabricator.services.mozilla.com/D95935
2020-11-05 16:42:28 +00:00
Andreas Pehrson b9011f4a8c Bug 1651745 - Use a dedicate ProcessedMediaTrack subclass for feeding microphone capture. r=padenot
This was mainly driven by the need of querying this track for its channel count,
but it also moves us one usage away from SourceMediaTrack, which is a
longer-term goal (because of SourceMediaTrack::mMutex).

Differential Revision: https://phabricator.services.mozilla.com/D95934
2020-11-05 16:42:20 +00:00
Andreas Pehrson b8cbd64557 Bug 1651745 - Change MediaEngineSource::SetTrack to take a MediaTrack base class. r=padenot
This allows us to pass in different sub classes, which the next patch will do.

Differential Revision: https://phabricator.services.mozilla.com/D95933
2020-11-05 16:42:07 +00:00
Byron Campen [:bwc] 483e62e592 Bug 1674140: Don't crash when we cannot dispatch to STS, since that can happen during shutdown. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D95565
2020-11-02 19:22:55 +00:00
John Lin 197e95a345 Bug 1640416 - p5: run WebrtcMediaDataEncoder and the platform encoder in different thread pools/task queues. r=alwu
Some WebrtcMediaDataEncoder methods are blocking and wait for platform encoder
operations to complete. Running them in one thread pool/task queue will lead
to dead lock.

Differential Revision: https://phabricator.services.mozilla.com/D94464
2020-11-04 21:57:40 +00:00
Sylvestre Ledru fde06f6d21 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila 964cca3198 Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE 2020-11-04 10:54:36 +02:00
Sylvestre Ledru 5f29324f60 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Michael Froman 14eb66956d Bug 1674463 - allow HD simulcast stream to start a bit earlier. r=ng
Changing the min bitrate from 600k to 200k to allow the HD stream to stay
on more consistently.

Differential Revision: https://phabricator.services.mozilla.com/D95378
2020-10-30 21:44:54 +00:00
Andi-Bogdan Postelnicu 2873f0158b Bug 1671641 - Make `dom/media/webrtc` buildable outside of `unified-build` environment. r=sg
Depends on D95041

Differential Revision: https://phabricator.services.mozilla.com/D95054
2020-10-29 08:55:41 +00:00
Byron Campen [:bwc] 5a5857128e Bug 1672253: Make MediaPipeline::mLevel atomic, to avoid races. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D94157
2020-10-22 19:33:39 +00:00
Kershaw Chang a227c48e26 Bug 1673340 - Revert changes done in Bug 1668851, 1663718 and 1497249 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94808
2020-10-27 11:13:13 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bryce Seager van Dyk 3b9b491f8b Bug 1669570 - Rename MediaController thread to MediaSupervisor. r=jya
This renames the thread and identifiers derived from the thread's name. This is
to avoid ambiguity over if the thread relates to the MediaController class,
which it does not.

Differential Revision: https://phabricator.services.mozilla.com/D93806
2020-10-26 15:13:37 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Frédéric Wang 70d15af587 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat http://localhost/ and
http://*.localhost/ as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-22 07:36:15 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
smolnar b70b9de731 Backed out changeset a5a35a205a44 (bug 1220810) for causing test_dns_offline and fontface-override-descriptor-getter-setter failures. CLOSED TREE 2020-10-21 13:00:01 +03:00
Frédéric Wang 4e6e6c7714 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat `http://localhost/` and
`http://*.localhost/` as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-21 07:42:23 +00:00
Nils Ohlmeier [:drno] eae60ad94e Bug 1670856: Don't switch gathering to complete state with no streams. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D93310
2020-10-20 16:22:55 +00:00
Dan Minor f55f5accb0 Bug 1667319 - Move duplicate payload type checking to JsepCodecDescription; r=bwc
This moves most of the JsepTrack functionality for dealing with duplicate
payload types to a new EnsurePayloadTypeNotDuplicate method in
JsepCodecDescription. It also adds a virtual EnsureNoDuplicatePayloadTypes
method that checks the appropriate payload types for each codec type.

Differential Revision: https://phabricator.services.mozilla.com/D92112
2020-10-20 13:54:20 +00:00
Dan Minor 9db8c73a93 Bug 1667319 - Store RED and ULPFEC payload types as strings; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D92111
2020-10-20 13:55:04 +00:00
Narcis Beleuzu d54df1cd36 Backed out 12 changesets (bug 1626278) for mochitest leakchecks . CLOSED TREE
Backed out changeset eeed6ebfc444 (bug 1626278)
Backed out changeset cc2023032191 (bug 1626278)
Backed out changeset 15f89d2c5981 (bug 1626278)
Backed out changeset 1227d9db743d (bug 1626278)
Backed out changeset d91d9eb46983 (bug 1626278)
Backed out changeset 5861d6340ee8 (bug 1626278)
Backed out changeset 1cf19408d522 (bug 1626278)
Backed out changeset 90cf750aba51 (bug 1626278)
Backed out changeset 991bc13ae061 (bug 1626278)
Backed out changeset 8432bc08676e (bug 1626278)
Backed out changeset 5c0c76832287 (bug 1626278)
Backed out changeset 2f57fa13df7e (bug 1626278)
2020-10-19 22:58:59 +03:00
Byron Campen [:bwc] 7c4942b547 Bug 1626278: Shutdown MediaTransportHandlerSTS on profile-change-net-teardown. Also add some logging. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D93655
2020-10-19 15:13:55 +00:00