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

13379 Коммитов

Автор SHA1 Сообщение Дата
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