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

1726 Коммитов

Автор SHA1 Сообщение Дата
Jan-Ivar Bruaroey c27b3d3a89 Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 22:18:04 +00:00
Bogdan Tara 30eb420e4a Backed out 14 changesets (bug 1652884) for test_peerConnection_trackDisabling.html failures CLOSED TREE
Backed out changeset f83951453e94 (bug 1652884)
Backed out changeset fc697986d538 (bug 1652884)
Backed out changeset 20a10128b5e1 (bug 1652884)
Backed out changeset c99c32323c76 (bug 1652884)
Backed out changeset 991e8975f03d (bug 1652884)
Backed out changeset 9e9511e32cdd (bug 1652884)
Backed out changeset 605c1ac3081a (bug 1652884)
Backed out changeset dd6edf636659 (bug 1652884)
Backed out changeset 74a2f5a9eea2 (bug 1652884)
Backed out changeset b9f419aed12d (bug 1652884)
Backed out changeset 84e82e25929f (bug 1652884)
Backed out changeset 876dbad27af5 (bug 1652884)
Backed out changeset 8f60e3af2a19 (bug 1652884)
Backed out changeset de7537bda499 (bug 1652884)
2020-08-20 01:13:29 +03:00
Jan-Ivar Bruaroey 9aec15aa0d Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 19:30:50 +00:00
Bogdan Tara fd6c09249f Backed out 14 changesets (bug 1652884) for VideoFrameConverter related failures CLOSED TREE
Backed out changeset 28c4e8c373f0 (bug 1652884)
Backed out changeset 658ba8f39abe (bug 1652884)
Backed out changeset 8e67fe040e4a (bug 1652884)
Backed out changeset 6f5833203763 (bug 1652884)
Backed out changeset 569ff85dfc2e (bug 1652884)
Backed out changeset eaa171643447 (bug 1652884)
Backed out changeset 6b37b60b6662 (bug 1652884)
Backed out changeset 438cce7456fb (bug 1652884)
Backed out changeset e6ed13952b67 (bug 1652884)
Backed out changeset e0b1266231bf (bug 1652884)
Backed out changeset 32f4aae2b5fe (bug 1652884)
Backed out changeset 76b4abccd61b (bug 1652884)
Backed out changeset 9010365ffa66 (bug 1652884)
Backed out changeset 763f39eb5c13 (bug 1652884)
2020-08-19 22:21:31 +03:00
Jan-Ivar Bruaroey f5e002a857 Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 14:03:32 +00:00
Karl Tomlinson 856bfb0426 Bug 1659201 create AudioParamMap on demand for AudioWorkletNode#parameters r=pehrsons
When constructing a JS object derived from AudioWorkletNode, the reflector
should be created using the prototype for the derived class.
https://searchfox.org/mozilla-central/rev/2f9eacd9d3d995c937b4251a5557d95d494c9be1/dom/bindings/BindingUtils.h#3078-3081
The reflector is typically created with the correct prototype after
AudioWorkletNode::Constructor() returns.

AudioParamMap_Binding::MaplikeHelpers::Set() calls GetOrCreateDOMReflector()
to get the JS reflector for the AudioParamMap, which obtains the associated
global from the reflector on the AudioWorkletNode parent.
https://searchfox.org/mozilla-central/rev/a315a1a0f09550e23e4590a77e74f36543315da3/dom/bindings/BindingUtils.h#1591-1599
While this was done during the AudioWorkletNode::Constructor(), the
AudioWorkletNode reflector did not yet exist and so was created on-demand
without an explicit prototype, which resulted in the base class prototype
being used incorrectly.
https://searchfox.org/mozilla-central/rev/a315a1a0f09550e23e4590a77e74f36543315da3/dom/bindings/BindingUtils.h#1550

Delaying set-up of the AudioParamMap provides that the AudioWorkletNode
construction is complete and has a correct reflector before AudioParamMap
usage attempts to get the parent reflector.

Differential Revision: https://phabricator.services.mozilla.com/D87554
2020-08-19 08:27:01 +00:00
Karl Tomlinson cf2e7cf2f1 Bug 1659201 move CreateAudioParam() outparam to return value r=pehrsons
AudioWorkletNode will soon not need the return value.

Differential Revision: https://phabricator.services.mozilla.com/D87553
2020-08-19 08:20:36 +00:00
Karl Tomlinson 2043b8623a Bug 1659201 store AudioParam names as nsString r=pehrsons
so as to clarify pointer safety and to take advantage of nsString shared
buffer optimizations.

