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

13755 Коммитов

Автор SHA1 Сообщение Дата
shindli dd50d1646e Backed out 13 changesets (bug 1460022) for bustages in :/build/build/src/mozglue/tests/interceptor/TestDllInterceptor.cpp(113) on a CLOSED TREE
Backed out changeset b798c3689bbf (bug 1460022)
Backed out changeset c3b3b854affd (bug 1460022)
Backed out changeset ecb1b6fd3134 (bug 1460022)
Backed out changeset 91fed649dd5a (bug 1460022)
Backed out changeset be7032cddad2 (bug 1460022)
Backed out changeset d4a036b976e6 (bug 1460022)
Backed out changeset 5f3dfde41e38 (bug 1460022)
Backed out changeset a16486a6f685 (bug 1460022)
Backed out changeset 69eacc5c3ab8 (bug 1460022)
Backed out changeset 34aa7c29b31e (bug 1460022)
Backed out changeset 00b20c0a7637 (bug 1460022)
Backed out changeset b8e8aea4a01f (bug 1460022)
Backed out changeset 15822d9848d8 (bug 1460022)
2018-07-04 03:37:11 +03:00
Aaron Klotz 6d8cf290f7 Bug 1460022: Part 6 - Update GMP code to work with new DLL interceptor interface; r=cpearce 2018-06-27 11:49:49 -06:00
shindli dcc88f33f9 Backed out 13 changesets (bug 1460022) for bustages in builds/worker/workspace/build/src/dom/plugins/ipc/FunctionHook.h💯24 on a CLOSED TREE
Backed out changeset 0734142a3f35 (bug 1460022)
Backed out changeset 18fbfa7ca685 (bug 1460022)
Backed out changeset 2df129bd5692 (bug 1460022)
Backed out changeset 02a7ed68933f (bug 1460022)
Backed out changeset 221137d1c2de (bug 1460022)
Backed out changeset 9cb0b7a15402 (bug 1460022)
Backed out changeset 18f8f85c0307 (bug 1460022)
Backed out changeset 867a1351efff (bug 1460022)
Backed out changeset 933e0b698f8e (bug 1460022)
Backed out changeset 09da660071e1 (bug 1460022)
Backed out changeset 8bb5142d3f53 (bug 1460022)
Backed out changeset 0ddf581bdaac (bug 1460022)
Backed out changeset 1cd5f9b4a6af (bug 1460022)
2018-07-04 02:49:24 +03:00
Aaron Klotz ee74c34ce2 Bug 1460022: Part 6 - Update GMP code to work with new DLL interceptor interface; r=cpearce
--HG--
extra : rebase_source : 17d7f30e7fc971fd8d2d3729c7d262cdc6a4c343
2018-06-27 11:49:49 -06:00
Jean-Yves Avenard 9442cd0ea8 Bug 1471165 - P2. Add logging facilities. r=bryce
Reviewers: bryce

Tags: #secure-revision

Bug #: 1471165

Differential Revision: https://phabricator.services.mozilla.com/D1834
2018-07-03 11:45:29 -07:00
Jean-Yves Avenard 138b0b299d Bug 1471165 - P1. Simulate required MediaCapabilities members in optional dictionary. r=bz
Summary:
In order to allow for optional dictionaries with required members
See https://github.com/heycam/webidl/issues/76 for more information.

Reviewers: bzbarsky

Tags: #secure-revision

Bug #: 1471165

Differential Revision: https://phabricator.services.mozilla.com/D1833
2018-07-03 11:45:28 -07:00
Jean-Yves Avenard cab83f1874 Bug 1409664 - P28. Extrapolate VP9 benchmark results for requested vp9 configuration. r=bryce
Summary:
Additionally, consider all videos <= 480p to be smooth and power efficient as:
1- Hardware decoding it typically not used for those
2- We can't do any better
3- Any machines should be able to do 480p

Depends on D1794

Reviewers: bryce

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1796
2018-07-03 11:45:28 -07:00
Jean-Yves Avenard a867c82f1e Bug 1409664 - P27. Don't disable webm container for MSE::isTypeSupported when MediaCapabilities is enabled. r=bryce
Summary:
MediaCapabilities provide a finer detail on VP9 being supported or not. YouTube will use that information to determine which resolutions to support when using VP9

Depends on D1772

Reviewers: bryce

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1794
2018-07-03 11:45:27 -07:00
Jean-Yves Avenard 5a3da4d067 Bug 1409664 - P26. Use VP9 benchmark results to determine smoothness. r=bryce
Summary:
If the benchmark task hasn't run yet, we will assume smoothness for now.

Depends on D1771

Reviewers: bryce

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1772
2018-07-03 11:45:26 -07:00
Jean-Yves Avenard 75c2f6b7ce Bug 1409664 - P25. Don't use main thread with Benchmark . r=bryce
Summary:
Instead have it use its own task queue.

Depends on D1767

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1771
2018-07-03 11:45:26 -07:00
Jean-Yves Avenard c6c5f35fa9 Bug 1409664 - P24. Make IsVP9DecodeFast usable on any thread. r=bryce
Summary:
This will allow to be called from the MediaCapabilities taskqueue if we find that a decoder won't be hardware accelerated.

It is still assumed that Benchmark::Init() was called at least once on the main thread.

Depends on D1628

Tags: #secure-revision

Differential Revision: https://phabricator.services.mozilla.com/D1767
2018-07-03 11:45:25 -07:00
Jean-Yves Avenard 1f1e9dbfe9 Bug 1409664 - P22. Create SPS/PPS extradata to better determine decoder capabilities. r=bryce
Summary:
The Apple VT decoder requires SPS+PPS at construction time. If not provided, in earlier macOS it used to give an error. In the current 10.13 it appears to work, however the decoder always report to be software only.

To properly determine the decoder capabilities, we construct a SPS NAL from the codec mimetype provided.

Details on the structure of the mimetype can be found in https://tools.ietf.org/html/rfc6381#section-3.3 and is a 1:1 match with the data found in the SPS.

Depends on D1718

Reviewers: bryce

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1719
2018-07-03 11:45:24 -07:00
Jean-Yves Avenard c5bbea93f3 Bug 1409664 - P21. Retrieve H264 constraint flags with ExtractH264CodecDetails. r=bryce
Summary:
We'll need it to properly build a SPS/PPS extradata later. Also, change the types used. The original data is stored on two bytes ASCII, it will always fit in a uint8_t. Additionally, this is how those values are stored in a SPS.

Depends on D1678

Reviewers: bryce

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1718
2018-07-03 11:45:24 -07:00
Jean-Yves Avenard cafd081573 Bug 1409664 - P20. Add BitWriter class. r=bryce
Summary:

Depends on D1633

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1678
2018-07-03 11:45:23 -07:00
Jean-Yves Avenard cd7563c7fd Bug 1409664 - P19. Don't wrap H264 decoder in H264 converter. r=bryce
Summary:
By default, when creating a H264 decoder it is wrapped into a H264Converter which will only create the actual decoder once a valid SPS/PPS has been seen.
As creating valid SPS/PPS NALs isn't trivial, when all we care about are capabilities of such decoder, we do not wrap the decoder so that it will be immediately created.
We can then test its capabilities.

We only enable this on windows, as on mac we need to generate a SPS/PPS, otherwise the mac decoder always report that HW decoding is not enabled.

Depends on D1632

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1633
2018-07-03 11:45:23 -07:00
Jean-Yves Avenard f07b7bee8b Bug 1409664 - P18. Properly pass KnowsCompositor object to decoder. r=bryce, r=bz
Summary:
To properly determine if a decoder is hardware accelerated, we must pass information about the compositor to the decoder.

Depends on D1631

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1632
2018-07-03 11:45:22 -07:00
Jean-Yves Avenard 34e1735ed0 Bug 1409664 - P17. Remove unused variables. r=bryce
Summary:
Silence warnings.

Depends on D1630

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1631
2018-07-03 11:45:22 -07:00
Jean-Yves Avenard f278c2be62 Bug 1409664 - P16. Fix typo in variable name. r=bryce
Summary:

Depends on D1629

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1630
2018-07-03 11:45:21 -07:00
Jean-Yves Avenard b763f84cf1 Bug 1409664 - P15. Fix canPlayType so that it checks codecs if provided. r=bryce
Summary:
For flac, mp3 and adts, if a codec was provided but wasn't supported in the container, it would have reported Maybe instead of No

Depends on D1628

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1629
2018-07-03 11:45:21 -07:00
Jean-Yves Avenard 88f93633b1 Bug 1409664 - P14. Provide more details for audio and video configuration. r=bryce, r=baku
Summary:
We now provides more detailed information for audio (check sampling rate and channels if provided).

And check for the power efficient attribute. We directly correlate this information with the decoder being hardware accelerated or not. All audio codecs are deemed to be power efficient.

