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

1646 Коммитов

Автор SHA1 Сообщение Дата
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
Sylvestre Ledru bebb9f9181 Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp
It is bringing some minor changes

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90795
2020-11-18 09:05:59 +00:00
Karl Tomlinson 7166163cad Bug 1636540 use full block size to set null buffer r=padenot
The decision not to allocate has been made for the whole block and null
buffers are not filled, so the incremental frame count is irrelevant.

Differential Revision: https://phabricator.services.mozilla.com/D97103
2020-11-16 18:57: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
Razvan Maries ad08fd8438 Backed out 2 changesets (bug 1669503) for crashing in mozilla::MP3TrackDemuxer::GetNextFrame. a=backout DONTBUILD
Backed out changeset 863ecb9b15d5 (bug 1669503)
Backed out changeset d5cbc458d318 (bug 1669503)
2020-11-06 11:28:35 +02:00
Andreas Pehrson 3b3ae5f371 Bug 1651745 - Make channel count explicit for every audio MediaTrack. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D95932
2020-11-05 16:41:45 +00:00
Paul Adenot f4d10e9a1d Bug 1669503 - Add various test cases for mp3 trimming. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94470
2020-11-04 23:20:05 +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
Andi-Bogdan Postelnicu fbd830522f Bug 1671641 - Make `dom/media/webaudio` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95040
2020-10-29 11:05:41 +00:00
Christian Holler af22893a9b Bug 1672869 - Disable WebAudio OOM test for sanitizers. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D95052
2020-10-29 09:48:09 +00:00
Corentin Arnould a528f78c44 Bug 1618225 - Use llround function instead of + 0.5 r=karlt
Depends on D84481

Differential Revision: https://phabricator.services.mozilla.com/D85583
2020-10-27 22:10:56 +00:00
Corentin Arnould ba103d1d5b Bug 1618225 - Update mochitest. r=padenot
Depends on D84402

Differential Revision: https://phabricator.services.mozilla.com/D84403
2020-10-28 13:38:37 +00:00
Corentin Arnould b491029e2c Bug 1618225 - Added DURATION to AudioBufferSourceNode. r=karlt
Handle duration, and it works on looping sources.

Differential Revision: https://phabricator.services.mozilla.com/D84402
2020-10-27 22:25:21 +00:00
Paul Adenot 0ab0dfa169 Bug 1346880 - part5 : test that a muted tab that plays audio via the Web Audio API is really muted using PulseAudio monitoring devices. r=pehrsons,alwu
Differential Revision: https://phabricator.services.mozilla.com/D93653
2020-10-26 20:39:28 +00:00
alwu f73cf84142 Bug 1346880 - part2 : consider output volume for engine when it determines the audible state. r=padenot
Currently we didn't consider the engine's output volume when we determine the audible state for the destination node, doing that would help us to more correctly deide the actual audible state for users.

Differential Revision: https://phabricator.services.mozilla.com/D94182
2020-10-24 03:31:26 +00:00
Paul Adenot 2f8d4b26f5 Bug 1346880 - part1 : keep AudioChannelAgent alive all the time for not offline context. r=padenot
The main purposes of this patch is to
- changes the way the destination node holding the audio channel agent (holding the agent all the time)

That would help us
- earlier mute the destination node in order to prevent sound leaking
- request wakelock based on the actual audible state (considering more factors)
- improve the readability of handling audible state (the old way contains some weird workaround, eg. setting the node as audible in the beginning)