Differential Revision: https://phabricator.services.mozilla.com/D87552
2020-08-19 08:16:39 +00:00
Jean-Yves Avenard 5be22726b0 Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin
It will now be up to the caller to determine where the decoder is going to run. This allows to simplify the audio decoders so that they can run synchronously and be wrapped in a Wasm sandbox (which doesn't support multi-threading)

The structure guarantees that all MediaDataDecoder methods are called on the same thread it's been initialised.

To achieve this, wherever a MediaDataDecoder was created, we wrap it in a MediaDataDecoderProxy that ensures that all methods are running on the given thread.

We keep the behaviour of all methods in all MediaDataDecoder to assert that they are running on the expected thread for diagnostic purposes. It could go in the future.

Video decoders that could block excessingly the thread on which they are called are made to run on their own task queue.
The Apple decoder is mostly entirely asynchronous, with the exception of the drain method which could block.
We exclude the android and omx decoders are the framework they use is 100% asynchronous and already operate on another thread.

Differential Revision: https://phabricator.services.mozilla.com/D86929
2020-08-17 23:52:21 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Karl Tomlinson 5195905845 Bug 1634200 don't create a new global when the Worklet is finished r=padenot
When the worklet has already received the notification to shut down, there
will be no further notfication to release another global.

Differential Revision: https://phabricator.services.mozilla.com/D85975
2020-08-06 01:06:03 +00:00
Karl Tomlinson c3dd745324 Bug 1655544 use associated AudioWorkletNode for AudioParamMap parent object r=padenot
so that the AudioParamMap has the same associated global as its node.

Differential Revision: https://phabricator.services.mozilla.com/D85963
2020-08-05 14:35:33 +00:00
Simon Giesecke 96f3e7e019 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Noemi Erli 381fca9783 Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Simon Giesecke 032d2ac9d3 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +00:00
Jean-Yves Avenard 749a1d0d03 Bug 1653638 - P3. Remove no longer necessary workaround. r=mjf,karlt
C++17 guarantees that "In a function-call expression, the expression that names the function is sequenced before every argument expression and every default argument."

The order of operations in the expression s now guaranteed, we can remove the comment and the workaround.

Differential Revision: https://phabricator.services.mozilla.com/D85676
2020-08-03 08:01:12 +00:00
Jean-Yves Avenard f181df10f9 Bug 1653638 - P2. Use a Controller TaskQueue for running webaudio tasks. r=mjf
We can't create a media decoder on a decoder taskqueue, as this could lead to deadlocks should a decoder attempt to dispatch a synchronous runnable.

Differential Revision: https://phabricator.services.mozilla.com/D85544
2020-08-03 08:01:09 +00:00
Sylvestre Ledru 843f943758 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D85678
2020-08-02 15:29:15 +00:00
Paul Adenot eae12679e7 Bug 1656063 - Only load function pointer in FFTBlock once. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D85389
2020-07-31 12:29:01 +00:00
Paul Adenot d76eb1b1ab Bug 1656067 - r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D85390
2020-07-31 12:24:32 +00:00
Jeff Walden e8f3f74ef6 Bug 1656411 - Move typed array, ArrayBuffer, and dataview-related functions out of jsfriendapi.h to two new headers. r=mgaudet,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D85524
2020-07-31 16:37:27 +00:00
Paul Adenot f9ba0d14a5 Bug 1614036 - Remove more error handling code that is now useless, on a CLOSED TREE.
Differential Revision: https://phabricator.services.mozilla.com/D85596
2020-07-31 14:52:57 +00:00
Coroiu Cristina f0445806f4 Backed out 2 changesets (bug 1614009) for build bustage at dom/media/webaudio/AudioBuffer.cpp on a CLOSED TREE
Backed out changeset 2bd694126445 (bug 1614009)
Backed out changeset 7c315d9e2030 (bug 1614009)
2020-07-31 17:15:14 +03:00
Corentin Arnould 906d086baa Bug 1614036 - Added mochitest. r=padenot
Added file that returns InvalidContent when decoded.

Differential Revision: https://phabricator.services.mozilla.com/D84490
2020-07-31 13:41:55 +00:00
Corentin Arnould 5b671914ae Bug 1614036 - Removed console logging and set unlocalized messages r=padenot
Changed error message to unlocalized in the callback and in the promise rejection in case an error occurs in audio decoding.

Also deleted localized strings and NoAudio bacause it is not used.

Differential Revision: https://phabricator.services.mozilla.com/D81337
2020-07-30 16:29:08 +00:00
Paul Adenot 8494449709 Bug 1655518 - Make two bool in ReverbConvolver atomic. r=karlt
The code structure is strange. This will be enough to make this safe without
fear of changing the behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D85149
2020-07-29 00:05:26 +00:00
Corentin Arnould a5f9f4b9ce Bug 1613833 - Updated mochitest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84666
2020-07-31 13:36:53 +00:00
Corentin Arnould 00a172df05 Bug 1613833 - Changed length condition to suit the spec. r=padenot
Throws are now centralized too.

Differential Revision: https://phabricator.services.mozilla.com/D84665
2020-07-30 16:01:40 +00:00
Corentin Arnould 8cd9d82f7e Bug 1614009 - Updated mochitest. r=padenot
Depends on D84321

Differential Revision: https://phabricator.services.mozilla.com/D84322
2020-07-28 11:45:02 +00:00
Corentin Arnould 23c463b2b7 Bug 1614009 - Removed non-spec exception throwing on CopyToChannel. r=padenot,webidl,smaug
Also removed those in CopyFromChannel and changed parameters' name to fit the spec.

Differential Revision: https://phabricator.services.mozilla.com/D84321
2020-07-30 23:27:36 +00:00
Corentin Arnould 31ab26890e Bug 1614019 - Added mochitest for negative sample rate. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D83925
2020-07-30 15:54:55 +00:00
Corentin Arnould 23717c88b4 Bug 1614019 - Removed negative value from the valid range r=padenot,webidl,smaug
The condition in the if is changed because the minus operation could overflow.
The declaration of sampleRate has been moved to its next use because its first value was never used.

Differential Revision: https://phabricator.services.mozilla.com/D81550
2020-07-30 23:28:34 +00:00
Emilio Cobos Álvarez ff61891772 Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp
Having two classes in the inheritance chain inherit from SupportsWeakPtr
now won't compile, but you can use WeakPtr<Derived> when any base class
inherits from SupportsWeakPtr.

Differential Revision: https://phabricator.services.mozilla.com/D83674
2020-07-23 14:51:46 +00:00
Razvan Maries b34b73644f Bug 1650930 - Disabled test_bug1027864.html. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82880
2020-07-09 11:49:32 +00:00
Dan Minor d8e1e4a499 Bug 1650945 - Fix error message in IIRFilterNode::Create; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D82716
2020-07-08 14:05:33 +00:00
Paul Adenot bea4d42fdf Bug 1646743 - Don't attempt to get the output latency from the graph after and AudioContext has been shutdown. r=karlt
Depends on D80696

Differential Revision: https://phabricator.services.mozilla.com/D80836
2020-06-29 10:37:14 +00:00
Corentin Arnould a4fc56119e Bug 1650030 - Revert changes for bug 1618225. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D82197
2020-07-03 14:27:59 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Karl Tomlinson a235906df6 Bug 1647750 error out when AudioWorkletProcessor#process() detaches output Float32Array r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D80804
2020-06-25 02:09:39 +00:00
Karl Tomlinson 7fd5763b3a Bug 1647750 use MakeScopeExit() to avoid repetition of error paths r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D80803
2020-06-24 09:29:38 +00:00
Corentin Arnould 76419cd0d4 Bug 1618225 - Added wpt test for loop with duration r=padenot
Silenced the mochitest

Differential Revision: https://phabricator.services.mozilla.com/D79875
2020-06-24 12:00:18 +00:00
Corentin Arnould 2ef567c825 Bug 1618225 - Updated mochitest for loop with duration r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D79874
2020-06-24 12:00:11 +00:00
Corentin Arnould d3cc80aa8c Bug 1618225 - Set stop time when using loop with duration. r=padenot
The AudioBufferSourceNode can now be looping and stop after duration.

Differential Revision: https://phabricator.services.mozilla.com/D79873
2020-06-24 11:59:53 +00:00
Jean-Yves Avenard 87438519f0 Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Corentin Arnould 5d8eb750cd Bug 1615130 - Fix uninitialized data. r=padenot
Values are set to 0 by default rather than uninitialized. It is useful when JSContext is null.

Differential Revision: https://phabricator.services.mozilla.com/D79986
2020-06-22 10:21:40 +00:00
Karl Tomlinson 209a34c2b7 Bug 1642849 shut down MediaTrackGraph from AudioContext when window will be destroyed r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D74814
2020-06-12 03:53:34 +00:00
Karl Tomlinson f426576017 Bug 1644647 reject promises for Close AudioContextOperations run after forced graph shutdown r=padenot
and re-enable OnStateChanged() transition assertions.

Rejecting the promise avoids having AudioContextOperation promises resolve out
of order when AudioContextOperationControlMessage::RunDuringShutdown()
resolves a Close operation shortly after Run() for a previous operation has
queued its update via mUpdateRunnables.  mUpdateRunnables are run after
controlMessagesToRunDuringShutdown.
https://searchfox.org/mozilla-central/rev/ea7f70dac1c5fd18400f6d2a92679777d4b21492/dom/media/MediaTrackGraph.cpp#1793,1803

AudioContext::Shutdown() takes care of rejecting JS Promises when the window
is being destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D79055
2020-06-12 02:38:35 +00:00
Karl Tomlinson 632dfeb6cc Bug 1638243 reject promises for Resume AudioContextOperations that have not run by graph shutdown r=padenot
The promises are rejected before shutting down threads so that they don't need
to wait for nested event loops to exit.

Differential Revision: https://phabricator.services.mozilla.com/D76807
2020-06-12 01:12:56 +00:00
Karl Tomlinson 9f36b6849d Bug 1644647 use AudioContextOperation::Resume to start realtime AudioNodeTracks r=padenot
This provides that a new track does not start processing before existing
tracks in the AudioContext, which may not be resumed until an
AudioCallbackDriver is running.

Depends on D79048

Differential Revision: https://phabricator.services.mozilla.com/D79049
2020-06-12 00:50:34 +00:00
Karl Tomlinson 8ebfa90f03 Bug 1644647 use the same mechanism for the first suspended->running transition as for others r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D79048
2020-06-11 08:51:17 +00:00
Karl Tomlinson 32c6cac7db Bug 1644647 - Bug 1285290 use strong pointers for tracks in ApplyAudioContextOperation() r=padenot
This will be helpful when delaying resumption of tracks until there is an AudioCallbackDriver.

The memory for the array is also transferred to the callee to save an allocation.

Differential Revision: https://phabricator.services.mozilla.com/D76801
2020-06-12 01:02:18 +00:00
Simon Giesecke 82dc9b2271 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Butkovits Atila e3dce68834 Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Simon Giesecke d419f0ff08 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 05:49:28 +00:00
Simon Giesecke ca2d0aaa68 Bug 1644403 - Fix inconsistent uses of CopyableAutoTArray and Clone. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78893
2020-06-09 14:27:20 +00:00
Simon Giesecke ebbc7ae838 Bug 1642989 - Use RemoveLastElements instead of RemoveElementsAt where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78049
2020-06-08 08:50:15 +00:00
Karl Tomlinson 4e78ffdefb Bug 1641161 - Bug 1285290 alias move() to std::move() in MediaTrackGraph.cpp and AudioContext.cpp r=padenot
Depends on D76799

Differential Revision: https://phabricator.services.mozilla.com/D76800
2020-05-27 08:36:18 +00:00
Karl Tomlinson cd4aaf8433 Bug 1641161 - Bug 1285290 don't add destroyed tracks to graph from Increment/DecrementSuspendCount r=padenot
Tracks remove themselves from the graph after DestroyImpl() and so should not
be added again after this.

These methods are now invoked only on the MediaTrack removing the possibility
of calling the wrong method.

Depends on D76797

Differential Revision: https://phabricator.services.mozilla.com/D76798
2020-05-27 08:34:13 +00:00
Masatoshi Kimura 9c7a29b17e Bug 1531851 - Make WebAudio GC tests more reliable. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D76590
2020-05-25 18:04:58 +00:00
Paul Adenot 781a32b68c Bug 1607781 - Consistently use a fixed sample-rate when resisting fingerprinting. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D75937
2020-05-19 12:50:30 +00:00
Karl Tomlinson dc85ea650c Bug 1625372 permit ForceShutDown() on a realtime graph r=padenot
Depends on D74812

Differential Revision: https://phabricator.services.mozilla.com/D74813
2020-05-15 08:22:31 +00:00
Karl Tomlinson e8ab6c7193 Bug 1625372 remove unnecessary DestroyNonRealtimeInstance() call from AudioDestinationNode::DestroyMediaTrack() r=padenot
DestroyMediaTrack() is called only on Unlink or destruction of the AudioDestinationNode.
If there are no references to the AudioDestinationNode, then the graph's last stream
will be destroyed and the graph will shut down itself.

Differential Revision: https://phabricator.services.mozilla.com/D74812
2020-05-13 10:13:19 +00:00
Karl Tomlinson 0a1151e126 Bug 1625372 request interrupt of AudioWorklet JS on force shutdown r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D71915
2020-05-15 08:24:06 +00:00
alwu 3581879481 Bug 1509933 - part3 : use the new pref in tests. r=padenot
This patch will do :
- replace the old pref with the new pref

The advantage of doing so :
- to ensure those tests can still use the correct blocking autoplay policy

Differential Revision: https://phabricator.services.mozilla.com/D73973
2020-05-15 02:51:18 +00:00
Dorel Luca 68c900462b Backed out 3 changesets (bug 1509933) for Linting failure in gecko/mobile/android/app/mobile.js. CLOSED TREE
Backed out changeset c15ecdcd5d13 (bug 1509933)
Backed out changeset 951ea1d0f42a (bug 1509933)
Backed out changeset 3abb24d6dfc9 (bug 1509933)
2020-05-15 05:02:07 +03:00
alwu 1c6be41aa9 Bug 1509933 - part3 : use the new pref in tests. r=padenot
This patch will do :
- replace the old pref with the new pref

The advantage of doing so :
- to ensure those tests can still use the correct blocking autoplay policy

Differential Revision: https://phabricator.services.mozilla.com/D73973
2020-05-07 13:05:22 +00:00
Karl Tomlinson 62c2076a1b Bug 1637159 remove now-unused public DOMEventTargetHelper::BindToOwner() rebind methods r=smaug
The virtual is no longer required since
https://hg.mozilla.org/mozilla-central/rev/a01586b62cf5#l1.92

Differential Revision: https://phabricator.services.mozilla.com/D75042
2020-05-14 05:29:49 +00:00
Philip Chimento f93330de3e Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.

Differential Revision: https://phabricator.services.mozilla.com/D73521
2020-05-14 04:44:15 +00:00
Narcis Beleuzu a12e8bbd08 Backed out 5 changesets (bug 1505129, bug 1506323, bug 1629293) for bustages on testPrintError.cpp . CLOSED TREE
Backed out changeset ad1ccad76686 (bug 1629293)
Backed out changeset 452e9ab721bd (bug 1629293)
Backed out changeset 72a63e290177 (bug 1629293)
Backed out changeset faeed99f813e (bug 1505129)
Backed out changeset 7bd84a644d2b (bug 1506323)
2020-05-13 21:23:59 +03:00
Philip Chimento 5606c63575 Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.

Differential Revision: https://phabricator.services.mozilla.com/D73521
2020-05-13 16:10:39 +00:00
Csoregi Natalia 0da2867bf2 Backed out 5 changesets (bug 1625372) for assertion failures on GraphDriver.cpp. CLOSED TREE
Backed out changeset b9feee4f447c (bug 1625372)
Backed out changeset d86f066bd68b (bug 1625372)
Backed out changeset 7a38398623f8 (bug 1625372)
Backed out changeset 6e9928fb37d1 (bug 1625372)
Backed out changeset ca93e9921c05 (bug 1625372)
2020-05-13 13:09:22 +03:00
Karl Tomlinson ef208899b1 Bug 1625372 shut down MediaTrackGraph from AudioContext when window will be destroyed r=padenot
Depends on D74813

Differential Revision: https://phabricator.services.mozilla.com/D74814
2020-05-12 08:44:46 +00:00
Karl Tomlinson 989d1fc6db Bug 1625372 permit ForceShutDown() on a realtime graph r=padenot
Depends on D74812

Differential Revision: https://phabricator.services.mozilla.com/D74813
2020-05-12 08:43:11 +00:00
Karl Tomlinson 3e139c32e0 Bug 1625372 remove unnecessary DestroyNonRealtimeInstance() call from AudioDestinationNode::DestroyMediaTrack() r=padenot
DestroyMediaTrack() is called only on Unlink or destruction of the AudioDestinationNode.
If there are no references to the AudioDestinationNode, then the graph's last stream
will be destroyed and the graph will shut down itself.

Differential Revision: https://phabricator.services.mozilla.com/D74812
2020-05-12 08:42:38 +00:00
Karl Tomlinson 53bf89e445 Bug 1625372 request interrupt of AudioWorklet JS on force shutdown r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D71915
2020-05-12 07:10:51 +00:00
Hiroyuki Ikezoe 34c6fd1e8c Bug 1636838 - Undef CurrentTime and define X11CurrentTime instead. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D74585
2020-05-11 19:34:02 +00:00
Benoît Chauvet 1854f52b7c Bug 1626753 - WaveShaperNode.cpp : removed else after return. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D74741
2020-05-11 21:17:24 +00:00
Simon Giesecke f7f5462a4b Bug 1626570 - Improve handling of copying arrays in dom/media/. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D73627
2020-05-05 11:38:10 +00:00
Paul Adenot 052b46021c Bug 1633747 - Flush NaNs to zeros before handing back the audio output buffer to the OS. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D72927
2020-05-01 23:57:30 +00:00
Tom Tung 684a5d3947 Bug 1624266 - Use IsSharedMemoryAllowed to decide whether should the CTOR SharedArrayBuffer be defined for Worklets; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D71536
2020-05-01 11:36:08 +00:00
Paul Adenot 3f634118d6 Bug 1634098 - Fix a few clang-tidy warnings in AudioNodeEngine.cpp and vector sibling files. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D73087
2020-04-29 22:39:15 +00:00
Chris Peterson d8873bd7de Bug 1594529 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/media/webaudio. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D72565
2020-04-27 11:46:32 +00:00
Sylvestre Ledru 34acbb653a Bug 1619165 - Reformat recent changes to the Google coding style r=andi
First reformat with clang-format 10

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Paul Adenot 68f59c15f7 Bug 1626382 - r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D72144
2020-04-24 01:57:47 +00:00
Paul Adenot bbddb266a3 Bug 1611622 - Add a decode test for an OGG Vorbis file with a nil packet at EOS. r=bryce
The test file was created using VLC, that has a muxer that does this.

Differential Revision: https://phabricator.services.mozilla.com/D71351
2020-04-21 09:30:57 +00:00
Paul Adenot 2ff258c252 Bug 1611622 - Allow testing for a decode success without checking the file. r=bryce
Useful to test the demuxer in the web audio case.

Differential Revision: https://phabricator.services.mozilla.com/D71350
2020-04-21 09:30:40 +00:00
Paul Adenot 22429adf2a Bug 1611622 - Add some logging to MediaBufferDecoder.cpp. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D70894
2020-04-21 09:30:00 +00:00
Noemi Erli 0e5b704353 Backed out 5 changesets (bug 1611622) for causing failures in test_mediaDecoding.html CLOSED TREE
Backed out changeset f4a83f3ac965 (bug 1611622)
Backed out changeset 87254fc7b777 (bug 1611622)
Backed out changeset 1177ae3a0ef3 (bug 1611622)
Backed out changeset daf821043996 (bug 1611622)
Backed out changeset adab60e7e9c5 (bug 1611622)
2020-04-20 22:50:35 +03:00
Paul Adenot ea156f7bf4 Bug 1611622 - Add a decode test for an OGG Vorbis file with a nil packet at EOS. r=bryce
The test file was created using VLC, that has a muxer that does this.

Differential Revision: https://phabricator.services.mozilla.com/D71351
2020-04-20 18:36:48 +00:00
Paul Adenot 571e9f80af Bug 1611622 - Allow testing for a decode success without checking the file. r=bryce
Useful to test the demuxer in the web audio case.

Differential Revision: https://phabricator.services.mozilla.com/D71350
2020-04-20 18:36:41 +00:00
Paul Adenot 010795c79b Bug 1611622 - Add some logging to MediaBufferDecoder.cpp. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D70894
2020-04-20 18:36:20 +00:00
Mihai Alexandru Michis 1ad47078f4 Backed out 5 changesets (bug 1611622) for causing bustages.
CLOSED TREE

Backed out changeset 8be308a0ff7d (bug 1611622)
Backed out changeset e6286802e8b5 (bug 1611622)
Backed out changeset ca1198a5d65c (bug 1611622)
Backed out changeset 7f14a871f69e (bug 1611622)
Backed out changeset 1db1f7da1215 (bug 1611622)
2020-04-17 21:17:37 +03:00
Paul Adenot 88b9f51e9b Bug 1611622 - Add a decode test for an OGG Vorbis file with a nil packet at EOS. r=bryce
The test file was created using VLC, that has a muxer that does this.

Differential Revision: https://phabricator.services.mozilla.com/D71351
2020-04-17 17:56:45 +00:00
Paul Adenot d4b4cd9dee Bug 1611622 - Allow testing for a decode success without checking the file. r=bryce
Useful to test the demuxer in the web audio case.

Differential Revision: https://phabricator.services.mozilla.com/D71350
2020-04-17 17:56:25 +00:00
Paul Adenot 60a6cea746 Bug 1611622 - Add some logging to MediaBufferDecoder.cpp. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D70894
2020-04-17 17:55:59 +00:00
Jeff Walden 3dddf97e18 Bug 1624266 - Add code to page/worker/worklet code so that the global "SharedArrayBuffer" property can be trivially omitted from their global objects by changing how a single C++ variable for each case is initialized. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D71253
2020-04-17 08:21:02 +00:00
Steve Fink a19414b831 Bug 1626772 - gcc compatibility hack for __attribute__ and mutable ordering in lambda decl r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D69402

--HG--
extra : moz-landing-system : lando
2020-04-10 01:09:04 +00:00
Mihai Alexandru Michis f2e4ef7d2a Backed out 3 changesets (bug 1626772) for causing bustages in DefineEnum.h
CLOSED TREE

Backed out changeset f42150bdee2b (bug 1626772)
Backed out changeset ab5b637f714a (bug 1626772)
Backed out changeset fd4026a9f380 (bug 1626772)
2020-04-10 03:49:33 +03:00
Steve Fink f052f2616d Bug 1626772 - gcc compatibility hack for __attribute__ and mutable ordering in lambda decl r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D69402

--HG--
extra : moz-landing-system : lando
2020-04-08 08:48:11 +00:00
Tom Schuster 763682c095 Bug 1626100 - Replace SetPendingExceptionAndStack with a ExceptionStack version. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D69667

--HG--
extra : moz-landing-system : lando
2020-04-09 12:35:59 +00:00
Tom Schuster fae4303276 Bug 1626100 - Introduce an ExceptionStack class and StealPendingExceptionStack. r=sfink,mccr8
See also the bug for a more detailed description.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 12:35:29 +00:00
Tom Tung d33e72aaa9 Bug 1586761 - P5 - Use new methods in media r=tjr,baku
Differential Revision: https://phabricator.services.mozilla.com/D63906

--HG--
extra : moz-landing-system : lando
2020-03-25 14:16:15 +00:00
Tom Tung 94183661ac Bug 1586761 - P2 - Introduce new TimerPrecisionTypes and a set of new Reduce methods to decide the TimerPrecisionType in the nsRFPService; r=tjr
To support checking CrossOriginIsolated in performance.now(), we need to:
- Add new types to TimerPrecisionType for nsRFPService
  - System, HighResAllowed are added
  - All is renamed to Normal
- Introduce a set of Reduce methods which require isSystemPrincipal and
CrossOriginIsolated to be passed and decide the TimerPrecisionType later
  - Original Reduce methods should only be called when callsites know the
  TimerPrecisionType. Otherwise, they should call the new methods.
- The following patches will use new methods

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

--HG--
extra : moz-landing-system : lando
2020-03-25 14:09:55 +00:00
Andreas Farre 36eaf82163 Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika
Depends on D67631

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:33 +00:00
Alex Chronopoulos 88b8c3cca3 Bug 1626319 - Change async callback logger to log per thread-id. r=padenot
TRACE_AUDIO_CALLBACK() and TRACE_AUDIO_CALLBACK_COMMENT(aFmt, ...) log to a hardcoded thread id number. This creates confusion when more than one MTG is running because logs from different threads are depicted to the same thread line and overlapping each other. Those logging commands have been removed and the TRACE* command is used that it logs per thread-id.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 10:45:52 +00:00
Amogh Kerigond eac94b6c20 Bug 1624234 - Removes else or else if after return statement r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D67970

--HG--
extra : moz-landing-system : lando
2020-03-30 20:08:39 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

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

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull ebec34a898 Bug 1625138 - Part 16: Replace mozilla::IsIntegral with std::is_integral. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68371

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull 1f5d157732 Bug 1625138 - Part 15: Replace mozilla::IsFloatingPoint with std::is_floating_point. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68370

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
Paul Adenot a8b1a92375 Bug 1565464 - Allow not having a parameterDescriptor getter in an AudioWorkletProcessor. r=karlt
https://github.com/WebAudio/web-audio-api/issues/2171

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

--HG--
extra : moz-landing-system : lando
2020-03-27 10:50:23 +00:00
Paul Adenot 02b0f626e1 Bug 1565464 - Accept any iterable for parameterDescriptors in AudioWorkletGlobalScope.registerProcessor(). r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D65003

--HG--
extra : moz-landing-system : lando
2020-03-27 10:50:08 +00:00
Mike Conley eaccc7871f Bug 1621684 - Take an audio-playing wakelock when using WebAudio. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D67544

--HG--
extra : moz-landing-system : lando
2020-03-26 08:02:05 +00:00
Paul Adenot c5169dcde5 Bug 1613070 - Add tracing markers to AudioWorklet code (real-time thread side). r=karlt
Moving the trace point for messages to the inner loop allow understanding what
pages are doing better (if they are creating lots of nodes or changing lots of
params, etc.). Also, it is important to be able to characterize `onmessage`
calls.

Having two tracepoints under `ProcessBlockOnPorts` allows gauging the buffer
preparation overhead. vs just the page's processing code.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 13:21:54 +00:00
Andrea Marchesini 6e5bd2d254 Bug 1402784 - Use nsIContentPolicy::TYPE_INTERNAL_AUDIOWORKLET and nsIContentPolicy::TYPE_INTERNAL_PAINTWORKLET in Worklet code, r=smaug
Depends on D67105

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

--HG--
extra : moz-landing-system : lando
2020-03-17 22:24:39 +00:00
Simon Giesecke 7e9a7de895 Bug 1620632 - Rename confusingly named types/macros for relocation handling of nsTArray. r=froydnj
Specifically, this renames
* nsTArray_CopyChooser to nsTArray_RelocationStrategy
* the Copy template argument of nsTArray_base to RelocationStrategy
* nsTArray_CopyWithConstructors to nsTArray_RelocateUsingMoveConstructor
* nsTArray_CopyWithMemutils to nsTArray_RelocateUsingMemutils
* DECLARE_USE_COPY_CONSTRUCTORS to MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:04:27 +00:00
Paul Adenot eb1764b731 Bug 1558124 - When calling the AudioWorkletProcessor ctor, switch to rethrowing exceptions to handle them manually. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D64769

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:31 +00:00
Paul Adenot 3514c96161 Bug 1558124 - When an exception happens in the AudioWorkletGlobalScope, fire `onprocessorerror`. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D64766

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:56 +00:00
Paul Adenot 2fef3e1da9 Bug 1558124 - Pass the track and the JSContext to SendProcessorError. r=karlt
Those are needed, respectively to be able to ensure the stream doesn't go away
when messaging back to the control thread, and then to access the details of the
exception thrown.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:00 +00:00
Paul Adenot bf21b8928e Bug 1558124 - Don't suppress the exception when the ctor of an AudioWorkletProcessor throws. r=karlt
https://github.com/WebAudio/web-audio-api/issues/2096

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:52:53 +00:00
Paul Adenot 0dfeed31ae Bug 1558124 - Pass a JSContext to AudioWorkletGlobalScope::ConstructProcessor. r=karlt
Having nested AutoJSAPI clobbers the exception value of the innermost one on
destruction.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:52:46 +00:00
Alex Chronopoulos 9fb4eecd46 Bug 1617915 - Expose output device id when MediaTrackGraph is created. r=padenot
In order to be able to change the audio output device, the device id is exposed to the constructor of MediaStreamGraph. Any component that gets/creates an MTG will be able to provide the device id in order to determine the desired output device. If the provided device id is null the default device will be used.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 12:56:20 +00:00
Paul Adenot ae95e91636 Bug 1619607 - When attempting to create an AudioWorkletNode with non-existing processor, throw InvalidStateError. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D65109

--HG--
extra : moz-landing-system : lando
2020-03-11 14:45:12 +00:00
Paul Adenot dc3afac772 Bug 1621596 - Adjust one patch from bug 1598114 to land what was meant to be landing
Differential Revision: https://phabricator.services.mozilla.com/D66382

--HG--
extra : moz-landing-system : lando
2020-03-11 10:56:00 +00:00
Ehsan Akhgari c6394ae30b Bug 873335 - Add a crashtest based on the test case for the bug
Differential Revision: https://phabricator.services.mozilla.com/D66237

--HG--
extra : moz-landing-system : lando
2020-03-10 15:18:56 +00:00
Paul Adenot 3a25af8174 Bug 1598114 - Never destroy `AudioTimelineEvent` from the render thread when it contains a valid pointer to an `AudioNodeTrack`, and assert it. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D64759

--HG--
extra : moz-landing-system : lando
2020-03-05 16:13:12 +00:00
Paul Adenot 31bc8ab686 Bug 1598114 - Compute the values for each AudioParamTimeline directly into the Float32Arrays and pass the object to `process`. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D63356

--HG--
extra : moz-landing-system : lando
2020-03-05 00:55:28 +00:00
Paul Adenot a67b86366f Bug 1598114 - Initialize the javascript objects necessary to pass the third parameter to `process`. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D63355

--HG--
extra : moz-landing-system : lando
2020-03-04 15:22:51 +00:00
Paul Adenot ae9705970c Bug 1598114 - Receive AudioParamTimeline events to the render thread. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D63354

--HG--
extra : moz-landing-system : lando
2020-03-04 15:22:48 +00:00
Paul Adenot 4651ad6731 Bug 1598114 - Implement `AudioWorkletNode.parameters`. r=karlt
This covers only the main thread part of this attribute.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 00:49:09 +00:00
Paul Adenot 3902b2f19e Bug 1598114 - Pass the graph time to ProcessBlockOnPorts. r=karlt
This is necessary to then compute AudioParam values for the right time.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 15:21:28 +00:00
Paul Adenot ebe89c5caa Bug 1598114 - Use char16_t for AudioParam names, since they can now be exposed to js and contain non-ascii values. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D63351

--HG--
extra : moz-landing-system : lando
2020-03-04 15:21:23 +00:00
Boris Zbarsky c878a8bb26 Bug 1619112 part 2. Pass char literals instead of char16_t literals into ErrorResult throwing methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65538

--HG--
extra : moz-landing-system : lando
2020-03-06 21:04:58 +00:00
Boris Zbarsky 8e25df76a8 Bug 1618011 part 10. Use a BindingCallContext for initializing AudioParamDescriptors. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D64891

--HG--
extra : moz-landing-system : lando
2020-03-06 23:05:17 +00:00
Boris Zbarsky 0082f55dee Bug 1618011 part 7. Switch most error messages used in bindings to having a method name prefix. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D64888

--HG--
extra : moz-landing-system : lando
2020-03-06 23:05:16 +00:00
Arthur Iakab 14247fb057 Backed out 11 changesets (bug 1618011)for Linting failure.
CLOSED TREE

Backed out changeset 8b11ddd8999f (bug 1618011)
Backed out changeset 11df2f359473 (bug 1618011)
Backed out changeset c50121035d50 (bug 1618011)
Backed out changeset 8b8c4c60c34b (bug 1618011)
Backed out changeset b01f8c66110b (bug 1618011)
Backed out changeset 433fdf04058c (bug 1618011)
Backed out changeset 29a9227d08ac (bug 1618011)
Backed out changeset b2dfa2e66d24 (bug 1618011)
Backed out changeset 85650ee945c4 (bug 1618011)
Backed out changeset 278a213e5304 (bug 1618011)
Backed out changeset 9119aeb72ea4 (bug 1618011)
2020-03-07 00:15:57 +02:00
Boris Zbarsky eaa46a9a55 Bug 1618011 part 10. Use a BindingCallContext for initializing AudioParamDescriptors. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D64891

--HG--
extra : moz-landing-system : lando
2020-03-06 20:39:50 +00:00
Boris Zbarsky bc068d0e54 Bug 1618011 part 7. Switch most error messages used in bindings to having a method name prefix. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D64888

--HG--
extra : moz-landing-system : lando
2020-03-06 20:39:10 +00:00
Simon Giesecke 88ead5d627 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/media. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D65178

--HG--
extra : moz-landing-system : lando
2020-03-04 15:39:20 +00:00
Karl Tomlinson f2383505ff Bug 1596655 Keep DestinationNode track after offline completion for worklets r=padenot
This keeps the worklet/graph thread alive for control and MessagePort messages
until there are no references to main thread objects.

In test_getUserMedia_audioCapture, the track of the OscillatorNode being
recorded does not end, and, even if it did, MediaRecorder would not listen for
ended notification on the node's track but its pipe track.  Recording via
DestinationNode works around this because the DestinationNode track ends and
MediaRecorder listens to this track directly because it has
EXTERNAL_OUTPUT. Previously MediaRecorder would stop when the MediaTrackGraph
was shutdown, but this is no longer happening.

Depends on D65069

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

--HG--
extra : moz-landing-system : lando
2020-03-03 18:16:03 +00:00
Karl Tomlinson 0c148488c4 Bug 1596655 move offline complete event logic from engine to node r=padenot
This will allow the node to drop its self reference without
AudioContext::Shutdown().

Depends on D65068

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

--HG--
extra : moz-landing-system : lando
2020-03-03 18:01:54 +00:00
Karl Tomlinson 350141becf Bug 1596655 move OnCompleteTask to anonymous namespace r=padenot
This will allow the class to be used from AudioDestinationNode.

Depends on D65067

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

--HG--
extra : moz-landing-system : lando
2020-03-03 18:01:37 +00:00
Sylvestre Ledru 096c7ab5f0 Bug 1617437 - OggCodecState.h/DynamicsCompressor.h: Fix two -Wnon-c-typedef-for-linkage warnings r=jya
Differential Revision: https://phabricator.services.mozilla.com/D63785

--HG--
extra : moz-landing-system : lando
2020-03-01 12:39:18 +00:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Kris Maglione c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Simon Giesecke aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Sylvestre Ledru ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Eric Rahm 6ea4ed1c80 Bug 1322095 - Part 2: Remove nsAutoPtr from dom/media. r=jya
This converts `nsAutoPtr` usage in dom/media to `UniquePtr`. Beyond just a
search and replace we also needed to update assignment and access of the
`UniquePtr`s. This falls into a few categories:
  - Assignment from a newly constructed object switches to `MakeUnique`
  - Assignment from a raw ptr switches to `UniquePtr::reset`
  - Handing out a raw ptr now requires `UniquePtr::get`
  - Uses `UniquePtr::release` rather than `nsAutoPtr::forget`
  - A few spots are updated to return a `UniquePtr` rather than a raw ptr

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:44:00 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Karl Tomlinson b7633dada4 Bug 1614551 Allow an unreferenced closed AudioContext to be garbage collected r=padenot
Depends on D62521

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

--HG--
extra : moz-landing-system : lando
2020-02-12 14:40:30 +00:00
Karl Tomlinson 802d8b8b21 Bug 1614551 Add test for GC of closed AudioContext r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D62521

--HG--
extra : moz-landing-system : lando
2020-02-12 14:30:35 +00:00
Karl Tomlinson d8b56164b2 Bug 1614551 Allow an unreferenced suspended AudioContext to be garbage collected r=padenot
Depends on D62517

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

--HG--
extra : moz-landing-system : lando
2020-02-12 14:30:33 +00:00
Karl Tomlinson 665f67f2c5 Bug 1614551 Add test for GC of suspended AudioContext r=padenot
Depends on D62516

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

--HG--
extra : moz-landing-system : lando
2020-02-12 14:30:26 +00:00
Karl Tomlinson 1b07ed625f Bug 1614551 Add some tests for AudioContext GC r=padenot
Depends on D62515

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

--HG--
rename : dom/media/webaudio/test/test_ScriptProcessorCollected1.html => dom/media/webaudio/test/test_audioContextGC.html
extra : moz-landing-system : lando
2020-02-12 14:30:24 +00:00
Karl Tomlinson ee6d3bcf1b Bug 1221889 suspend new tracks created after AudioContext.close() r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D62515

--HG--
extra : moz-landing-system : lando
2020-02-12 14:14:46 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Boris Zbarsky a8af57b293 Bug 1614038 part 2. Improve error reporting in webaudio code. r=padenot
The change to throw NotSupportedError in AudioContext::CreateBuffer is
purposeful, to align with the spec and Chrome.  There's apparently no web
platform test coverage for this, but we'll work on converting our test to a WPT.

The change to AudioContext::Close is fixing what looks like an obvious bug to
me (it _resolved_ a Promise<void> with a DOMException!).  No obvious test coverage; https://bugzilla.mozilla.org/show_bug.cgi?id=1614960 tracks adding some.

The change to throw RangeError in OscillatorNode::Start is purposeful, to align
wih the spec and Chrome.  Again, there's apparently no test coverage.

The change to throw RangeError in OscillatorNode::Stop is purposeful, to align
wih the spec and Chrome.  Again, there's apparently no test coverage.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 17:59:41 +00:00
Boris Zbarsky c798ed8038 Bug 1614038 part 1. Fix ChannelSplitterNode to follow the spec for its setters. r=padenot
This is based on looking at what the actual spec constraints around the
channelCount, channelCountMode, and channelInterpretation setters are and on
testing Chrome's behavior: the setters _can_ be called as long as you do it with
the current value.  That said, the spec sure could use being clearer here; the
style it's using is pretty hard to follow, unfortunately.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 15:38:02 +00:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Andrea Marchesini acbbf5b903 Bug 1614899 - Support WASM + SAB in AudioWorkletNode processOptions, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D62598

--HG--
extra : moz-landing-system : lando
2020-02-12 16:16:23 +00:00
Boris Zbarsky c1c6ce37b3 Bug 1613827. Be more careful with SharedBuffer::Create callsites. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61959

--HG--
extra : moz-landing-system : lando
2020-02-11 16:58:33 +00:00
Boris Zbarsky 05327f8a52 Bug 1613978. Allow passing u"...", not just nsAStrings, to templated ThrowType/RangeError. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D62061

--HG--
extra : moz-landing-system : lando
2020-02-10 13:08:48 +00:00
Boris Zbarsky 1395be1f23 Bug 1613013 part 3. Annotate TypeErrors and RangeErrors from WebIDL implementations with the method they come from. r=peterv
Please review the changes to Errors.msg very carefully.  I caught a number of
mistakes there in self-review (e.g. not renumbering replacement markers
correctly when I added {0} to the beginnings of strings), and my confidence
that I caught them all is only middling.

A few lines (MSG_USELESS_SETTIMEOUT, MSG_TYPEDARRAY_IS_DETACHED,
MSG_NOT_SUBMIT_BUTTON) were removed from Errors.msg either because they were
already unused or because they either were single-user constant strings or
became such in the new setup and we could just use the string version of
ThrowTypeError.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 21:22:32 +00:00
Boris Zbarsky 747a4d9f0a Bug 1613013 part 1. Annotate DOMExceptions from WebIDL implementations with the method they come from. r=peterv
This adds the name of the interface and method to the beginning of the exception
string when reporting the exception from Web IDL codegen, so it's clearer what
was called.

Some existing error messages are adjusted to not duplicate the information
about which method was called.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 21:16:10 +00:00
Andrea Marchesini 1edd5d228f Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61277

--HG--
extra : moz-landing-system : lando
2020-02-06 13:50:11 +00:00
Andrea Marchesini 175bac3a30 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-06 13:45:47 +00:00
Narcis Beleuzu d259fe38d8 Backed out 13 changesets (bug 1611855) for wpt failures on /audioworklet-postmessage-sharedarraybuffer.https.html . CLOSED TREE
Backed out changeset 2b661d588f96 (bug 1611855)
Backed out changeset 16094fc92bc9 (bug 1611855)
Backed out changeset 3f89bbcaff92 (bug 1611855)
Backed out changeset a906501b6d92 (bug 1611855)
Backed out changeset 54738b88425d (bug 1611855)
Backed out changeset d27de910a6c0 (bug 1611855)
Backed out changeset 261902f6336d (bug 1611855)
Backed out changeset 380d83b61e62 (bug 1611855)
Backed out changeset 39aac60ebf5e (bug 1611855)
Backed out changeset 5ea099787376 (bug 1611855)
Backed out changeset d0f58871f838 (bug 1611855)
Backed out changeset e1be102310a9 (bug 1611855)
Backed out changeset 633357835540 (bug 1611855)

--HG--
rename : dom/base/test/test_postMessages_workers.html => dom/base/test/test_postMessages.html
2020-02-06 12:31:36 +02:00
Paul Adenot 227468453f Bug 1569809 - Remove AudioNodeOptions from the ctor of AudioWorkletProcessor. r=baku
This was changed in https://github.com/WebAudio/web-audio-api/issues/2044

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

--HG--
extra : moz-landing-system : lando
2020-02-05 19:21:15 +00:00
Andrea Marchesini db7085724d Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61277

--HG--
extra : moz-landing-system : lando
2020-02-05 22:09:44 +00:00
Andrea Marchesini 2106c7dcda Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-05 22:07:04 +00:00
Paul Adenot c17dc41bb3 Bug 1161025 - Reject attempts to set non-null AudioBufferSourceNode.buffer more than once r=karlt,baku
as spec'd in https://github.com/WebAudio/web-audio-api/pull/743

This also removes the crashtests that don't apply anymore now that a buffer
cannot be set more than once, and changes another one so it still tests what
needs to be tested, but doesn't time-out.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 16:26:52 +00:00
Boris Zbarsky b88d5ac5a8 Bug 1612213 part 1. Switch most consumers of ThrowDOMException to the new methods. r=smaug,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D61267

--HG--
extra : moz-landing-system : lando
2020-02-03 20:19:11 +00:00
Arthur Iakab ca111b6d55 Backed out changeset e3b626560b0d (bug 1161025) for causing crashtest failures on 966636.html.
CLOSED TREE
2020-02-03 13:21:08 +02:00
Paul Adenot 6ceb6a920f Bug 1161025 - reject attempts to set non-null AudioBufferSourceNode.buffer more than once r=karlt,baku
as spec'd in https://github.com/WebAudio/web-audio-api/pull/743

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

--HG--
extra : moz-landing-system : lando
2020-01-24 08:06:49 +00:00
Karl Tomlinson 4d907bb120 Bug 1606148 align ProcessBlocksOnPorts() Span parameter lengths with number of inputs and outputs r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D59190

--HG--
extra : moz-landing-system : lando
2020-01-15 14:44:39 +00:00
Edgar Chen 9e846bd48a bug 1610296 - Rename TypedArray_base::ComputeLengthAndData to TypedArray_base::ComputeState; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60514

--HG--
extra : moz-landing-system : lando
2020-01-23 03:22:06 +00:00
Edgar Chen 8346d0956a Bug 1575425 - Part 4: Remove manually checking shareness in various APIs implmentation; r=bzbarsky
Now we support [AllowShared] in WebIDL, we don't need to manually check shareness
and throw exception if API don't accept SharedArrayBuffer, the binding will handle
it.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 13:51:04 +00:00
Andrea Marchesini a9cf3442be Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 3 - Rename SameProcessDifferentThread to SameProcess, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59142

--HG--
extra : moz-landing-system : lando
2020-01-15 12:02:17 +00:00
Mihai Alexandru Michis 4345a38d0d Backed out 9 changesets (bug 1607791, bug 1605566) for causing multiple wpt failures.
CLOSED TREE

Backed out changeset 39f34852842e (bug 1605566)
Backed out changeset 3427a92445c8 (bug 1605566)
Backed out changeset 36631ec96f1f (bug 1605566)
Backed out changeset 554b2bdce66c (bug 1605566)
Backed out changeset 37026beadbd8 (bug 1605566)
Backed out changeset f15835338319 (bug 1607791)
Backed out changeset 4c92f506cf62 (bug 1607791)
Backed out changeset 80707bcc8427 (bug 1607791)
Backed out changeset 75bc7533c899 (bug 1607791)
2020-01-15 13:45:33 +02:00
Andrea Marchesini 6d6aa4cc66 Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 3 - Rename SameProcessDifferentThread to SameProcess, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59142

--HG--
extra : moz-landing-system : lando
2020-01-15 09:59:16 +00:00
Karl Tomlinson e026e88f35 Bug 1558526 remove check for callable process() in registerProcessor() r=bzbarsky
Since https://github.com/WebAudio/web-audio-api/pull/2104

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

--HG--
extra : moz-landing-system : lando
2020-01-10 02:31:13 +00:00
Chris Peterson 406763af7f Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.

Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:

* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 07:16:43 +00:00
Andrew Halberstadt 10e66445cb Bug 1604360 - Fix duplicate keys in the DEFAULT section of some manifests r=padenot,mak
Differential Revision: https://phabricator.services.mozilla.com/D57405

--HG--
extra : moz-landing-system : lando
2019-12-18 12:53:59 +00:00
Andreas Pehrson 1adcbfee14 Bug 1586370 - Use MozPromise for AudioContextOperations and NotifyWhenGraphStarted. r=padenot
This removes a level of indirection where the graph had to call back into
AudioContext. It also removes a dependency on the graph from GraphDriver, where
it can now just resolve a MozPromiseHolder instead.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 22:50:52 +00:00
Jeff Walden 62a130ba0a Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D56595

--HG--
extra : moz-landing-system : lando
2019-12-11 06:17:44 +00:00
Karl Tomlinson 1457fcc07d Bug 1599952 initialize AudioWorkletProcessor.port r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53135

--HG--
extra : moz-landing-system : lando
2019-12-11 00:24:09 +00:00
Karl Tomlinson 2b63e70947 Bug 1587872 ensure one output channel when input is null r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D54675

--HG--
extra : moz-landing-system : lando
2019-11-26 16:53:37 +00:00
Karl Tomlinson 115ab06aac Bug 1587872 call process() on active AudioWorkletProcessor even with no active inputs r=padenot
and don't call process() on inactive AudioWorkletProcessor when inputs are null.

AudioNodeTrack::mIsActive, which determines when ProcessBlocksOnPorts() is
called, differs slightly from "actively processing" in the spec.
"An AudioScheduledSourceNode is actively processing if and only if it is
playing for at least part of the current rendering quantum" but
AudioNodeTrack::mIsActive is set even before the source node has started
playing.
Null input blocks provide a better indication of inputs that are not actively
processing.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 15:11:16 +00:00
Gabriele Svelto ace6d1063f Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
Dorel Luca a381d5c96d Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE 2019-12-04 17:32:27 +02:00
Gabriele Svelto bc9290f767 Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-04 15:01:19 +00:00
Karl Tomlinson 9631373efa Bug 1599952 pass MessagePort to AudioWorkletGlobalScope r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53134

--HG--
extra : moz-landing-system : lando
2019-12-03 00:37:28 +00:00
Karl Tomlinson aaf899d471 Bug 1599952 initialize AudioWorkletNode.port r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53133

--HG--
extra : moz-landing-system : lando
2019-12-03 01:11:13 +00:00
Coroiu Cristina 679f321343 Backed out 5 changesets (bug 1599952) for failures at webaudio/the-audio-api/the-audioworklet-interface/audioworklet-messageport.https.html.ini
Backed out changeset 78adc22d922a (bug 1599952)
Backed out changeset b07c89cbc212 (bug 1599952)
Backed out changeset 7768d524d914 (bug 1599952)
Backed out changeset 7012927838fe (bug 1599952)
Backed out changeset dbf476d4eab6 (bug 1599952)
2019-12-03 02:33:23 +02:00
Karl Tomlinson 5d8f14ddef Bug 1599952 pass MessagePort to AudioWorkletGlobalScope r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53134

--HG--
extra : moz-landing-system : lando
2019-12-02 11:30:39 +00:00
Karl Tomlinson 816db578f9 Bug 1599952 initialize AudioWorkletNode.port r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53133

--HG--
extra : moz-landing-system : lando
2019-12-03 00:07:33 +00:00
Karl Tomlinson f85045e1eb Bug 1599356 correct math in AudioWorkletGlobalScope.currentTime r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D54676

--HG--
extra : moz-landing-system : lando
2019-11-26 16:42:10 +00:00
alwu 54b8cc7893 Bug 1593843 - part8 : move helper functions out from 'AutoplayPolicy'. r=bryce
Move helper functions out from `AutoplayPolicy`, makes us clearly know which one could really be used to determine the blocking autoplay result. It also give other classes an ability to use those helper functions if they have a need.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:13 +00:00
Noemi Erli 23395b20e2 Backed out 13 changesets (bug 1593843) for bustages in Logging.h CLOSED TREE
Backed out changeset b6e3fa6363bd (bug 1593843)
Backed out changeset 3db512256b0d (bug 1593843)
Backed out changeset f67081ea84ee (bug 1593843)
Backed out changeset ad02bb934459 (bug 1593843)
Backed out changeset 1a79176d3f7b (bug 1593843)
Backed out changeset 486c8562b816 (bug 1593843)
Backed out changeset 0d4313c436c5 (bug 1593843)
Backed out changeset 0c7e831d11bf (bug 1593843)
Backed out changeset 02ac8c39f46d (bug 1593843)
Backed out changeset 80895462dddf (bug 1593843)
Backed out changeset 4ab855869725 (bug 1593843)
Backed out changeset 5a24fc933cd6 (bug 1593843)
Backed out changeset f1c50ee60a78 (bug 1593843)
2019-11-23 05:18:17 +02:00