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

19354 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot b3ed73049d Bug 1678352 - Don't GoFaster in AudioInputTrackDisabling. r=pehrsons
In retrospect this is too dependent on scheduling. We can and should do
something better. This will be easier to implement once I implement real offline
support for suspend/resume for offline MediaTrackGraph for OfflineAudioContext I
think.

Differential Revision: https://phabricator.services.mozilla.com/D123730
2021-08-30 09:03:42 +00:00
Nils Ohlmeier 797c9f2e3b Bug 1727196: stop making ssrc-group depend on stream-id. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D123672
2021-08-29 17:53:12 +00:00
Bryce Seager van Dyk bbee1b1410 Bug 1726272 - Remove SetupEMEPref from EME tests. r=alwu
The SetupEMEPref helper is no longer needed. This patch removes it from tests.
This patch does some minimal restyling and simplifying of the tests following
removal, but largely does not change them. There should be *no* logic changed in
the tests following the patch. They should run as before.

Differential Revision: https://phabricator.services.mozilla.com/D123630
2021-08-26 19:55:33 +00:00
Bryce Seager van Dyk 815e608fd6 Bug 1726024 - Use MustGetShutdownBarrier in SpeechRecognition. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123006
2021-08-26 18:37:04 +00:00
Bryce Seager van Dyk 45cf63443e Bug 1726024 - Use MustGetShutdownBarrier in CamerasParent. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D123005
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk 7ced8e76ab Bug 1726024 - Handle failure to get shutdown barrier in MediaTrackGraph. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123004
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk dfb5047d9c Bug 1726024 - Handle failure to get shutdown barrier in MediaRecorder. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123003
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk eb55d7f7d1 Bug 1726024 - Use MustGetShutdownBarrier in MediaManager. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D123002
2021-08-26 18:37:02 +00:00
Bryce Seager van Dyk 105ae13756 Bug 1726024 - Handle failure to get async shutdown service in GetShutdownBarrier. r=jib
We will fail to get the service if this function is called and we're already in
shutdown. Call sites for this function do not guard against doing so (and I'm
not sure there's a nice way to check). So we need to handle failure in the
function and have call sites check if this failed.

An alternative function is added, MustGetShutdownBarrier, which maintains the
original behaviour. Callers that still wish to crash on failure can instead opt
to use this function.

Differential Revision: https://phabricator.services.mozilla.com/D123001
2021-08-26 18:37:02 +00:00
Christian Holler 4491b90615 Bug 1725356 - Check MediaTransportHandlerSTS::mInitPromise before use. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D122438
2021-08-26 10:54:01 +00:00
Paul Adenot 939bc4005f Bug 1724997 - Add a marker for AudioStream underruns. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123217
2021-08-26 09:15:41 +00:00
Paul Adenot a6a9c6e85c Bug 1724997 - Remove the supporting code for using the async logger with MOZ_LOG. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122741
2021-08-26 09:15:41 +00:00
Paul Adenot 0d92e0b339 Bug 1724997 - Put the AudioWorkletProcessor's name in the marker when calling its process method. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122740
2021-08-26 09:15:40 +00:00
Paul Adenot cd9af3411c Bug 1724997 - Add tracing markers for more MediaTrackGraph events. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122739
2021-08-26 09:15:40 +00:00
Paul Adenot 145a722aac Bug 1724997 - Support a comment in the AsyncLogger. r=pehrsons
This is going to be used to distinguish markers: different instances of the same
class, an AudioWorklet's name, etc.

Differential Revision: https://phabricator.services.mozilla.com/D122738
2021-08-26 09:15:39 +00:00
Paul Adenot fa3557911c Bug 1724997 - Manually choose a tag for tracing markers. r=pehrsons
It would be nice to be able to auto-generate a string, but on Windows we only
have a very long name with all the qualifiers, and it's unreadable in practice
in the marker view.

This allows having names that are more human friendly and shorter. Generally
it's going to be the name of the function though.

Differential Revision: https://phabricator.services.mozilla.com/D122737
2021-08-26 09:15:39 +00:00
Paul Adenot 4721b46f61 Bug 1724997 - Fix a typo in a constant's name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122736
2021-08-26 09:15:39 +00:00
Paul Adenot 6da8e045b1 Bug 1724997 - Add profiler markers on AudioWorklet.addModule. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122735
2021-08-26 09:15:38 +00:00
Paul Adenot 5a3c805491 Bug 1724997 - Add markers in AudioWorklet related methods. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122733
2021-08-26 09:15:37 +00:00
Paul Adenot d0c7314f1c Bug 1724997 - Remove old macros that are unused. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122732
2021-08-26 09:15:37 +00:00
Karl Tomlinson e0a129f45d Bug 1705289 Remove spurious mozMediaSource media track constraint from tests r=jib
This constraint does not exist.
https://hg.mozilla.org/mozilla-central/rev/49e5c7d46ea0cd9515d292131259ac539652ce2b#l6.25

Depends on D123560

Differential Revision: https://phabricator.services.mozilla.com/D123561
2021-08-26 08:10:18 +00:00
Karl Tomlinson 0fbca822af Bug 1705289 use more restrictive variable declarations r=jib
No behavior changes.

Depends on D123559

Differential Revision: https://phabricator.services.mozilla.com/D123560
2021-08-26 08:10:17 +00:00
Karl Tomlinson 2c6d6b1e44 Bug 1705289 loosen message on failure to meet getDisplayMedia() user activation requirement r=jib
This never needed to be called directly from a handler, though a
(potentially async) call should at least be triggered by a handler.
https://hg.mozilla.org/mozilla-central/rev/4d512fa7b071#l1.19

Depends on D122193

Differential Revision: https://phabricator.services.mozilla.com/D123559
2021-08-26 08:10:17 +00:00
Andreea Pavel e52159d432 Bug 1634684 - disable test_peerConnection_verifyVideoAfterRenegotiation.html on linux64 debug for frequent failures r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123684
2021-08-25 22:30:53 +00:00
Matt Woodrow b8eef01e83 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
Bryce Seager van Dyk 929e903893 Bug 1726202 - Add cbcs clear key test cases. r=jolin
Add several test cases to cover our cbcs path. These test a number of different
patterns. These patterns are
- 1:9, 5:5, 10:0. These are more conventional patterns.
- 7:7, 9:8. These are not conventional. Both go against the spec by not summing
  to 10. This tests we can appropriately handle unconventional cases.

Note that the spec says patterns should only be applied to video tracks. So in
all cases the audio actually use 0:0 (full encryption). So these test cases also
cover the 0:0 case.

Differential Revision: https://phabricator.services.mozilla.com/D123498
2021-08-25 20:41:43 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Andi-Bogdan Postelnicu eeb2d05d90 Bug 1725145 - add header for getpid() for win platform. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D123545
2021-08-25 10:46:15 +00:00
criss bccf559d4b Backed out changeset 8868fe82dafd (bug 1708403) for causing failures on test_drawSnapshot_fixed.html. CLOSED TREE 2021-08-25 04:08:24 +03:00
Matt Woodrow bb02f9029f Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 00:21:01 +00:00
Karl Tomlinson d86987c6d7 Bug 1705289 require user gesture for screen capture through non-standard mediaSource in getUserMedia() r=jib
for consistency with getDisplayMedia().

System callers are trusted to be excluded from the requirement.
The exclusion may not be strictly necessary for capture previews, but removes
any doubt and simplifies testing.

Differential Revision: https://phabricator.services.mozilla.com/D122193
2021-08-24 23:41:18 +00:00
Karl Tomlinson faf0659b08 Bug 1705289 revert from sticky to transient activation requirement for getDisplayMedia() r=jib
Backed out changeset 7a50bf09d726

There was no known value in relaxing the activation constraint because it
didn't resolve the use case that was thought to have regressed, but apparently
didn't.  https://bugzilla.mozilla.org/show_bug.cgi?id=1704278#c24

This restores specified behavior, which is similar to Safari.
https://github.com/w3c/mediacapture-screen-share/issues/167#issuecomment-821068685

Differential Revision: https://phabricator.services.mozilla.com/D122192
2021-08-24 23:41:17 +00:00
Bryce Seager van Dyk 22375f4be4 Bug 1725704 - Add test to cover CDM protection query. r=alwu
This adds coverage via the clearkey CDM to ensure that the output protection
query is working as intended. These tests ensure that the output protection
machinery recognizes when browsers windows are being captured, and this is
reflected by the clear key CDM changing key status on a test key id.

Two cases are covered:
1. Media playback is started, then during media playback a screen capture is
started and stopped. The test checks that we set restricted key status while
capture is active, and stop doing so once the capture stops.
2. Start a screen capture then start media playback, then stop capture while
playback is still active. This is similar to the first case, but the media
should start in a restricted state, as capture is ongoing when playback starts.

Differential Revision: https://phabricator.services.mozilla.com/D122784
2021-08-24 19:32:01 +00:00
Paul Adenot a7b4d10bbb Bug 1724994 - Promote GraphRunner to higher priority on Android. r=agi,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123346
2021-08-24 15:13:31 +00:00
Paul Adenot 3f7ea18b28 Bug 1727311 - Fix four clang-tidy warnings in GraphRunner.cpp. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123443
2021-08-24 14:07:17 +00:00
Gerald Squelart 29f190e9e6 Bug 1722261 - Use AUTO_PROFILER_REGISTER_THREAD where possible - r=canaltinova
With the new ThreadRegistration classes, it becomes more important to properly balance registrations with unregistrations. Though mismatches are safely handled when they happen, in particular missing unregistrations can lead to leaks that make tests fail.

This patch changes `PROFILER_REGISTER_THREAD` in TaskController.cpp to `AUTO_PROFILER_REGISTER_THREAD`, to ensure that TaskController threads get unregistered when they're finished.

In AsyncLogger.h, a pair of `PROFILER_REGISTER_THREAD` and `PROFILER_UNREGISTER_THREAD` is converted to a single `AUTO_PROFILER_REGISTER_THREAD`. This is equivalent, but the latter is safer, in case the code in-between later changes to include early breaks or returns.

Differential Revision: https://phabricator.services.mozilla.com/D123228
2021-08-24 04:47:12 +00:00
Kagami Sascha Rosylight eddf271c1f Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D123163
2021-08-23 10:54:11 +00:00
Iulian Moraru a16afaadfe Backed out changeset d21b3f88a2b4 (bug 1726648) for causing build bustages. CLOSED TREE 2021-08-23 04:12:02 +03:00
Kagami Sascha Rosylight 0c5086660f Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D123163
2021-08-23 00:35:40 +00:00
Andi-Bogdan Postelnicu 75ed803f7c Bug 1725145 - fixes for linking in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122344
2021-08-22 10:21:56 +00:00
Andi-Bogdan Postelnicu 250fa0d795 Bug 1725145 - header files fixes in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122343
2021-08-22 10:21:55 +00:00
Andi-Bogdan Postelnicu c08f1b99c2 Bug 1725137 - Fix gtest suite from dom to be buildable outside unified. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D122338
2021-08-22 10:21:54 +00:00
Jeff Gilbert ef6aad4afa Bug 1718621 - Simplify color_quads gbrp expectations. r=gfx-reviewers,lsalzman
This seems to fix a perma-orange for linux-ccov R2 also.

Differential Revision: https://phabricator.services.mozilla.com/D122408
2021-08-19 23:24:06 +00:00
Cosmin Sabou 84969e5caa Backed out 12 changesets (bug 1665776) for causing mda failures. CLOSED TREE
Backed out changeset 1093b571cd9e (bug 1665776)
Backed out changeset 97401a43356f (bug 1665776)
Backed out changeset e4d1fab7ed91 (bug 1665776)
Backed out changeset eef564e4e8ce (bug 1665776)
Backed out changeset b436ced5a9c2 (bug 1665776)
Backed out changeset 231057bbccc6 (bug 1665776)
Backed out changeset 918d100709b3 (bug 1665776)
Backed out changeset 63a6fb712a7c (bug 1665776)
Backed out changeset 2f9e721a4adb (bug 1665776)
Backed out changeset f65349f581ac (bug 1665776)
Backed out changeset eb289c096758 (bug 1665776)
Backed out changeset 077b96856a67 (bug 1665776)
2021-08-20 01:55:26 +03:00
John Lin fa94901b3e Bug 1665776 - p12: For WebRTC test, disable platform encoder for unsupported resolutions. r=pehrsons
Depends on D122747

Differential Revision: https://phabricator.services.mozilla.com/D122748
2021-08-19 19:01:22 +00:00
John Lin 3a5cb275eb Bug 1665776 - p11: For WebRTC test, enable platform decoder for H.264 on non-Linux systems. r=pehrsons
Depends on D121027

Differential Revision: https://phabricator.services.mozilla.com/D122747
2021-08-19 19:01:22 +00:00
John Lin b5871f0cc6 Bug 1665776 - p9: enable HW VPx encoder in webrtc glue. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121026
2021-08-19 19:01:21 +00:00
John Lin 9612231686 Bug 1665776 - p8: add VPx test cases. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D121025
2021-08-19 19:01:21 +00:00
John Lin 7998e7b941 Bug 1665776 - p7: make test suite codec-agnostic and group related tests into same test cases. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D121024
2021-08-19 19:01:20 +00:00
John Lin b597a55a60 Bug 1665776 - p6: implement VPx support in WMF encoder. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D121023
2021-08-19 19:01:20 +00:00