Differential Revision: https://phabricator.services.mozilla.com/D94181
2020-10-24 03:31:25 +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
Bogdan Tara 6cc4afce47 Backed out 5 changesets (bug 1346880) for browser_ProcessPriorityManager.js failures CLOSED TREE
Backed out changeset 5cf07d575830 (bug 1346880)
Backed out changeset 26d44e5e139d (bug 1346880)
Backed out changeset 0d4801868a6c (bug 1346880)
Backed out changeset 5feb52637f9f (bug 1346880)
Backed out changeset 086261148f93 (bug 1346880)
2020-10-24 01:29:42 +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
Sebastian Hengst 6bfb9413b5 Bug 1672869 - disable dom/media/webaudio/test/mochitest.ini for ThreadSanitizer because new task fails very frequently. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D94646
2020-10-23 19:42:44 +00:00
Paul Adenot bafd3c8468 Bug 1346880 - Test that a muted tab that plays audio via the Web Audio API is really muted using PulseAudio monitoring devices. r=pehrsons,alwu
Differential Revision: https://phabricator.services.mozilla.com/D93653
2020-10-22 23:30:51 +00:00
alwu 61bc7c4fd3 Bug 1346880 - part2 : consider output volume for engine when it determines the audible state. r=padenot
Currently we didn't consider the engine's output volume when we determine the audible state for the destination node, doing that would help us to more correctly deide the actual audible state for users.

Differential Revision: https://phabricator.services.mozilla.com/D94182
2020-10-22 23:30:49 +00:00
Paul Adenot d9dafde29f Bug 1346880 - part1 : keep AudioChannelAgent alive all the time for not offline context. r=padenot
The main purposes of this patch is to
- changes the way the destination node holding the audio channel agent (holding the agent all the time)

That would help us
- earlier mute the destination node in order to prevent sound leaking
- request wakelock based on the actual audible state (considering more factors)
- improve the readability of handling audible state (the old way contains some weird workaround, eg. setting the node as audible in the beginning)

Differential Revision: https://phabricator.services.mozilla.com/D94181
2020-10-22 23:30:41 +00:00
Csoregi Natalia 61cc94a7f6 Backed out 5 changesets (bug 1346880) for failures on browser_ProcessPriorityManager.js. CLOSED TREE
Backed out changeset 17088afb6337 (bug 1346880)
Backed out changeset 21632db91729 (bug 1346880)
Backed out changeset 784fd3ab527d (bug 1346880)
Backed out changeset c5234d9f7e94 (bug 1346880)
Backed out changeset 60a7c181809b (bug 1346880)
2020-10-23 02:26:15 +03:00
Karl Tomlinson 11b7301934 Bug 1671538 return rejected promise from promise-returning methods when not fully active r=padenot
Depends on D94218

Differential Revision: https://phabricator.services.mozilla.com/D94219
2020-10-22 12:06:54 +00:00
alwu f47bb106c3 Bug 1670841 - part3 : add a test to check tab's suspend state. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D93607
2020-10-20 13:21:17 +00:00
Paul Adenot 2e01d0a8fd Bug 1346880 - Test that a muted tab that plays audio via the Web Audio API is really muted using PulseAudio monitoring devices. r=pehrsons,alwu
Differential Revision: https://phabricator.services.mozilla.com/D93653
2020-10-20 20:44:45 +00:00
alwu 87a5ca1c3a Bug 1346880 - part2 : consider output volume for engine when it determines the audible state. r=padenot
Currently we didn't consider the engine's output volume when we determine the audible state for the destination node, doing that would help us to more correctly deide the actual audible state for users.

Differential Revision: https://phabricator.services.mozilla.com/D94182
2020-10-22 12:26:51 +00:00
Paul Adenot 9f13a42a9f Bug 1346880 - part1 : keep AudioChannelAgent alive all the time for not offline context. r=padenot
The main purposes of this patch is to
- changes the way the destination node holding the audio channel agent (holding the agent all the time)

That would help us
- earlier mute the destination node in order to prevent sound leaking
- request wakelock based on the actual audible state (considering more factors)
- improve the readability of handling audible state (the old way contains some weird workaround, eg. setting the node as audible in the beginning)

Differential Revision: https://phabricator.services.mozilla.com/D94181
2020-10-22 16:58:19 +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
Jean-Yves Avenard f86cc19337 Bug 1595994 - P20. Skip empty audio packet. r=padenot
Following bug 1566389, an AudioBuffer can be created only to be then truncated if we need to trim it back to a size of 0.

When the resulting AudioBuffer is transferred over IPC it will be rebuilt, and be null then making EnsureAudioBuffer fail.