Depends on D1626

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1627
2018-07-03 11:45:21 -07:00
Jean-Yves Avenard df79cae335 Bug 1409664 - P13. Report the Apple's H264 decoder is hardware accelerated when not yet initialized. r=bryce
Summary:
We can't create a H264 VT decoder until we have all SPS/PPS NALs, which makes it tricky to generate when we only want to check if H264 is supported.
On mac, we can reasonable assume that hardware acceleration is always supported (though on a mac pro 2013 that isn't the case or hackintosh with nvidia cards).

Depends on D1625

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1626
2018-07-03 11:45:20 -07:00
Jean-Yves Avenard 0c1b59ee76 Bug 1409664 - P12. Don't attempt to play non-supported AAC sampling rate. r=padenot
Summary:
We know those sampling rate aren't supported and cause initialization errors later.

Depends on D1624

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1625
2018-07-03 11:45:20 -07:00
Jean-Yves Avenard d346b32eb9 Bug 1409664 - P11. Add GetTracksInfo method to all MediaDecoder instances. r=bryce
Summary:
Allows to build an array ot TrackInfo built from the mimetype provided. This will allow to create dummy decoder to check that if they are supported and how well the decoder will perform.

Depends on D1623

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1624
2018-07-03 11:45:20 -07:00
Jean-Yves Avenard ad801ddb59 Bug 1409664 - P10. Extend MediaExtendedMIMEType to know about audio configuration. r=bryce
Summary:
Addtionally, change the framerate to be of type double and allow to create a MediaExtendedMIMEType based on the new dom VideoConfiguration and AudioConfiguration object.

Depends on D1622

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1623
2018-07-03 11:45:19 -07:00
Jean-Yves Avenard d586f6f943 Bug 1409664 - P9. Remove AutoTaskQueue and its use r=bryce
Summary:
TaskQueue no longer requires an explicit call to BeginShutdown() as such we no longer have a need for AutoTaskQueue.

Depends on D1621

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1622
2018-07-03 11:45:19 -07:00
Jean-Yves Avenard f44bc2efdb Bug 1409664 - P6. Remove flac in ogg preference. r=bryce
Summary:
Let's always enable it.

Depends on D1618

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1619
2018-07-03 11:45:17 -07:00
Jean-Yves Avenard e2c6515b25 Bug 1409664 - P5. Fix comment. r=bryce
Summary:

Depends on D1617

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1618
2018-07-03 11:45:17 -07:00
Jean-Yves Avenard 24fc82476b Bug 1409664 - P4. Provide basic MediaCapabilities support. r=bryce
Summary:
The information returned is identical to
1- canPlayType() for file
2- MediaSource.isTypeSupported for media-source
3- MediaRecorder.isTypeRecorder() for recordings.

Depends on D1616

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1617
2018-07-03 11:45:16 -07:00
Jean-Yves Avenard b3aec00d77 Bug 1409664 - P3. Allow audio/webm container type in MediaRecorder. r=bryce
Summary:

Depends on D1614

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1616
2018-07-03 11:45:16 -07:00
Jean-Yves Avenard 83a8e7725c Bug 1409664 - P1. Add MediaCapabilities skeleton IDL. r=bz
Summary:
As per https://wicg.github.io/media-capabilities/#idl-index

Placed behind user pref media.mediacapabilities.enabled that is disabled by default

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1613
2018-07-03 11:45:15 -07:00
Chris Pearce 21f07622bf Bug 1463919 - Adjust mochitests to pass after changes. r=jya
Prior to the changes in this bug, a document would request autoplay permission
for its own origin, and not use the top level document's origin for the
permission check. Since now we use the top level document's origin for
requesting autoplay permission, some mochitests need to change, namely:

* test_autoplay_policy_permission.html can use
file_autoplay_policy_activation_frame.html directly.

The test was failing because its helper page was loaded same origin and the
helper page was testing if cross origin iframes could play; since we use the
top level document's permission request, this no longer effectively tests
whether the cross origin child can autoplay, as the cross origin child just
uses the top level window's origin for requests.

So we can instead load the helper window cross orgin instead, and remove one
helper layer.

Also an issue here is the way I was waiting for a new window to load was racy,
so now we wait for loading windows to send us a "ready" message.

* test_autoplay_policy_activation.html; this test's helper needs to wait for
loading windows to send it a "ready" message, as its helper is shared with the
above test.

MozReview-Commit-ID: LvRa4G7tqFw

--HG--
extra : rebase_source : 8ecd0e58200d79f0065a6d7b146d1d110d35953d
2018-06-27 16:15:58 +12:00
Chris Pearce ea95e39bc9 Bug 1463919 - Move ask autoplay permission check into AutoplayPolicy. r=jya
MozReview-Commit-ID: KJcVI6gtGXw

--HG--
extra : rebase_source : a2ccd2da32d77708fdeb6ea6361975a7759cb18d
extra : source : 9b1c40f3e61ab351707f2d320ce8f87951e4868e
2018-06-26 14:16:13 +12:00
Chris Pearce bbbdebe6e1 Bug 1463919 - Add AutoplayRequest to encapsulate asking for autoplay permission. r=smaug
Add an implementation of nsIContentPermissionRequest to encapsulate requesting
permission from the user to autoplay audible media.

All documents in the tab request permission using the top level document's
origin, so the AutoplayRequest instance for a tab is stored on the top level
content window of the tab.

AutoplayRequest ensures that there's only a single prompt shown at once.

MozReview-Commit-ID: 2u3aLnEa21z

--HG--
extra : rebase_source : a3db3a1ef87a09442b47ae1b1034b4a0143289fb
extra : source : ae572bf618155a92b136fc5f12c1f8c9ab31f89c
2018-06-22 11:57:24 +12:00
Alex Chronopoulos 8b700896f3 Bug 1460346 - Verify that AudioMixer'callback is removed before the destruction of GraphDriver. r=padenot
MozReview-Commit-ID: Jd0PVw7xHDV

--HG--
extra : rebase_source : 2e50404b08778ceadd76691312861d134d7c1a42
2018-06-29 10:05:56 +02:00
Alex Chronopoulos 9088abf6c9 Bug 1460346 - Remove unnecessary locking on an atomic value. r=pehrsons
MozReview-Commit-ID: 5SPjgHkPwTT

--HG--
extra : rebase_source : eccca9f4359b859c1bf78bf24a33d9620cd63589
2018-05-25 11:59:08 +03:00
Alex Chronopoulos 43f81a73ac Bug 1460346 - Assert in SetCurrentDriver method of MSG that is called from audio thread or when the thread is not running. r=pehrsons
MozReview-Commit-ID: 7JKcFxxDFCt

--HG--
extra : rebase_source : fe8d0b043117f3b5ecfe3ae36addae340c795875
2018-05-25 11:58:58 +03:00
Alex Chronopoulos cd6f5298c4 Bug 1460346 - Fix a case that ThreadedDriver is started when it is already working. r=padenot
MozReview-Commit-ID: 6R6WH3ITw03

--HG--
extra : rebase_source : 0762f709b7b82714f7c3a47ad59984e5bde49238
2018-05-25 11:58:58 +03:00
Alex Chronopoulos 7ab72fe907 Bug 1460346 - Assert that GraphDriver methods are called from graph thread. r=padenot,pehrsons
MozReview-Commit-ID: Kkl7ENMXlJq

--HG--
extra : rebase_source : ccc79b8cfcb1d6d86ced5bc2a5a2931eccd7ff72
2018-05-25 11:58:45 +03:00
Alex Chronopoulos 023dddff06 Bug 1460346 - Assert that driver switch request comes only from audio thread. r=pehrsons
MozReview-Commit-ID: B8ZTPE5qqpY

--HG--
extra : rebase_source : 9001972d910e5089c2c2fb72a912c3d18292094f
2018-05-22 19:51:48 +03:00
Alex Chronopoulos d3b6626bf0 Bug 1460346 - Create a method to check whether GraphDriver's thread is running. r=pehrsons
MozReview-Commit-ID: 8hOXvxDWOIG

--HG--
extra : rebase_source : 838637720c24e08769ea59204bb55da6678e71b4
2018-05-22 19:51:42 +03:00
Alex Chronopoulos 2b26626333 Bug 1460346 - Move checks for NextDriver member in the setter method. r=pehrsons
MozReview-Commit-ID: 906AyL0tEwG

--HG--
extra : rebase_source : 4359724926d9d06919fc911336125f308dfb1d07
2018-05-22 19:31:56 +03:00
Arnaud Bienner e89bd4b6e5 Bug 1470856 - Add AudioWorklet definition. r=baku,karlt
MozReview-Commit-ID: 39eqjisGNTE

--HG--
extra : rebase_source : 97c18e1125c490f3e9aa3b9d5c864f99da6fd265
2018-06-27 11:31:02 +02:00
Arnaud Bienner bd000427cf Bug 1466182 - Add AudioWorkletProcessor definitions. r=baku,karlt
MozReview-Commit-ID: 1KKrUqRY2qf

--HG--
extra : rebase_source : c287e1c4952f0f9a28dd39879d35bf37d6ce50d2
2018-06-24 20:02:47 +02:00
Bryce Van Dyk 7928956283 Bug 1450952 - If TrackBuffersManager is sent the same init segment, reuse same StreamID. r=jya
Some MSE streams will resend the same init segment. In these cases we can treat
the following data as belonging to the already existing stream. We do this by
reusing the same stream id. This stops us tearing down and restarting decoders
in these cases.  This has the benefit of stopping us introducing gaps to audio
and/or video.

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

--HG--
extra : moz-landing-system : lando
2018-06-29 07:33:23 +00:00
Margareta Eliza Balazs 6ff6f954a0 Backed out changeset cfbcac62d08e (bug 1466182) for causing bustage builds/worker/workspace/build/src/dom/media/webaudio/AudioWorkletProcessor.cpp on a CLOSED TREE 2018-06-29 14:45:37 +03:00
Arnaud Bienner a2c3715849 Bug 1466182 - Add AudioWorkletProcessor definitions. r=baku,karlt
MozReview-Commit-ID: 7BLS2iDpFf4

--HG--
extra : rebase_source : 8382347002ad28218ee82b596f3fddc6769e4e9e
2018-06-24 20:02:47 +02:00
sotaro 22c2a053bf Bug 1470386 - Recycle TextureClient at IMFYCbCrImage r=mattwoodrow 2018-06-28 12:56:36 +09:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez c7d35aa526 Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug
MozReview-Commit-ID: DsNuF7GAflJ
2018-06-26 18:22:06 +02:00
Margareta Eliza Balazs c866c30fcf Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-26 12:24:32 +03:00
Chris Peterson 2afd829d0f Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr

--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Chris Pearce 63dbf9d6f7 Bug 1470346 - Gesture activate all documents in tab, even across origins, upon user interaction. r=smaug
Sometimes when video is playing, a preroll ad plays, and that may be in a cross
origin iframe. If autoplay media is disabled, we require a user gesture in a
document before playback in that document is permitted, and we require each
origin to be gesture activated separately. So in the cross origin preroll video
add case, then the user will have to click once to unblock playback for the
cross origin ad, and then once the preroll ad finishes, the user will have to
click again to activate playback of the same origin content video.

This is a bad user experience.

So we should instead make gesture activation propagate up the doc tree
irrespective of crossing origins.  This way, when the user clicks to activate,
all documents in that tab are also also effectively gesture activated, and so
can autoplay.

MozReview-Commit-ID: 1HZQ5zkubR

--HG--
extra : rebase_source : d6b75732548cb1d73b9f82dce60a5e6e97d1da14
2018-06-22 11:52:20 +12:00
Jean-Yves Avenard 507a82e41c Bug 1470944 - Don't attempt to create a new demuxer upon changeType call r=bryce
Re-creating a new demuxer is fine, provided that the SourceBufferResource exists. However, a resource is only created upon receiving an init segment.

The segment following a call to changeType() must be an init segment, will let the demuxer creation occurs there.

Differential Revision: https://phabricator.services.mozilla.com/D1812
2018-06-25 19:13:13 +00:00
Jean-Yves Avenard 9ae6b235d5 Bug 1470814 - Update SourceBuffer.changeType behaviour. r=bryce
Follow current WICG https://github.com/WICG/media-source/tree/codec-switching as of revision f2ed457

The difference with the current spec can be seen with:
https://services.w3.org/htmldiff?doc1=https%3A%2F%2Fraw.githubusercontent.com%2FWICG%2Fmedia-source%2F9bb87ae9566f0db3d646b648e7370bdac97349ae%2Findex.html&doc2=https%3A%2F%2Fraw.githubusercontent.com%2FWICG%2Fmedia-source%2Fcodec-switching%2Findex.html

Differential Revision: https://phabricator.services.mozilla.com/D1810
2018-06-25 19:07:16 +00:00
Jean-Yves Avenard d677c92441 Bug 1470754 - Remove AMD VP9 MFT support r=bryce
Not even AMD supports it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D1793
2018-06-25 17:49:48 +00:00
Bryce Van Dyk a347705d9a Bug 1450845 - Add crashtest for seekToNextFrame when a seek is already in progress. r=jya
MozReview-Commit-ID: 892uIqNuLSg

--HG--
extra : rebase_source : bbe50807fb575fb0776646cbd233f3310741b848
2018-06-07 09:44:48 -04:00
Bryce Van Dyk 926f765909 Bug 1450845 - MediaDecoderStateMachine now ignores SeekToNextFrame if already seeking. r=jya
SeekToNextFrame is handled differently than other seeks by the
MediaDecoderStateMachine, and should not take place while other seeks already
are. Bug 1410225 implemented some changes in HTMLMediaElement to prevent this,
but it's still possible to move to a seeking state in the MDSM and accept
SeekToNextFrame (as in this bug).

This changeset changes the MDSM to reject SeekToNextFrame if a seek is already
happening. Since the MDSM now does this the changes from bug 1410225 can be
removed.

This has the functional change of the promise from SeekToNextFrame being
rejected if the seek in not performed due to another seek. Previously the
promise would succeed when the other seek completed. This seems sensible as the
next frame seek does not actually take place.

MozReview-Commit-ID: HD9WRFq3LZV

--HG--
extra : rebase_source : fb276010119038db4319b3b81bcbf51ef2cab1d9
2018-06-06 15:17:30 -04:00
Arnaud Bienner 5fdd4661b7 Bug 1458446 - Add AudioWorkletNode interface definitions. r=baku,karlt
MozReview-Commit-ID: BLumJG4BDke

--HG--
extra : rebase_source : 1a507149cefb76cedbcc336d9b9ae6e0eebed59c
2018-06-01 19:10:02 +02:00
Jean-Yves Avenard a9650899f6 Bug 1468241 - P2. Ensure RemoteVideoDecoder::mSeekTarget is only accessed on task queue. r=padenot
Amend comments to clarify how some members are accessed.

MozReview-Commit-ID: FeEIRap3zvn

Depends on D1726

Differential Revision: https://phabricator.services.mozilla.com/D1727
2018-06-21 13:34:41 +00:00
Jean-Yves Avenard 67eb7f4c9f Bug 1469257 - [H264] Only check for SPS changes on keyframe r=bryce
Some invalid streams contain SPS changes and those appear to only occur on non-keyframe, this cause all frames to be dropped until the next keyframe is found. This result in apparent freezes.

While it is theoretically possible to have SPS changes inband on non-keyframe those should be very rare (I've never seen one). The content would have been invalid anyway in an non-fragmented mp4.

So we now only check for a SPS change on keyframe. This would cause no affect on either windows, android or ffmpeg as those decoders handle format change fine. The mac decoder could however show garbled frames temporarily.

Differential Revision: https://phabricator.services.mozilla.com/D1733
2018-06-20 19:24:34 +00:00
Nico Grunbaum 2dc9bc2b7c Bug 1456101 - ensure X11 DesktopCapture module is created on main thread r=dminor
MozReview-Commit-ID: 8lP03135ttK

--HG--
extra : rebase_source : 0ba001a933637e2ef76810d2e85a71b12dd49017
2018-06-04 22:03:14 -07:00
Joel Maher 8324126795 Bug 1405428 - annotate crashtests and reftests which fail in test-verify mode. r=gbrown 2018-06-19 11:38:25 -04:00
Dan Minor b83fc6c040 Bug 1445683 - Updates to AOMDecoder; r=jya
This reflects the API changes to the aom_codec_decode function and the removal
of I440. It also sets allow_lowbitdepth to give proper support for 8 bit video,
and removes the git version from the mime type.

MozReview-Commit-ID: GuTvnPkR1Er

--HG--
extra : rebase_source : 4540f74df335d59714a61d5f7e2ad7a54f8fa00d
2018-04-23 16:03:27 -04:00
Dan Minor a2a0f53596 Bug 1445683 - Update aom to v1.0.0; r=jya
Update aom to rev d14c5bb4f336ef1842046089849dee4a301fbbf0.

MozReview-Commit-ID: YoPHbFHRq2

--HG--
rename : third_party/aom/build/cmake/aom_config.c.cmake => third_party/aom/build/cmake/aom_config.c.template
rename : third_party/aom/md5_utils.h => third_party/aom/common/md5_utils.h
rename : third_party/aom/warnings.h => third_party/aom/common/warnings.h
rename : third_party/aom/webmenc.h => third_party/aom/common/webmenc.h
rename : third_party/aom/y4minput.h => third_party/aom/common/y4minput.h
rename : third_party/aom/aomstats.h => third_party/aom/stats/aomstats.h
rename : third_party/aom/rate_hist.h => third_party/aom/stats/rate_hist.h
extra : rebase_source : 6e3d836d1d36879f862ed74227522e422f4fb5c1
2018-06-21 13:47:50 -04:00
Paul Adenot 65c5379bb6 Bug 1476744 - Pull values from the AudioListener when computing PannerNode values. r=karlt
MozReview-Commit-ID: KiaLegWHOZV

--HG--
extra : rebase_source : 92d8d9644157a1eceb5638ed6ef10a4f1bfa0a15
2018-07-17 12:01:24 +02:00
Paul Adenot c0f386b1a6 Bug 1148354 - Remove the tests related to the doppler effect from mochitests. r=karlt
MozReview-Commit-ID: 7DZy9ySQrTc

--HG--
extra : rebase_source : aae5a0e6ac2fa5a6f4d13dda75a22db85be1560f
2018-07-17 10:04:33 +02:00
Paul Adenot fa9c6503ab Bug 1148354 - Remove the doppler effect from the PannerNode. r=baku,karlt
MozReview-Commit-ID: 8aGlRTt77Bv

--HG--
extra : rebase_source : cfc3e9112d54e62b576a508c084df923c10bacdd
2018-07-19 11:19:29 +02:00
Andreea Pavel 98338c6ff5 Backed out 4 changesets (bug 1476744, bug 1148354) for failing android at http://10.0.2.2:8854/tests/dom/media/test/crashtests/doppler-1.html on a CLOSED TREE
Backed out changeset 0ae34db4c34f (bug 1476744)
Backed out changeset 97d89ba5f93d (bug 1148354)
Backed out changeset d9174c023701 (bug 1148354)
Backed out changeset b4085dba45c5 (bug 1148354)
2018-07-20 17:13:20 +03:00
maxLanglade 7292f5dbd0 Bug 1413284 - A RangeError exception is thrown if start/stop is called with a out of range param r=padenot
MozReview-Commit-ID: G65bFgMu10D

--HG--
extra : rebase_source : e2a4f44072d568c5960994f330bb9550bc05830e
2018-07-18 21:32:14 +02:00
Paul Adenot 39fa812acf Bug 1476695 - Return minimum and maximum 32bits float for AudioParam.{minValue,maxValue} that used to return infinity. r=karlt
MozReview-Commit-ID: 2eDNA3HU1j5

--HG--
extra : rebase_source : 55c4952a9f80a1bdba65c74e818c8bf9c1e4b2d5
2018-07-16 17:56:16 +02:00
Paul Adenot cd897cd542 Bug 1476744 - Pull values from the AudioListener when computing PannerNode values. r=karlt
MozReview-Commit-ID: KiaLegWHOZV

--HG--
extra : rebase_source : 92d8d9644157a1eceb5638ed6ef10a4f1bfa0a15
2018-07-17 12:01:24 +02:00
Paul Adenot 55c4d21c1e Bug 1148354 - Remove the tests related to the doppler effect from mochitests. r=karlt
MozReview-Commit-ID: 7DZy9ySQrTc

--HG--
extra : rebase_source : 38a20e4411807bd0554b9bc26fd44ebfee18c090
2018-07-17 10:04:33 +02:00
Paul Adenot 5a67ba5c59 Bug 1148354 - Remove the doppler effect from the PannerNode. r=baku,karlt
MozReview-Commit-ID: 8aGlRTt77Bv

--HG--
extra : rebase_source : c566708f275949908afe75f4fd0066b1b3e6bfc5
2018-07-19 11:19:29 +02:00
Paul Adenot 76f4e9a05b Bug 1477200 - Temporarily bump audio input and output latency on OSX as a stop-gap measure, on macbook pros. r=pehrsons
MozReview-Commit-ID: 3kD3ZRT2fDf

--HG--
extra : rebase_source : 675c1a729953ab3d6ef52bb165787b151136c3f3
2018-07-20 11:27:27 +02:00
Jean-Yves Avenard d5c79ef387 Bug 1477011 - Report vp9 in mp4 as supported. r=dminor
Since we switched to the mp4 rust demuxer, VP9 in mp4 is always supported.

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

--HG--
extra : moz-landing-system : lando
2018-07-20 11:36:57 +00:00
shindli 350fbcac6e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-19 00:46:12 +03:00
Nathan Froyd a3edf6e096 Bug 1448014 - avoid needless flattening in AndroidDecoderModule; r=jesup 2018-06-18 15:27:06 -04:00
Andi-Bogdan Postelnicu 60732a90a5 Bug 1453795 - DOM/Media - Initialize member fields in classes/ structures. r=jyavenard
--HG--
extra : rebase_source : 0c785260497fadf98cf3cff8b9fcae8ea699c2c1
2018-06-15 10:25:02 +03:00
Dan Minor 434e9b076a Bug 1409018 - Re-enable test_getUserMedia_basicScreenshare; r=pehrsons
MozReview-Commit-ID: J5yvuOFoMmv

--HG--
extra : rebase_source : 39565f87ae1f73d41157cbc2e1c1f50735b182f4
2018-06-06 13:49:49 -04:00
Valentin Gosu 4cade1b2b5 Bug 1389251 - Add esc_Spaces that may be used to force escaping of spaces r=bz,jdescottes
MozReview-Commit-ID: 4tahH3IOKW

--HG--
extra : rebase_source : 12057b98c87d7d3c57e90888082f540c49c5a9a9
2018-06-18 15:06:25 +02:00
arthur.iakab fbbbabafe4 Merge inbound to mozilla-central a=merge 2018-06-16 00:50:29 +03:00
Andi-Bogdan Postelnicu 7b56b88b06 Bug 1453795 - WebRTC Media - Initialize member fields in classes/ structures. r=rjesup
--HG--
extra : amend_source : d9882d97fd52f082cccf2470cb16fdc8f8fc0d43
2018-06-15 18:47:33 +03:00
Margareta Eliza Balazs ac210735e9 Backed out changeset b1fa2cf6ccae (bug 1405428) for frequent failures in tests/dom/media/test/crashtests/crashtests.list on a CLOSED TREE 2018-06-15 17:23:10 +03:00
Joel Maher 1f04480295 Bug 1405428 - annotate crashtest files. r=gbrown 2018-06-15 09:32:22 -04:00
Paul Adenot bb1f5707b6 Bug 1468085 - Always resolve the promises returned by a resume call, even if the context is already running. r=karlt
MozReview-Commit-ID: EQgw4Q2eat4

--HG--
extra : rebase_source : 136279a3913a4722e64a49313ac988ccfcbd52cd
2018-06-11 16:51:27 -07:00
Dorel Luca ba31c8c2b2 Backed out 3 changesets (bug 1389251) for browser-chrome failure on browser/base/content/test/pageinfo/browser_pageinfo_image_info.js. CLOSED TREE
Backed out changeset a76a3251a9d2 (bug 1389251)
Backed out changeset c6baebf7b34c (bug 1389251)
Backed out changeset 6e89a11ae28e (bug 1389251)
2018-06-15 06:18:04 +03:00
Valentin Gosu 316f7bf9ac Bug 1389251 - Add esc_Spaces that may be used to force escaping of spaces r=bz,jdescottes
MozReview-Commit-ID: 7VgNlkWqrPK

--HG--
extra : rebase_source : c7ea99bc727a82e652871e78c222e8d5d642a52e
2018-06-12 03:05:03 +02:00
Jean-Yves Avenard c25586298b Bug 1466385. Use forwarding reference in MaybeResolve. r=bz
This allows move semantics when resolving Promises

MozReview-Commit-ID: EYFd3Abr7Ec

--HG--
extra : rebase_source : e4553f3a5a9298d98ca454d98ca4158097b46efd
2018-06-02 13:26:06 +02:00
Joel Maher 50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Jean-Yves Avenard 1597386a00 Bug 1466606 - P2. Re-use code to determine NextGetSample index. r=bryce
Previous commit added SetNextGetSampleIndexIfNeeded, let's re-use it for GetSample.
We continue to have an exception code as it caters for the most common code path, which is we retrieve one sample after the other.

MozReview-Commit-ID: HOQ53qwZj7w

--HG--
extra : rebase_source : cc9bc0b41a7085d28554f7ed764a18decfea327d
2018-06-06 21:47:52 +02:00
Jean-Yves Avenard 3da25ab8e6 Bug 1466606 - P1. Calculate the current GetSample index when needed. r=bryce
The assumption that when calling GetNextRandomAccessPoint the next GetSample index would always be known was incorrect. It assumed that the call to GetNextRandomAccessPoint would always be preceded by a call to GetSample.
This is not always how the MediaSourceDemuxer called it.

MozReview-Commit-ID: H1MyPpDEytk

--HG--
extra : rebase_source : 07f70ee87ae5084016a094c564382090a3045e94
2018-06-06 15:14:24 +02:00
Andreas Pehrson d49248bb03 Bug 1266345 - Re-enable test on linux64. r=bryce
MozReview-Commit-ID: IJqncmqDeKL

--HG--
extra : rebase_source : 055e1ccaecb0dbe6845194f350f7067a66dd57ba
extra : source : 7bd5c5b0f7104cd989735f3292dfe9150d4be336
2018-06-08 12:29:28 +02:00
Andreas Pehrson 6017499cef Bug 1266345 - Let MediaRecorder ignore ended tracks. r=bryce
MozReview-Commit-ID: 8P1p0uI46BZ

--HG--
extra : rebase_source : 635ac78b2ea46041b77fd80ad5d4a387998cb413
extra : source : 1974769521fc9c1e823e56766e2ac2ba967b28a4
2018-06-08 12:28:55 +02:00
Ciure Andrei 05605d68c4 Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
Jan de Mooij f7fb3be6ec Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Byron Campen [:bwc] 0afe738d22 Bug 1464079: Bring ICE connection state change callback up to spec. r=jib
--HG--
extra : rebase_source : e287ad23cbf3766731b14e93ad18e295654564ee
2018-05-31 11:30:19 -05:00
Andreas Pehrson c9fedaf3f7 Bug 1282262 - Disable test on android. r=padenot
MozReview-Commit-ID: 5tq1twcl42b

--HG--
extra : rebase_source : 04328c487a297dac1cb1baeaf6a02744b2f065e5
extra : histedit_source : c83a8bb07ebcdb8cddca97eb9e5cac9960fd1b4c
2018-05-30 15:25:06 +02:00
Jean-Yves Avenard b48f26ad93 Bug 1466606 - Revert "Add diagnostic code.". r=bryce
This reverts commit 4c1f90791492fc441cc600f66ff2d36c7910e905

MozReview-Commit-ID: KbMWKE08vT8

--HG--
extra : rebase_source : c3db78ddf82684475a63acd75de0180a9c66b6cb
2018-06-06 14:12:25 +02:00
Andreas Pehrson bd7dee7a25 Bug 1282264 - Disable test on android. r=padenot
MozReview-Commit-ID: BASmW65yidn

--HG--
extra : rebase_source : 518be793db10ffb132124778e4b8e47b4c9b68a7
2018-06-05 14:45:44 +02:00
Byron Campen [:bwc] 5fd5dd9679 Bug 1434983: Make screenshare and windowshare test one-way, to work around limitations on OS X. r=pehrsons
MozReview-Commit-ID: Ldy7Wb3ZSPQ

--HG--
extra : rebase_source : 543c9c107e3f5b44f1744977e494ddd000e07368
2018-05-29 08:35:36 -05:00
Jan-Ivar Bruaroey 9d549a104e Bug 1467018 - Remove callback argument from fetchWithXHR() and once() helpers. r=bryce
MozReview-Commit-ID: DJDqKN9Opn3

--HG--
extra : rebase_source : c5dd2175398c3f5c9e5a3d6c8fb3e8868be4ce19
2018-05-25 11:25:45 -04:00
Chris Pearce e08b3c171c Bug 1464922 - Don't allow media without audio tracks to autoplay. r=bryce
I don't think we should allow media without audio tracks to autoplay because:
* It means play() before loaded metadata behaves differently than play()
called after loaded metadata.
* With the current impl we dispatch the "play" event and then the "pause"
event when we decide we should block, which may confuse some sites' controls.
* Delaying running the play() algorithm until we've loaded metadata would add
significant complexity, and may break sites.
* Chrome doesn't have this provision, meaning the complexity required to
support it will not result in much benefit to us.

MozReview-Commit-ID: FSVlDJAOisw

--HG--
extra : rebase_source : 93b1bcf8d8edbd6ca10ad918b40a87cd3cfbbf0b
2018-05-28 22:09:14 +12:00
Chris Pearce 1cf7b8ae13 Bug 1464930 - Move AutoplayPolicy Camera/Mic permission test to after gestures-needed pref check. r=bryce
We only should do the camera/mic permission or active capture test in
the case where document gesture activation is enabled.

MozReview-Commit-ID: 9xSe8FDn5tu

--HG--
extra : rebase_source : fb19fdcc7003d7ba04f5f1ab3a7d51ce63abc3db
extra : intermediate-source : 7de5bdbef79bacbee3284d49b77de36aceb0270e
extra : source : e72b9f4dcf418d4fcd2a0698f601d42eb9b0ecc0
2018-05-18 13:43:00 +12:00
Jean-Yves Avenard 37ecd2740d Bug 1466606 - Add diagnostic code. r=bryce
Temporary diagnostic code to help determine what the problem might be.

MozReview-Commit-ID: D5Dm32aZ1Ia

--HG--
extra : rebase_source : ba0955c2b880823986277919f05a32e9095b14fa
2018-06-05 13:48:59 +02:00
arthur.iakab fd0ee7c9b8 Merge inbound to mozilla-central a=merge 2018-06-06 00:58:30 +03:00
Andreas Pehrson 9d5b27393d Bug 1453127 - Clear output streams on shutdown. r=jya 2018-05-30 10:44:56 +02:00
Andreas Pehrson 6c6e70fcbc Bug 1453127 - Ensure TrackID uniqueness for captured MediaDecoder. r=jya 2018-05-29 10:21:51 +02:00
Dorel Luca 746fbfe0a7 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-04 21:11:34 +03:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
Felix Weinrank 26bdec1e8b Bug 1464917 - Allow maxPacketLifeTime and maxRetransmits to be zero; r=drno
MozReview-Commit-ID: HtYGXPy6pZ

--HG--
extra : rebase_source : 75e153fbf3841d20f7fca80de6905b7ee96f688b
2018-05-31 09:49:24 -04:00
Jonathan Watt 6a304d9349 Bug 1405083 - Disable test_getUserMedia_basicScreenshare.html for now. r=permafail
This test became permafail after the patch for bug 1270217 landed to update
the default value for MACOS_DEPLOYMENT_TARGET from 10.7 to 10.9.  We need to
update that value since otherwise local builds are broken on Mac, halting all
Mac development.  As the lesser of two evils I'm disabling this test for now.
2018-05-11 16:51:27 +01:00
Andrea Marchesini 7ba8b77e07 Bug 1466023 - Separate FontTableURI and BlobURL, r=qdot
This patch splits FontTableURI and BlobURL in 2 classes:
FontTableURIProtocolHandler and BlobURLProtocolHandler
both under mozilla::dom.

It also removes a memory reporter because that report is already covered by the
BlobURL one.

--HG--
rename : dom/file/nsHostObjectProtocolHandler.cpp => dom/file/BlobURLProtocolHandler.cpp
rename : dom/file/nsHostObjectProtocolHandler.h => dom/file/BlobURLProtocolHandler.h
2018-06-02 15:51:42 +02:00
Andrea Marchesini d64c4294eb Bug 1466023 - Get rid of NS_GetStreamForBlobURI, r=qdot 2018-06-02 15:51:41 +02:00
Emilio Cobos Álvarez 1e9c395548 Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:

  s/mozilla::Forward/std::forward/
  s/Forward</std::forward</

The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)

MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
Csoregi Natalia e2f48890e1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-02 01:05:17 +03:00
Csoregi Natalia 468205953d Merge inbound to mozilla-central. a=merge 2018-06-02 01:01:33 +03:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Bryce Van Dyk c9d6056854 Bug 1465409 - Change lint rules for mediasource tests to prefer no spaces for array notation. r=jya
Change rules so we enforce ["foo", "bar"] rather than [ "foo", "bar" ].

MozReview-Commit-ID: KX6wJd8jmeJ

--HG--
extra : rebase_source : 6800cf4e701a33f246418e0deb35a206af8104f4
2018-05-30 08:18:54 -04:00
Andreas Pehrson 265a0934ca Bug 1463581 - Signal enabled state changes also on UnregisterSink. r=jib
MozReview-Commit-ID: FDCO73SdBoL

--HG--
extra : rebase_source : 642b59d13fbec001faa7991075ab7809e9f6ce56
2018-05-30 16:48:22 +02:00
Paul Adenot b0d0866f95 Bug 1456265 - Also update test_channelSplitterNodeWithVolume.html
--HG--
extra : rebase_source : 353b42cb78e73aa35caa4d6375f67f1769cf6add
extra : intermediate-source : eb7cba7e1120302f696c002d42cae86d3de1d4b5
extra : source : ee0c4548a78a794de83ce82d994bd5cfa6c84e23
2018-05-30 18:23:37 +02:00
Paul Adenot f286db11ce Bug 1456946 - Properly reflect the channelCount when set in the ctor using the option object, on a ChannelSplitterNode. r=achronop
MozReview-Commit-ID: DrnadeBS8hi

--HG--
extra : rebase_source : ca28ff595fdefaf8327c0a6ef4826f3b2cd02368
extra : intermediate-source : 9af1ffb437be63b6956970b47eebc78e6e2310af
extra : source : 91a4b9b7cfa8444e760a99ae4518e678e1cc14ef
2018-05-29 18:16:24 +02:00
Paul Adenot 54199c6959 Bug 1456946 - Don't call AudioNode::Initialize on an ChannelSplitterNode during construction to avoid throwing. r=achronop
We initialize the channelCountMode and channelInterpretation (that cannot be
changed) appropriately in the C++ ctor, and the channelCount manually as well.

Then we check manually that the options for the channelCountMode, the
channelCount and channelInterpretation have not been passed, or are not
incorrect.

MozReview-Commit-ID: 4YdYfaGqKqn

--HG--
extra : rebase_source : 54000c4f79361945142bb413b7eeebb2967d4fbb
extra : intermediate-source : 9a085b0513f78344b07724c049860b089c313894
extra : source : 852233de6408712da07a2f09721c7e35d67d608f
2018-05-29 18:15:29 +02:00
Paul Adenot a8662a7938 Bug 1456265 - Make ChannelSplitterNode have a channelCountMode of "explicit" and a channelIntepretation of "discrete" by default. r=achronop
MozReview-Commit-ID: 5pAdWn9zV9e

--HG--
extra : rebase_source : bcb5fcac629a403a12481b55e577facf57c2fca5
extra : intermediate-source : ebfc3c04016ab0cce5489973e63cdb6dfdee191c
extra : source : 42f845da213bcb73fb3400d6628e3ffc15b3992b
2018-05-29 17:18:39 +02:00
Arnaud Bienner e1cac52f37 Bug 1460907 - Implement AudioParamMap definitions. r=karlt,qdot
MozReview-Commit-ID: AdsI9QU3VOX

--HG--
extra : rebase_source : b72d898550289f0637d7cb1c9796a12a7b4fc782
2018-05-13 16:16:23 +02:00
Andreas Pehrson 9e6a6da509 Bug 1282262 - Reduce number of (slow) gUM requests in test_gUM_mediaStreamClone. r=padenot
MozReview-Commit-ID: 1By46JEdXj6

--HG--
extra : rebase_source : 738ff1be92d618f5a6fe7dab8d3f63749d7b8cb6
2018-05-30 14:45:38 +02:00
Matthew Gregan 29d47f27a7 Bug 1465299 - Update AudioIPC pref defaults in CubebUtils.cpp to match actual defaults in all.js. r=padenot
MozReview-Commit-ID: 16fC71RT0AB

--HG--
extra : rebase_source : f85f04494d32afa24baeb7de89247b5360aea7bc
2018-05-30 14:02:13 +12:00
Dan Minor a20dc982b3 Bug 1450658 - Add preference to disable focusing source; r=pehrsons
Focusing a source during a test run can cause Firefox to lose focus and
subsequent tests to timeout. This adds a preference which defaults to true
that allows the source to be focused. It is then set to false for tests that
involve screen sharing.

MozReview-Commit-ID: CNq2c87y8Ho

--HG--
extra : rebase_source : 805e2cbf9c09af419419a64d074e020784185b1d
2018-05-29 16:14:38 -04:00
Dan Minor 50a3ab6cd4 Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.


MozReview-Commit-ID: 5jre75E3JLi

--HG--
extra : rebase_source : 5f5154fc9fc7590cc02eb25146e5bc20b2243fa3
2018-05-08 15:55:36 -04:00
Jan-Ivar Bruaroey 4439872dc0 Bug 1462990 - Use async/await in mediasource mochitests r=bryce
MozReview-Commit-ID: AIr8CLyuGb7

--HG--
extra : rebase_source : 2136b7faccc24da6b163b0edf908a198136a7638
2018-05-21 16:40:13 -04:00
Jan-Ivar Bruaroey 5017b2c432 Bug 1462990 - Use async/await in mediasource/test/mediasource.js r=bryce,jya
MozReview-Commit-ID: BnQ30DnY4mB

--HG--
extra : rebase_source : fd89494f1f5946a9b8505456ab9761d3cc1914fa
2018-05-18 10:26:11 -04:00
Margareta Eliza Balazs d11876a092 Backed out changeset 9e1a3230d085 (bug 1456265) for mda3 failures in dom/media/webaudio/test/test_channelSplitterNode.html on a CLOSED TREE 2018-05-29 19:32:26 +03:00
Paul Adenot 9f03d7a44c Bug 1456265 - Make ChannelSplitterNode have a channelCountMode of "explicit" and a channelIntepretation of "discrete" by default. r=achronop
MozReview-Commit-ID: 5pAdWn9zV9e

--HG--
extra : rebase_source : c001d5f5db0ff658027f18195ff5ff95abb314c9
2018-05-29 17:18:39 +02:00
Jean-Yves Avenard 34c40846b5 Bug 1457661 - P2. Ensure we call NotifyDataEnded for local resource once size is known. r=bryce
A call to NotifyDataEnded is required even if the size was known when the resource was created. This ensures that the readyState is properly updated and that playback can immediately as no more data can be added once first loaded.

MozReview-Commit-ID: FaJMBxJ9NkM

--HG--
extra : rebase_source : 448087a22635dac2aa31611c2b58a8e9c77121ec
2018-05-28 23:06:38 +02:00
Jean-Yves Avenard cb6ce94cf2 Bug 1457661 - P1. Add mochitest. r=bryce
MozReview-Commit-ID: 9YC8MaXRF42

--HG--
extra : rebase_source : 5bb2dc4c1f2dbb68d3713d536ecbe7f35eabb544
2018-05-28 22:39:10 +02:00
Jean-Yves Avenard 535b2be403 Bug 1454630 - P4. Only wait for CDMProxy if actually needed for the given decoder. r=bryce
If the particular track isn't encrypted, there's no need to wait for a CDMProxy.

MozReview-Commit-ID: DPbvbwsO58N

--HG--
extra : rebase_source : 0e7fea134404c861268dc8759cd7c0ebdf83dca4
2018-05-28 15:10:19 +02:00
Jean-Yves Avenard cc044be0ee Bug 1454630 - P3. Always recreate the PDMFactory when CDMProxy change. r=bryce
The code couldn't have worked and didn't do what the comment stated. When the CDMProxy changes, the current PDMFactory for encrypted content can no longer be used.

MozReview-Commit-ID: 7LpcQkK5gLL

--HG--
extra : rebase_source : e3926034069285be1559d0a1ea20d5f3c1561eb7
2018-05-28 14:46:35 +02:00
Jean-Yves Avenard 09c18364f7 Bug 1454630 - P2. Use new PDMFactory whenever encryption type change. r=bryce,cpearce
If the content being played was first non-encrypted, the PDMFactory would have been set without a CDMProxy. As such, it is necessary to use a new PDMFactory when the encryption type changes (from clear to encrypted).

Rather than attempting to detect if the encryption status has changed, simply use two PDMFactory, one with CDMProxy set and one without (for clear content)

Also, never attempt to recycle a decoder if the encryption type changed (used only on Android)

The TrackBuffersManager would have already handle the dispatching of the encrypted event when parsing the new init segment. As such, nothing more is necessary.

MozReview-Commit-ID: Jn14P2F6N5V

--HG--
extra : rebase_source : afe254fa8c4b835b15d9d48bb52d832f28196b7e
2018-05-27 18:42:25 +02:00
Jean-Yves Avenard b0af7c4063 Bug 1454630 - P1. Simplify retrieval of current TrackInfo. r=bryce
Adding some documentation to clarify on the difference between mInfo and mOriginalInfo

MozReview-Commit-ID: DWBsoi16QKf

--HG--
extra : rebase_source : 719c17b9ce61efdb633db108230f1bf78773ee51
2018-05-26 21:21:45 +02:00
Jean-Yves Avenard 15d6ce1610 Bug 1450607 - P3. Remove unused argument. r=gerald
MozReview-Commit-ID: 6NU9BLJi6kl

--HG--
extra : rebase_source : a9fca396ca5c353be979196dde4b1b02137cc9ca
2018-05-24 17:38:02 +02:00
Jean-Yves Avenard f1f3bc2758 Bug 1450607 - P2. Synchronously seek to prepare for resuming following stop request. r=gerald
Bug 1415090 attempted to remove the need to access from the MediaResource members of MediaCacheStream from the main thread.
However, by doing so the logic flow for resuming the channel changed from a synchronous access to an asynchronous one.
This changed some assumptions and allowed the ChannelMediaResource to be used before the Seek call completed.

For now, re-add a cross thread access to the MediaCacheStream. A more elegant fix will be worked on in bug 1464045

MozReview-Commit-ID: 2xBTjDEqrkI

--HG--
extra : rebase_source : 0aa3cfcb8371d5147cbed746d9200dd22df4821b
2018-05-24 14:36:58 +02:00
Jean-Yves Avenard 1d73f87b45 Bug 1450607 - P1. Fix constness. r=gerald
MozReview-Commit-ID: CeftB0qmzTf

--HG--
extra : rebase_source : 7d8a75754990fd6cab1ad8f620d5d5675c46ea88
2018-05-23 21:27:31 +02:00
Jean-Yves Avenard aa3feebecc Bug 1451149 - P2. Don't fire the "stalled" event when using MSE. r=bryce
When using a media element with a Media Source, the resource fetching algorithm is to be called in "local" mode:
https://www.w3.org/TR/media-source/#mediasource-attach
"Continue the resource fetch algorithm by running the remaining "Otherwise (mode is local)" steps, with these clarifications"

https://html.spec.whatwg.org/multipage/media.html#concept-media-load-resource
Under the local mode, the steps that would cause the element to fire suspend, stalled or progress can never occur.
We only prevent the stalled event to be fired, many websites rely on the progress event to be fired (such as when the init segment has been parsed). The HTML5 media spec will be amended to clearly indicate that progress is to be fired even with mediasource

MozReview-Commit-ID: DkoQzoV0JzO

--HG--
extra : rebase_source : 1e916eee50c9935f168797bb5a92052191cda59d
2018-05-14 11:32:09 +02:00
Jean-Yves Avenard 8c2fb70982 Bug 1461268 - P2. Bump benchmark version ID. r=bryce
This will force the benchmark to be re-run, following de-activation of the AMD VP9 decoder.

MozReview-Commit-ID: KwwoQNfSJ4t

--HG--
extra : rebase_source : 4edc750d448d6f023a645457edcbd138974c7d9a
2018-05-24 15:21:15 +02:00
Natalia Csoregi 1ff5ce3bb8 Bug 1461963 - Removed OSX 10.6 reference. r=gbrown 2018-05-17 15:26:00 +03:00
Kris Maglione 8134b33e89 Bug 1462964: Remove obsolete nsIDOMBlob interface. r=bz
MozReview-Commit-ID: 2HIlaSrvfBe

--HG--
extra : rebase_source : 944a6244dbfe1f0a37dd34a041d1329624a86f93
extra : histedit_source : d7859be664fed00f8504e40969480d3af3d674e7%2C4456b502db338bd06823654306e47c2583101396
2018-05-21 17:32:44 -07:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
sotaro 5ae7f885d0 Bug 1466059 - Use DeviceManagerDx::GetImageDevice() in WMFVideoMFTManager::InitInternal() r=nical 2018-06-04 09:42:16 +09:00
Andreas Pehrson f106fb9d83 Bug 1429507 - Add crashtests. r=jib
MozReview-Commit-ID: GnO6PJYM9Eb

--HG--
extra : rebase_source : 224a9e5dbb70492c39370d6b0abfba0991ce0a82
extra : intermediate-source : 115052e2723e4b0fff347607ec85607afc83ac5c
extra : source : 1f723c13a9754d9be9f0f83d7169a066bcc8c1ef
2018-03-15 15:26:06 +01:00
Dorel Luca 4ded9f31ea Merge mozilla-central to autoland 2018-06-04 21:14:46 +03:00
Paul Adenot adf8e4702d Bug 1413098 - Part 5 - Allow starting an AudioContext when gUM has been allowed. r=pehrsons
MozReview-Commit-ID: E0fcpIbLhYJ

--HG--
extra : rebase_source : 927d9d0ca04dd593d49efdffe70ce9f70ddce8bd
extra : source : 3c186b3bb90961748566b7c39af27beebb3ec855
2018-04-27 19:13:40 +02:00
Paul Adenot c2e2a570a5 Bug 1413098 - Part 4 - Rename variable and reorder argument to remove default argument value. r=pehrsons
MozReview-Commit-ID: CGrHExujtZ1

--HG--
extra : rebase_source : a12632d384ce175b34b8ba987ca49ec96fbb7a1f
extra : source : b12730d42016a38c7869dfc50a4646198c9002df
2018-02-26 15:02:45 +01:00
Chris Pearce d08cfaf67f Bug 1461877 - Test that we don't dispatch 'playing' event for blocked playbacks. r=bryce
MozReview-Commit-ID: KXfviOtqGZI

--HG--
extra : rebase_source : 3ce026dc6fd6e05ce5f75d9860dc567e846a0cbf
2018-05-18 11:41:28 +12:00
Jim Chen c68f5f3de7 Bug 1458020 - 5. Return default sample rate / frames per buffer; r=esawin
We apparently fail to get these properties when running in an emulator,
so we should just return default values.

MozReview-Commit-ID: IZVYIG9INaq
2018-05-18 10:16:04 -04:00
Jim Chen 4053e24872 Bug 1458020 - 3. Set JavaVM when actually using video capture; r=jib
We currently set the Android JavaVM pointer in MediaEngineWebRTC.
However, because of that, we end up setting the pointer in the child
process, even though we really want to set the pointer in the parent
process because that's where the camera will be accessed.

This patch makes us set JavaVM inside VideoEngine itself, where we
actually access the camera in the parent process.

MozReview-Commit-ID: 3TeLiiK2vyh
2018-05-18 10:16:04 -04:00
Chris Pearce 68af64e32b Bug 1461540 - Ensure errorMessage is initialized on all code paths in WebAudioDecodeJob::OnFailure(). r=jya
Doesn't look like it's strictly necessary, but suppresses the warning.

MozReview-Commit-ID: EQBar71yNVg

--HG--
extra : rebase_source : 063639000fd47b32343d47a8ca428c134fdce43b
2018-05-15 13:12:13 +12:00
Bryce Van Dyk d74241d1f7 Bug 1461785 - Update dom/media/mediasource/test to abide eslint rules, add .eslintrc.js. r=jya,standard8
Add .eslintrc.js to configure globals from mediasource.js and to add extra
rules to encourage use of let and const over var.

Linting changes:
- Prefer const and let to var. This provides tighter scoping and avoids
  reassignment.
- Mozilla rules do not allow for shadowing of variables, so several tests have
  had promise lists renamed to avoid this.
- Numerous minor fixes to formatting including using double quotes, spacing,
  missing semicolons.
- Remove some unused variables.
- Arrays have spaces after opening braces and before closing braces, e.g.
  [ "foo" ], this is to be consistent with our clang-format rules.
- Fix naming of resourcePathSeen in test_MediaSource_memory_reporting.html.

MozReview-Commit-ID: 5q6oS7EWLTk

--HG--
extra : rebase_source : 9b67b294f338ca9205b52fded3af63e6c3ac9a5a
2018-05-14 10:08:59 -04:00
Jean-Yves Avenard 5c9362146d Bug 1457499 - P3. Query decoded frame size instead of calculating it. r=bryce
Under most cases, the frame decoded height is just the displayed height rounded to the next 16 row aligned value.
However, this doesn't appear to always be the case. So we query the WMF framework for the decoded frame size.
We continue to use the displayed sizes as found in the SPS to ensure proper display of non 1:1 aspect ratio.

Adding diagnostic assertion to find potential regressions, we will address those as they come.

MozReview-Commit-ID: L8VowEw6L9F

--HG--
extra : rebase_source : 49acd9fd36469ee0a4e1ed0fe5cd6f2211ba8117
2018-05-16 11:09:20 +02:00
Jean-Yves Avenard 9ad27a22c2 Bug 1457499 - P2. Fix compilation warning. r=bryce
TaskQueue::Dispatch returns a nsresult which must be checked.

MozReview-Commit-ID: 7Tl7O96rQNt

--HG--
extra : rebase_source : e898b776f765a5641a794a7242715728940075f6
2018-05-16 11:03:05 +02:00
Jean-Yves Avenard 4bbe4e2668 Bug 1457499 - P1. Remove unused variable. r=bryce
Prevent a compilation warning

MozReview-Commit-ID: HT1UzsFUNXj

--HG--
extra : rebase_source : c552745bad82ef3f6faf7fc29ad10682211fe6d2
2018-05-16 11:01:58 +02:00
shindli 55f2b0d77a Merge inbound to mozilla-central. a=merge 2018-05-16 21:31:38 +03:00
Andrea Marchesini 3ef72562fe Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin 2018-04-24 16:19:51 +02:00
Jan de Mooij 80e44e8003 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Jean-Yves Avenard 559fa1a1f2 Bug 1280613 - P3. Mochitests. r=bryce
MozReview-Commit-ID: 5FIe9qfNZWd

--HG--
extra : rebase_source : b8f0a01abeba4dc4356f933a29ed0595fc9884c4
2018-05-11 09:01:25 +02:00
Jean-Yves Avenard 756284d1ab Bug 1280613 - P2. Add experimental SourceBuffer.removeAsync. r=bz
The aim of those changes is to be incubated in the WICG.

MozReview-Commit-ID: K93xiTod6tw

--HG--
extra : rebase_source : 788122a69b6cab96bab9c2ae6e8cdf7c61d4ed07
2018-05-11 04:07:24 +02:00
Jean-Yves Avenard 6039ae5766 Bug 1280613 - P1. Add experimental SourceBuffer.appendBufferAsync. r=bz
The aim of those changes is to be incubated in the WICG.

MozReview-Commit-ID: 5wEUnWz8i7kBug 1280613

--HG--
extra : rebase_source : 4360d2c34025bf3c87fff49f0e2aa01975fff15b
2018-05-11 03:56:50 +02:00
Kartikaya Gupta 2b15ef4e8e Bug 1405686 - Re-enable some mochitest that are now passing. r=jrmuizel
MozReview-Commit-ID: 5KqPkgRtH70

--HG--
extra : rebase_source : ff211244da8f7f65555a5958f4ca09f9afaed145
2018-05-14 15:30:45 -04:00
Adrian Wielgosik c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Alex Chronopoulos 6316ff735c Bug 1460559 - Enable AsyncLogger in media capture files. r=pehrsons
MozReview-Commit-ID: 7IXcP2zcn5k

--HG--
extra : rebase_source : a75af575a137b7c050355a9c84ec256e6fc585b6
2018-05-11 15:05:16 +02:00
Alastor Wu f25586a606 Bug 1413098 - part2 : add test. r=padenot
MozReview-Commit-ID: 145k2FDfMm4

--HG--
extra : rebase_source : 60b0bc916b96d0929c048a11a98623bb90b63107
extra : source : 747764af7143667f473fb1853aa50ba943b4b12d
2017-12-13 15:50:20 -06:00
Alastor Wu f59daea779 Bug 1413098 - part1 : add policy to decide whether allow audio context to start. r=padenot
Audio context would be allowed to start if
(1) its document has been activated by user gesture
(2) it's a offline audio context, because it won't directly output sound to audio
    devices

In addition, all resume promises would be pending until audio context has been
allowed and user calls resume() again.

MozReview-Commit-ID: G6RV8dDM6vQ

--HG--
extra : rebase_source : bc1d2ad0594ad1f54c05ade06495918aaee14911
extra : source : 5031770d70fd643230cb4caf6a5106616adaf0fd
2017-12-13 14:05:35 -06:00
Kartikaya Gupta 32a1261d0d Bug 1322845 - Update reftest annotations for WebRender on macOS. r=Gankro
MozReview-Commit-ID: 6NufRyb41ia
2018-05-08 22:42:51 -04:00
Andreea Pavel 8daddd690f Backed out 2 changesets (bug 1322845) for failing reftest background-repeat-large-area.html == background-repeat-large-area-ref.html on a CLOSED TREE
Backed out changeset 4fd46cd822bf (bug 1322845)
Backed out changeset abd41b3e63e7 (bug 1322845)
2018-05-09 05:13:08 +03:00
Kartikaya Gupta 93650c1b04 Bug 1322845 - Update reftest annotations for WebRender on macOS. r=Gankro
MozReview-Commit-ID: 6NufRyb41ia
2018-05-08 20:39:51 -04:00
Alex Chronopoulos 3148644625 Bug 1457427 - Change the assert in SetInputListener of GraphDriver to verify that the driver is not started. r=padenot
With the updated OnThread method SetInputListener method cannot continue asserting for being in audio callback. This check is not realistic since it is used on a newly created driver before being started.

MozReview-Commit-ID: 5gntuHm3fnr

--HG--
extra : rebase_source : e3bc17e9d8c83c4d61686889af41edfb3ef3902f
2018-05-07 19:36:45 +02:00
Alex Chronopoulos ea082741ae Bug 1457427 - Restrict the asserts of two MediaStreamGraph methods to align it with their callers. r=padenot
These two methods assert for OnGraphThreadOrNotRunning when their callers assert for OnGraphThread. Since the second assert is more limited we do not have to assert for a wider eventuality.

MozReview-Commit-ID: 2cgzO160l6F

--HG--
extra : rebase_source : 922a3d9775bb25022e456c19495b5e1666e7f8b7
2018-05-07 19:36:25 +02:00
Alex Chronopoulos 7271873512 Bug 1457427 - Improve OnThread method of AudioCallbackDriver to track the thread id of the audio thread so be more accurate. r=padenot
The class has been enhanced to store the thread id at the beginning of the callback and use it in order to compare with the current thread id when OnThread method is called. The old mechanism which includes the mInCallback flag has been removed.

MozReview-Commit-ID: DWSbFQfvKzX

--HG--
extra : rebase_source : e6c011da563b8f1d562ca7a394433e1e53fcffa4
2018-05-07 19:36:14 +02:00
Alex Chronopoulos 10f5acd2cc Bug 1457427 - In SourceMediaStream request driver change through ControlMessage to avoid locking on non priority thread. r=padenot
That method is used on update of channelCount constraint. By raising a ControlMessage to MediaStreamGraph we avoid the lock the mutex on a non priority thread. Unfortunately we have to send the message in main thread first, thankfully this will change soon.

MozReview-Commit-ID: 8JRSmKGGVAN

--HG--
extra : rebase_source : 3d3a3f03ec601e5fbe0e8fda01608ee8cadf8d78
2018-04-19 12:01:54 +02:00
Alex Chronopoulos 196c05c507 Bug 1457427 - Create a new GraphDriver method which performs the switching to next driver. r=padenot
Restructuring of the existing code no functional change.

MozReview-Commit-ID: JWaa8LgG4MR

--HG--
extra : rebase_source : 97190b870172549a0cd2453078c0511887059b73
2018-05-07 19:35:56 +02:00
Alex Chronopoulos d409b4d3b8 Bug 1457427 - Restructure EnumerateDevices method is webrtc engine to improve readability. r=pehrsons
Restructuring of the existing code no functional change.

MozReview-Commit-ID: FARNItrajfD

--HG--
extra : rebase_source : 0887c6546bb43538e32b99950e2febca77a32bfb
2018-05-07 19:33:41 +02:00
Andreas Pehrson 2f49bc5093 Bug 1458852 - Re-enable mochitest. r=bryce
MozReview-Commit-ID: AMVqbKAdWGQ

--HG--
extra : rebase_source : 44f702d45ec4f613c850b06a6b429cb603b87f71
2018-05-04 17:26:48 +02:00
Chris Pearce ed8a27f065 Bug 1457048 - Ensure origins with autoplay-media exact permission can autoplay. r=bryce,johannh
Sites which are whitelisted should be allowed to autoplay audible media.
So check whether a HTMLMediaElement's owner doc's principal has an exact
"autoplay-media" permission. This ensures whitelisted origins can autoplay,
but sub-origins of whitelisted origins need their own permission.

MozReview-Commit-ID: 2IO5KIyplEa

--HG--
extra : rebase_source : 4a974aba0533bfbd5e9bb4c4c11d77d17a81db6d
2018-04-30 17:40:50 +12:00
Chris Pearce 70ec3d2f9d Bug 1457048 - Test that whitelisted origins are able to autoplay. r=bryce
MozReview-Commit-ID: 9kLIx8MzCY8

--HG--
extra : rebase_source : 32179f99a521582026ac5068c3d355dcf4713570
2018-04-30 17:40:22 +12:00
Andreas Pehrson d70fe4dd85 Bug 1458166 - Remove listeners before destroying MediaStreams. r=bryce
If listeners are still registered to a MediaStream on MediaStream::Destroy
(triggered by MediaStream::UnregisterUser below), they will catch and act
on further events from the MediaStream (such as a track ending).

This may dispatch runnables that are unnecessary since we know we are
shutting down.

If we first remove the listeners from the MediaStream we will never see
said events.

MozReview-Commit-ID: IZ1kENqL2C8

--HG--
extra : rebase_source : 6f9201827a30f119b4c116d0cb798858408aed20
2018-05-07 11:36:35 +02:00
Andreas Pehrson 9382b10798 Bug 1458166 - Clear out tracks while destroying MediaStream. r=bryce
MediaStream::Destroy() is part of a controlled shutdown sequence.
If there are still tracks with content beyond Destroy() they will
only get caught by the dtor, which may be on CC shutdown and too late.

MozReview-Commit-ID: GV6XRiTCIRk

--HG--
extra : rebase_source : 88b5730c3566f8405c8f6da5e93e7cc446b9dd75
2018-05-07 11:33:07 +02:00
Narcis Beleuzu 2b99556758 Backed out changeset 0c5a4939300c (bug 1454889) for causing frequent Leaks (Bug 1378025). a=backout 2018-05-07 12:06:25 +03:00
Chris Pearce 6dd00bfcde Bug 1452536 - Test that key events for non-printable keys and interaction with editable elements don't unblock autoplay. r=masayuki
MozReview-Commit-ID: 55TfHTUyJfz

--HG--
extra : rebase_source : 4607e548eb810cc6a124b908a299c9552952370d
2018-04-11 17:07:05 +12:00
Gerald Squelart fd5c125559 Bug 1448494 - Use NonDereferenceable in DDLogger - r=froydnj
DecoderDoctorLifeLogger now passes a NonDereferenceable pointer to
LogConstruction/LogDestruction, to avoid UBSan errors. It is possible because
DDLogger only keeps pointer values for logging (the pointer type is converted
to a string), these pointers are never actually dereferenced.

Note that the uintptr_t value() is converted to `const void*` because that's
what DDLogger uses everywhere; an upcoming bug will make DDLogger use
NonDereferenceable everywhere instead.

MozReview-Commit-ID: K5wJrGVCub0

--HG--
extra : rebase_source : cc802706d1c2c5a60ac692d132038c8418f8dedd
2018-03-29 01:18:08 +11:00
Cosmin Sabou 603420de74 Backed out 3 changesets (bug 1452536) for causing crashes bug 1458166. a=backout
Backed out changeset 1259c5bc20a7 (bug 1452536)
Backed out changeset c454505cc025 (bug 1452536)
Backed out changeset 006f976d7963 (bug 1452536)
2018-05-04 20:56:41 +03:00
Alex Chronopoulos dbb6212da3 Bug 1458979 - Update AudioBuffer's throw errors according to spec. r=dminor
MozReview-Commit-ID: GtDHG1evFfD

--HG--
extra : rebase_source : 31755230b4207e55d7a4cea0bcbaa884b9b84fb5
2018-05-04 14:49:10 +02:00
Alex Chronopoulos 16cac69ac6 Bug 1458673 - In start and stop methods of AudioBufferSourceNode change the throw error to align with the spec. r=dminor
MozReview-Commit-ID: 7CwazXg1JWm

--HG--
extra : rebase_source : 5c84a5a652d8114c0fe99db584a63732b3ffd420
2018-05-03 11:40:34 +02:00
Dorel Luca 48f71154c5 Backed out 2 changesets (bug 1457048) for multiple failures. CLOSED TREE
Backed out changeset a5d71f8bf413 (bug 1457048)
Backed out changeset cd70fc188bc8 (bug 1457048)
2018-05-03 08:39:36 +03:00
Chris Pearce d7eacf6ae5 Bug 1457048 - Ensure origins with autoplay-media exact permission can autoplay. r=bryce,johannh
Sites which are whitelisted should be allowed to autoplay audible media.
So check whether a HTMLMediaElement's owner doc's principal has an exact
"autoplay-media" permission. This ensures whitelisted origins can autoplay,
but sub-origins of whitelisted origins need their own permission.

MozReview-Commit-ID: 2IO5KIyplEa

--HG--
extra : rebase_source : 4d9afdec0caa4a82b53bedfd645f259a5c760e4d
2018-04-30 17:40:50 +12:00
Chris Pearce bf5b9dea2d Bug 1457048 - Test that whitelisted origins are able to autoplay. r=bryce
MozReview-Commit-ID: 9kLIx8MzCY8

--HG--
extra : rebase_source : f58d0010837182ef4d78ea5b2c41eb40d3bda417
2018-04-30 17:40:22 +12:00
Jean-Yves Avenard 7c6fc40c1a Bug 1458566 - Make MediaDecoder::Play() return void. r=bryce
MediaDecoder::Play() cannot fail and was always returning NS_OK

MozReview-Commit-ID: 7OgwZQw569Y

--HG--
extra : rebase_source : 907f6304df42640ccd03e8d144fe89cd748eec07
2018-05-02 17:27:27 +02:00
Jean-Yves Avenard f627e9792e Bug 1457960 - P2. Don't make MediaDecoder::Seek virtual. r=bryce
It's unnecessary.

MozReview-Commit-ID: Hau3nb9WLKe

--HG--
extra : rebase_source : d210489cd6a470c7954068306703482342a45092
2018-04-30 19:59:32 +02:00
Jean-Yves Avenard 1e4866d526 Bug 1457960 - P1. make MediaDecoder::Seek returns void. r=bryce
MozReview-Commit-ID: 2pbZprnYqcF

--HG--
extra : rebase_source : b6c521f65be5fb17d7d33b7ed86eb044d4cdfa9f
2018-04-30 19:58:11 +02:00
Jean-Yves Avenard 97cad9b3dd Bug 1456743 - P4. Actual implementation of SourceBuffer.changeType. r=bryce
Currently, the new init segment provided following a call to changeType() must contain the same number of audio and video tracks as previously.

The Chrome team has indicated concerns in regards to this restriction. TBD.

MozReview-Commit-ID: 3S6YVtQILF9

--HG--
extra : rebase_source : 59574301d8d4b6f04fc40a97a0917222f1d42fe4
2018-04-30 19:16:31 +02:00
Jean-Yves Avenard 5616b876de Bug 1456743 - P3. Add SourceBuffer.changeType experimental method. r=bryce,bz
Non functional code.

SourceBuffer.changeType allows to reconfigure a sourceBuffer so that a new codec type or new container format can be fed later.

The new code is placed behind the media.mediasource.experimental.enabled pref.

MozReview-Commit-ID: 5wj6J4uzLbA

--HG--
extra : rebase_source : b6f57246e0a4c856f6365bb0c8ec8d759a770105
2018-04-30 19:13:15 +02:00
Jean-Yves Avenard 422c1d2336 Bug 1456743 - P2. Have MediaFormatReader debug show live audio codec type. r=bryce
Additionally, show the number of channels and the sampling rate.

MozReview-Commit-ID: L067Hbv0bXz

--HG--
extra : rebase_source : 193482c7e96b0094ec4d717a9cc30e371067aa1d
2018-04-30 19:06:06 +02:00
Jean-Yves Avenard e3a0fefdd0 Bug 1456743 - P1. Create mochitest for new SourceBuffer::changeType. r=bryce
MozReview-Commit-ID: 6X8rVMhVY98

--HG--
extra : rebase_source : 52acce9508ce98c43eef6a7500355fa2465c5fe7
2018-04-30 18:59:34 +02:00
Alex Chronopoulos 4b87e8575c Bug 1456266 - In ConstantSourceNode change the default channelCount to align with the spec. r=padenot
MozReview-Commit-ID: 9cvAztPuZic

--HG--
extra : rebase_source : 5c1ce2f40ca199ac5dda174155c74e5212225aa4
2018-05-01 17:46:09 +02:00
arthur.iakab a4b709fedc Merge inbound to mozilla-central a=merge 2018-05-01 00:57:17 +03:00
Tiberius Oros ebaa12c45e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-30 12:58:12 +03:00
Matthew Gregan 81d70e03c7 Bug 1427011 - Disable default device switching in libcubeb's WASAPI backend. r=padenot 2018-04-30 19:59:32 +12:00
Alex Chronopoulos 1987465bc5 Bug 1456259 - Correct AnalyserNode construction issues. r=padenot,smaug
MozReview-Commit-ID: 2gMZAMonS2F

--HG--
extra : rebase_source : 996e99cd0f62f75ea1e13820ec9c9f72fed52212
2018-04-26 16:32:52 +02:00
Alex Chronopoulos 0c25a4d6cc Bug 1457013 - Update AudioBuffer mochitest to expect not supported error. r=padenot
MozReview-Commit-ID: 1jxh9GZZnXj

--HG--
extra : rebase_source : 21a9f3e0d3aa5654af800a90bbff682873fc96f4
2018-04-27 18:16:43 +02:00
Alex Chronopoulos ea99979765 Bug 1457013 - In AudioBuffer return NOT_SUPPORTED error message for various cases to align with the spec. r=padenot
MozReview-Commit-ID: LdT7rwSK4D0

--HG--
extra : rebase_source : a7fad8a90f4d3ed21ae8346aecf8f0c690a08285
2018-04-26 17:15:53 +02:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Paul Adenot b7f37d63fd Bug 1457137 - Move instead of copying strings returned from various GetDebugInfo functions for HTMLMediaElement::MozDumpDebugInfo. r=gerald
MozReview-Commit-ID: LbZ0cWe7yb0

--HG--
extra : rebase_source : 31946e6dcfd2f750e16437f5876f29c851698b9f
extra : source : 4fd9b0ce611c4ad4ecbec1aace1777944214212a
2018-04-26 15:57:39 +02:00
Mark Banner 88e4fd5825 Bug 1456076 - Update ESLint to 4.19.1 & eslint-plugin-html to 4.0.3. r=mossop
MozReview-Commit-ID: Gs6T8AsLPPo

--HG--
extra : rebase_source : bf189ef047294ea405d8e7628eae94daa6d93e89
2018-04-23 11:33:31 +01:00
Karl Tomlinson c3c3a90bcb bug 1457058 remove unused GraphDriver::RemoveCallback() r=padenot
MozReview-Commit-ID: 3ZWfWEJ7bko

--HG--
extra : rebase_source : 2bd9b8fd0f87f87905606f5550c9645fbe68b465
2018-04-26 17:50:59 +12:00
Karl Tomlinson aec8bc8a3a bug 1457060 dereference MixerCallback and receiver on separate lines r=padenot
MozReview-Commit-ID: JNltGvA6tMv

--HG--
extra : rebase_source : bbdfc8e0c28a5e7bef26d4765dc95937270730a1
2018-04-26 18:30:31 +12:00
Chris Pearce 3eabec8954 Bug 1452536 - Test that key events for non-printable keys and interaction with editable elements don't unblock autoplay. r=masayuki
MozReview-Commit-ID: 55TfHTUyJfz

--HG--
extra : rebase_source : 4607e548eb810cc6a124b908a299c9552952370d
2018-04-11 17:07:05 +12:00
Jean-Luc Bonnafoux bd34ea8894 Bug 1244870 - initialization of err variable r=jya
MozReview-Commit-ID: 6Zh7tqNdHeu

--HG--
extra : rebase_source : e89b46bbf17d9190c1f18b38c7ed22390fe05457
2018-04-24 20:42:02 +02:00
cubouyaka f150dc951d Bug 1445220 - Removed 'version' variable declaration as it was unused r=gerald
--HG--
extra : amend_source : ab250875490b6bcb93e6d9be69286192cb32031d
2018-04-11 16:05:40 +02:00
Andreea Pavel a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
David Major f13872a0d3 Bug 1456936 - Fix test_analyser skip conditions. r=padenot
--HG--
extra : rebase_source : 0f27a116a2fa78ba6a27e8dd73acf0045b0a04cb
2018-04-25 14:13:01 -04:00
Paul Adenot f412eb58ae Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Brindusan Cristian 5e1a611a89 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-25 00:59:04 +03:00
Brindusan Cristian 59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Tom Ritter 3705fef918 Bug 1446346 Do not clamp or jitter the AudioContext's CurrentTime if its interval is larger than our precision. r=jib
MozReview-Commit-ID: Bc1cto3pBKL

--HG--
extra : rebase_source : ace58df9f1669beacc176ab968f45a09ca44be2e
2018-04-17 15:35:51 -05:00
Andrea Marchesini 3abafd2746 Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin 2018-04-24 16:19:51 +02:00
Nathan Froyd dbc53de3d9 Bug 1451363 - part 5 - remove ProtocolName virtual function; r=mccr8
ProtocolName() is only used for producing error messages and annotating
crash reports.  But examining actual crash reports that would have used
the result of ProtocolName() indicates that we can always tell what the
erroring protocol is due to the stack backtrace.  So having this virtual
function around just provides duplicate information, and it takes up too
much space in the vtable besides.  Let's get rid of it.
2018-04-23 14:13:36 -04:00
Bryce Van Dyk 855803da5c Bug 1453127 - Do not use iterators in MediaStreamTrack when removing listeners. r=pehrsons
--HG--
extra : rebase_source : 41c5d93b54c6dc062daa05a2644d4a194400dd1e
extra : amend_source : c53c4f75e4b813104122d22da29f97919f9d62d3
2018-04-18 15:30:57 -04:00
Chris Pearce 192c7a5edf Bug 1456037 - Test that documents gesture activate on key/mouse down instead of up. r=masayuki
MozReview-Commit-ID: AGZM0JdSUDv

--HG--
extra : rebase_source : 7f013406253d30eada49e130860996be1122d31b
2018-04-23 15:53:25 +12:00
shindli b1f0ca2585 Backed out 2 changesets (bug 1456037) for bustage in z:/build/build/src/dom/events/EventStateManager.cpp on a CLOSED TREE
Backed out changeset 10ac210e88db (bug 1456037)
Backed out changeset e3b70cecf471 (bug 1456037)
2018-04-24 08:27:22 +03:00
Chris Pearce 54a96dd048 Bug 1456037 - Test that documents gesture activate on key/mouse down instead of up. r=masayuki
MozReview-Commit-ID: AGZM0JdSUDv

--HG--
extra : rebase_source : 07338352b18bd2cd966dc90c400a0af4a0dbe2b6
2018-04-23 15:53:25 +12:00
Chris Pearce 7b1b141797 Bug 1453843 - Ensure we fire "pause" event when rejecting play() promise. r=bryce
Bug 1435133 introduced a new path where we block autoplay and reject the play()
promise, but we didn't fire a "pause" event. This confuses YouTube's controls.

Additionally, even if we're not in a user generated event handler, we
unilaterally consider the media element blessed if execution reaches here:
https://searchfox.org/mozilla-central/rev/11a2ae294f50049e12515b5821f5a396d951aacb/dom/html/HTMLMediaElement.cpp#4110
We previously rejected before reaching here when not in a user generated event
handler, but now if play() is called before we've reached loadedmetadata, we
reject the promise if we're not in a non-event handler and bail out early, and
so we'll bless even if not in a user generated event handler. Meaning when we
do reach loadedmetadata, we think we were in a user generated event handler
when play() was originally called, and so we won't reject the play promise.

So this patch ensures we dispatch a "pause" event when we reject the play()
promise here. The WHATWG spec says we should do this when pausing anyway.

Note: calling our interal Pause() function when rejecting the play() promise
here breaks YouTube, as if we do that we fire a "timeupdate" event. So I opted
to manually code to fire the event here instead of just calling Pause()
everywhere we want to ensure we're paused.

MozReview-Commit-ID: 1snkiTnPGih

--HG--
extra : rebase_source : 2c5ca6c0ed7c2dff2fb971cd159cfdc12a8a227f
2018-04-20 17:53:37 +12:00
Dorel Luca 65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Boris Zbarsky 0ba35d199f Bug 1455052 part 8. Stop using nsIDOMEvent in docshell and dom. r=masayuki
MozReview-Commit-ID: ASkuyN3xSwB
2018-04-20 12:55:30 -04:00
Nico Grunbaum 7522ae5acb Bug 1452673 - trackless RTCRtpSender.getStats() returning unfiltered results r=mjf
MozReview-Commit-ID: 7JzZlBUqc0O

--HG--
extra : rebase_source : 6bc54727c6ac024c0d2628fc99751c9c4dc447bf
2018-04-18 00:16:27 -07:00
Paul Adenot fbf116232d Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
MozReview-Commit-ID: 7mmDHVS2t8f

--HG--
extra : rebase_source : ac56722792f99aadd8e359ef9ae4b30f6dc78076
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Paul Adenot a1cfe22210 Bug 1444976 - Use the AsyncLog to implement a tracing subsystem for real-time media. r=pehrsons
Use it like this:

MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_LOG=MSGTracing:5,sync,raw MOZ_LOG_FILE=trace.log ./mach run

Now open `chrome://tracing` and load the file.

Lanes are threads, thread 0 is the audio callback thread, the other thread have
normal numbers.

Thread 1 shows the theoretical budget we have for a particular audio callback.

MozReview-Commit-ID: 87woGiFT4ID

--HG--
extra : rebase_source : 03cefb8edf12b077607ae71aeb999fd0ac966674
extra : source : 14929579ba3f71f14c9d81b6ed88563d35da11e0
2018-03-20 18:22:08 +01:00
Paul Adenot 683f9406da Bug 1444976 - Implement a lock-free asynchronous logging system to be used from real-time audio and video code. r=froydnj
This outputs to MOZ_LOG and using an MPSC lock-free queue so we can log to a
particular module from any thread.

MozReview-Commit-ID: INtlki4PEJs

--HG--
extra : rebase_source : c1d488fdd65bfa7ede12c12004921415aaaa1d55
extra : source : f9482471bbd83882f8da3f0ce929f72858abfa04
2018-03-20 18:14:47 +01:00
Cosmin Sabou 4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
Jean-Yves Avenard abe6e049cd Bug 1435212 - Add support for FFmpeg 4.0. r=bryce
MozReview-Commit-ID: JlDFSUyGQu

--HG--
extra : rebase_source : 310135ac5453b01164910bd3bf50b6107dcbc710
2018-04-19 10:19:15 +02:00
Byron Campen [:bwc] 30281ed197 Bug 1444363: Don't dispatch Encode/Decode to main in the fake h264 impl, because the callsite is on main in the first place. r=bryce
MozReview-Commit-ID: Iznr1jNr75Z

--HG--
extra : rebase_source : 6c61c2194f3147f69b65ad163f639d9578a900d9
2018-04-16 10:52:29 -05:00
Andreea Pavel 5a4b5686f6 Merge mozilla-central to autoland a=backout on a CLOSED TREE
--HG--
extra : rebase_source : 3bbd9b3ffa46ec76f58d6d4d6ce672dd909b8457
2018-04-18 21:36:17 +03:00
Andreea Pavel 14ac5e554d Backed out 3 changesets (bug 1444976) for failing android at dom/media/tests/mochitest/test_getUserMedia_mediaStreamTrackClone.html a=backout
Backed out changeset 79b7ee8b01ee (bug 1444976)
Backed out changeset 35ca96cabe3c (bug 1444976)
Backed out changeset 2512c9c24244 (bug 1444976)
2018-04-18 21:25:14 +03:00
Coroiu Cristina 374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Boris Zbarsky d49151ed50 Bug 1452183 part 1. Stop using nsIDOMDocumentFragment in IDL files. r=mccr8 2018-04-17 21:13:03 -04:00
Paul Adenot f00a090b8a Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
MozReview-Commit-ID: 7mmDHVS2t8f

--HG--
extra : rebase_source : a6b0bd42a63f3fc6e4a6307249ed447d749f96c4
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Takuro Ashie 897da97e65 Bug 1306529 - OmxDataDecoder: Fix a stall issue on shutting down r=jya
Because the shutdown closure awaits finishing itself by
TaskQueue::AwaitShutdownAndIdle(), the function blocks infinitely.

The code is wrongly introduced at the following commit:

  * https://bugzilla.mozilla.org/show_bug.cgi?id=1319987
    * https://hg.mozilla.org/mozilla-central/rev/b2171e3e8b69

This patch calls it on mTaskQueue intead of mOmxTaskQueue to
avoid the issue.

MozReview-Commit-ID: 4qmX2QlniEG

--HG--
extra : rebase_source : 17ef7f95f7205307980dd0924821b005ada06c56
extra : source : eb0a2bb44f95f195343fed284efcdd524a7bb868
2018-03-27 16:37:21 +09:00
Takuro Ashie 956ef94c09 Bug 1306529 - Add initial implementation of PureOmxPlatformLayer r=jya
It's a concrete class of OmxPlatformLayer for accessing OpenMAX IL
libraries directly. It will be usable on various embedded linux systems.
Note that it's not enabled by default yet. Add the following config to
your mozconfig.

  ac_add_options --enable-openmax

TODO: Implement zero-copy mode

MozReview-Commit-ID: EMEXAKzzR64

--HG--
extra : rebase_source : ee6acf7d046e8ce6e18a53988a4ea308b8d4d44f
2018-04-18 11:38:12 +09:00
Andreas Pehrson 1c41efddfa Bug 1454625 - Don't update settings from constraints if already updated from frame. r=padenot
MozReview-Commit-ID: KgiPUnXCWoM

--HG--
extra : rebase_source : 2f378128008ed8c95fb7f3cb3b6601c54ef4c88b
2018-04-17 17:09:11 +02:00
Andreas Pehrson 3be3fab400 Bug 1454625 - Schedule settings update before setting mImage. r=padenot
MozReview-Commit-ID: 9IasAgJImuI

--HG--
extra : rebase_source : 67fc9036b72c19f8fa73084053d617537e0cdaca
2018-04-17 11:14:19 +02:00
Paul Adenot a28be80f69 Bug 1444976 - Use the AsyncLog to implement a tracing subsystem for real-time media. r=pehrsons
Use it like this:

MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_LOG=MSGTracing:5,sync,raw MOZ_LOG_FILE=trace.log ./mach run

Now open `chrome://tracing` and load the file.

Lanes are threads, thread 0 is the audio callback thread, the other thread have
normal numbers.

Thread 1 shows the theoretical budget we have for a particular audio callback.

MozReview-Commit-ID: 87woGiFT4ID

--HG--
extra : rebase_source : b4310af51efa83c6670ba4e37433f7a23a575bba
extra : source : 14929579ba3f71f14c9d81b6ed88563d35da11e0
2018-03-20 18:22:08 +01:00
Paul Adenot 5e0440d951 Bug 1444976 - Implement a lock-free asynchronous logging system to be used from real-time audio and video code. r=froydnj
This outputs to MOZ_LOG and using an MPSC lock-free queue so we can log to a
particular module from any thread.

MozReview-Commit-ID: INtlki4PEJs

--HG--
extra : rebase_source : c1d488fdd65bfa7ede12c12004921415aaaa1d55
extra : source : f9482471bbd83882f8da3f0ce929f72858abfa04
2018-03-20 18:14:47 +01:00
Nicholas Nethercote 59e46f2358 Bug 1451535 - Remove NS_ConstExprIsAscii() functions. r=froydnj 2018-04-17 20:03:52 +09:00
Andreas Pehrson 60784fe3c7 Bug 1450954 - Test that a screenshare track's getSettings return sane dimensions. r=jib
MozReview-Commit-ID: GDSQLfXBFBU

--HG--
extra : source : 159a7327328f98867447b62e1a4f0fc8148aea3f
extra : histedit_source : 03c8fc1c0d151a0614adc1af64b445cdcff02a2e
2018-04-10 15:04:25 +02:00