Depends on D92345

Differential Revision: https://phabricator.services.mozilla.com/D92714
2020-10-20 23:30:34 +00:00
smolnar eba1c00fcf Backed out 2 changesets (bug 1346880) for causing audio failures. CLOSED TREE
Backed out changeset 7c0018c583b5 (bug 1346880)
Backed out changeset 4e7a614b30f8 (bug 1346880)
2020-10-19 13:07:51 +03:00
Paul Adenot 307c6e1733 Bug 1346880 - Test that a muted tab that plays audio via the Web Audio API is really muted using PulseAudio monitoring devices. r=pehrsons,alwu
Differential Revision: https://phabricator.services.mozilla.com/D93653
2020-10-19 08:45:04 +00:00
Paul Adenot fb3387d796 Bug 1346880 - Always initialize an AudioChannelAgent when initializing an AudioContext. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D92644
2020-10-19 08:45:04 +00:00
Paul Adenot c8239595d2 Bug 1566389 - Test that various mp3 files have exactly the correct duration. r=jya
Depends on D91773

Differential Revision: https://phabricator.services.mozilla.com/D91774
2020-10-05 15:43:50 +00:00
Noemi Erli d5e42c4c4e Backed out 7 changesets (bug 1566389) for causing bustages in FFmpegAudioDecoder.cpp
Backed out changeset 748e0d854d86 (bug 1566389)
Backed out changeset dd68ca2ed329 (bug 1566389)
Backed out changeset 820744dbc7d1 (bug 1566389)
Backed out changeset 89378e240d00 (bug 1566389)
Backed out changeset 6d36dae2ca8f (bug 1566389)
Backed out changeset ec4e0024ab8d (bug 1566389)
Backed out changeset 0fe64b836e24 (bug 1566389)
2020-10-05 18:23:37 +03:00
Paul Adenot efda27b066 Bug 1566389 - Test that various mp3 files have exactly the correct duration. r=jya
Depends on D91773

Differential Revision: https://phabricator.services.mozilla.com/D91774
2020-10-05 13:12:35 +00:00
Michael Froman 98d5678d09 Bug 1665713 - pt1 - move dom/media/tests/mochitest to dom/media/webrtc/tests/mochitests. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D90614
2020-10-02 16:30:58 +00:00
Butkovits Atila 4f41db1dfa Backed out 7 changesets (bug 1566389) for bustage at FFmpegAudioDecoder.cpp. CLOSED TREE
Backed out changeset 116644341a76 (bug 1566389)
Backed out changeset a3bedd49288d (bug 1566389)
Backed out changeset 8db398c91c5a (bug 1566389)
Backed out changeset 498a7c9cbc5f (bug 1566389)
Backed out changeset 19a04bdb5344 (bug 1566389)
Backed out changeset 8390ea4677a1 (bug 1566389)
Backed out changeset 085b748cfbaf (bug 1566389)
2020-10-01 22:43:04 +03:00
Paul Adenot c019efba43 Bug 1566389 - Test that various mp3 files have exactly the correct duration. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D91774
2020-10-01 13:58:18 +00:00
Razvan Maries 887634a649 Backed out 3 changesets (bug 1665713) for perma failures on test_peerConnection_capturedVideo.html. CLOSED TREE
Backed out changeset 296d5facd7bd (bug 1665713)
Backed out changeset 770d63754715 (bug 1665713)
Backed out changeset 433d8f92b482 (bug 1665713)
2020-09-25 02:58:57 +03:00
Michael Froman 8bece4651b Bug 1665713 - pt1 - move dom/media/tests/mochitest to dom/media/webrtc/tests/mochitests. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D90614
2020-09-24 21:10:07 +00:00
Razvan Maries 717d9a23ba Backed out 2 changesets (bug 1665713) for Lint failure on NetworkPreparationChromeScript.js. CLOSED TREE
Backed out changeset e926364f5d4f (bug 1665713)
Backed out changeset ad03f6f54321 (bug 1665713)
2020-09-24 22:59:53 +03:00