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

13755 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 7d9218913e bug 1482792 - Only enable -Wno-unused-private-field for clang. Doesn't exit (yet?) in gcc r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3190

--HG--
extra : moz-landing-system : lando
2018-08-13 08:49:42 +00:00
Alex Chronopoulos 0a6ae381d4 Bug 1481957 - Make input device enumeration for Android similar to other platforms when cubeb is disabled. r=padenot
In the case that cubeb is disabled we do not need to offer the dummy device on android because will leave gUM request thinking that everything is good, which will create other side effects. Also the special handling for android increases the complexity.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:25:38 +00:00
Bogdan Tara 2f2b719960 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-11 01:01:18 +03:00
Jean-Yves Avenard f0a2a7c616 Bug 1482197 - P2. Make IsWebMEncoderEnabled usable off the main thread. r=bryce
It can be called on a worker.

Depends on D3054

Differential Revision: https://phabricator.services.mozilla.com/D3055
2018-08-10 19:02:03 +02:00
Jean-Yves Avenard c8fdce3c1e Bug 1482197 - P1. Fix variable name in MediaCapabilities. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D3054
2018-08-10 19:02:03 +02:00
Nico Grunbaum 11b40b9572 Bug 1455724 - add telemetry for legacy PeerConnection getStats API usage r=mjf
MozReview-Commit-ID: L17M2whvxpV

--HG--
extra : rebase_source : 2938839a5465348eb8e34855287093d6f184844d
2018-04-23 09:49:32 -07:00
Margareta Eliza Balazs f617807241 Merge inbound to mozilla-central. a=merge 2018-08-10 12:17:09 +03:00
John Lin c10cb88742 Bug 1480533 - drop frames with presentation time earlier than what's already output. r=jya
MediaCodec products out of order buffers for some Twitch (60fps)
streams. Detecting and discarding these frames asap to make the
buffers available to codec sooner, reducing the chances of
starvation.

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

--HG--
extra : moz-landing-system : lando
2018-08-09 16:29:51 +00:00
Noemi Erli 125e35c2c4 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-10 00:35:08 +03:00
Noemi Erli de9e45a850 Merge inbound to mozilla-central. a=merge 2018-08-10 00:31:09 +03:00
Tiberius Oros fae00acf70 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-09 13:06:13 +03:00
Jan de Mooij 0090285015 Bug 1480678 part 12 - Do a CheckedUnwrap in AudioContext::DecodeAudioData to ensure we don't have a CCW. r=bz
Note that right now aBuffer.Obj() will never be a cross-compartment wrapper anyway, because that can only happen when we're calling a WebIDL constructor, and this is not a constructor.
2018-08-09 10:48:29 +02:00
Jean-Yves Avenard c80c137b83 Bug 1482116 - Only schedule update when a track exists. r=bryce
Add assertion to more easily catch the problem

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

--HG--
extra : moz-landing-system : lando
2018-08-09 16:24:33 +00:00
alwu 23e50af065 Bug 1481629 - only dispatch UnselectedTabHover event when outer window exists. r=bzbarsky
If we can't reach the outer window from the document, then also can't reach the chrome <browser> either.
Therefore, there's no point in firing the event.

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

--HG--
extra : moz-landing-system : lando
2018-08-08 19:00:03 +00:00
L. David Baron 1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

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

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
Jean-Yves Avenard 756a7bdfd8 Bug 1473173 - Report MediaResource as seekable if we know we will never seek into underlying transport. r=bryce
The MediaCache reads content by block of BLOCK_SIZE bytes (currently 32kB). As such, if a content being fetched is less than BLOCK_SIZE, it will always be fully read from offset = 0. We can then seek within this buffered content regardless of the underlying HTTP connection supporting request-range or not.

test_bug686942.html is ultimately testing a racy behaviour: it attempts to seek into a resource that isn't always seekable (http.js doesn't report Range -Request support for small files). The seekable range becomes then the buffered range which at the time of loadedmetadata may not be set yet.

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

--HG--
extra : moz-landing-system : lando
2018-08-09 19:53:07 +00:00
Csoregi Natalia 0f4d50ff52 Merge inbound to mozilla-central. a=merge 2018-08-08 12:58:36 +03:00
Brindusan Cristian 91ec49bade Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-08 00:57:25 +03:00
Andreas Pehrson 150dc5e2f2 Bug 1480856 - Allow for another 10ms of silence when processing audio input. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D2786

--HG--
extra : moz-landing-system : lando
2018-08-07 21:02:41 +00:00
alwu 7a58a577d5 Bug 1480738 - part1 : only allow top-level video document to autoplay. r=cpearce
Only allow top-level video document to autoplay in order to avoid autoplay from
video document which is in the iframe.

MozReview-Commit-ID: BbyjviK1BRK

--HG--
extra : rebase_source : f84421e27c6029dd3733f3c5a5d329b1755a0ee3
2018-08-03 11:28:30 -07:00
Jean-Yves Avenard 11e8a29e1f Bug 1481176 - P4. Make CanHandleMediaType usable off the main thread. r=bryce
This is done by ensuring that all methods is called are usable off the main thread and creating the required preference accessors.

Differential Revision: https://phabricator.services.mozilla.com/D2790
2018-08-07 19:21:59 +02:00
Kershaw Chang 75e99128d4 Bug 1152162 - Correct parsing Accept-Range header, r=valentin
Since the syntax of Accept-Range is a comma-separated list of tokens, we need to check each token to see if it's equal to "bytes".
This patch simply use nsHttp::FindToken to find the token "bytes".

--HG--
extra : rebase_source : d1a0aa4dcfad038c23d6a848cffded6f8c559864
2018-08-07 06:03:00 +03:00
Ciure Andrei 6056bb970c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-07 01:11:21 +03:00
Nico Grunbaum 913ae8e3d3 Bug 1480525 - ensure localIdp, remoteIdp exist before closing them r=mjf
If PeerConnection initialization terminates early due to an excpetion localIdp, and remoteIdp aren't created.
This causes another exception in close(). The patch checks that they each exist in close before attempting to
access them.

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

--HG--
extra : moz-landing-system : lando
2018-08-06 21:44:32 +00:00
Nico Grunbaum 87231d6193 Bug 1480498 - P2 - renaming RTCRTPStreamStats in the WebRTCGlobals r=mjf
Renaming RTCRTPStreamStats in the WebRTCGlobals.

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

--HG--
extra : moz-landing-system : lando
2018-08-03 17:41:30 +00:00
Philipp Hancke 660235d2fd Bug 1481557: improve getStats isRemote deprecation warning. r=jib
by adding the key that is accessed.
2018-08-07 20:00:26 +02:00
Jean-Yves Avenard b66c9b2ac1 Bug 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2770
2018-08-07 22:46:14 +02:00
Jean-Yves Avenard 5e17996c2a Bug 1481397 - P1. Properly recalculate highest start timestamp when samples are removed. r=bryce
Summary: When removing frames from the trackbuffer we may remove frames outside the original removal interval as we must remove all frames depending on the removed frames.

Differential Revision: https://phabricator.services.mozilla.com/D2837
2018-08-07 22:46:14 +02:00
Gabriele Svelto 15adf94f4d Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.

All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.

--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 15:42:11 +02:00
Jan-Ivar Bruaroey 508b6fa2e0 Bug 1393306 - Pick Firefox 65 as new isRemote end-date. r=ng
MozReview-Commit-ID: 8VgqgAQ51to

--HG--
extra : rebase_source : cf2c7e47a6a7895375af7a1737dd987bfa640826
2018-08-03 23:54:04 -04:00
Masatoshi Kimura 3b21b7868b Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Dan Minor 7aa019d263 Bug 1483511 - Only build TestAudioDeviceEnumerator.cpp if webrtc is enabled r=dmajor,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3416

--HG--
extra : moz-landing-system : lando
2018-08-15 20:22:30 +00:00
Karl Tomlinson 522bb0c752 bug 1474222 test ConvolverNode channelInterpretation changes r=padenot
MozReview-Commit-ID: 9s7ozdSRofY

--HG--
extra : rebase_source : b771f901c1c0a6e4c598818dd80ad8517375ccd6
2018-08-06 20:59:37 +12:00
Karl Tomlinson 2ad6f2ea42 bug 1474222 move convolver up-mixing test to wpt r=padenot
MozReview-Commit-ID: ItbXaY2GCrF

--HG--
rename : dom/media/webaudio/test/test_convolver-upmixing-1-channel-response.html => testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response.html
extra : rebase_source : becc3e3b8df9cd9b99fb29c642ec6848cd7830ba
2018-08-06 09:31:40 +12:00
Karl Tomlinson 09c58a5f32 bug 1474222 test ConvolverNode up-mixing r=padenot
MozReview-Commit-ID: GZVe85depAj

--HG--
extra : rebase_source : e65cea213bc8582c54ecfe9f995928b4c05a443c
2018-07-27 20:03:39 +12:00
Karl Tomlinson 7ee8880ce6 bug 1474222 change ConvolverNode output to mono for single channel convolution r=padenot
This also returns to using a single convolver for processing of mono input,
which introduces complexity in up-mixing the state of the convolver when a
second channel is added.

MozReview-Commit-ID: KeBrAswQbtF

--HG--
extra : rebase_source : d793bd967e0291069e4e6cc418de53c4b4cf3253
2018-08-06 21:24:15 +12:00
Karl Tomlinson 53de4f8c06 bug 1474222 consider allocation size instead of used channel count for re-using AudioBlockBuffer r=padenot
MozReview-Commit-ID: CgA051giSTU

--HG--
extra : rebase_source : 22d06a101a1c08d399de99bcd3477f1ff9ba3880
2018-08-03 18:32:28 +12:00
Karl Tomlinson 095ab44cad bug 1474222 keep memory allocated for convolver volume premultiplication until no longer required r=padenot
MozReview-Commit-ID: D3cfKjp0lwi

--HG--
extra : rebase_source : a8e948b758ab0b8c222c33340783c2527ddfbf15
2018-07-16 19:33:35 +12:00
Karl Tomlinson e0496cfa3b bug 1474222 uninline ConvolverNodeEngine::ProcessBlock() r=padenot
MozReview-Commit-ID: tbuG2AQJoC

--HG--
extra : rebase_source : fd6aeca490b3a9ed1fb116abd25e8d0199802cca
2018-07-16 19:22:15 +12:00
Jan-Ivar Bruaroey bb4a34952e Bug 1393306 - Add deprecation warning in 57 for removal of stat.isRemote in 58. r=ng,peterv
MozReview-Commit-ID: 7wKBg3KQxjo

--HG--
extra : rebase_source : 41e7e1d5429af08693296b3f774edb97f28fd92c
2017-09-01 22:35:56 -04:00
Bryce Van Dyk f99f3a68e7 Bug 1404977 - Tests P2: Add test to ensure multiple, concurrent gUM calls in a single window succeed. r=pehrsons
MozReview-Commit-ID: HGwcu6Z2mDn

--HG--
extra : rebase_source : 21082b25ae88ae514c10d46d921df9f70dd491db
2018-08-03 10:35:59 -04:00
Bryce Van Dyk 79b52e379f Bug 1404977 - Tests P1: Add test to ensure multiple, concurrent gUM calls in separate iframes succeed. r=pehrsons
MozReview-Commit-ID: Iyr2A0R1rMd

--HG--
extra : rebase_source : ace5852d924a582d7ad2567f86365641b120d3be
2018-07-10 15:09:50 +02:00
Andreas Pehrson 7803237bca Bug 1404977 - Exit NotifyInputData early if there's no input listener. r=achronop
MozReview-Commit-ID: KMy01D2VjLi

--HG--
extra : rebase_source : 3975d92084815cbc44b3d8bd437f6b838fd1f541
2018-08-03 14:14:36 +02:00
Paul Adenot fc57da928f Bug 1404977 - Part 17 - Re-implement the workaround for the lack of input device enumeration on Android. r=pehrsons
MozReview-Commit-ID: 5EiQ6a3OaIR

--HG--
extra : rebase_source : d39706b5c09438f55ef1d26b3e0fb127ac05cfa6
2018-07-04 18:00:57 +02:00
Paul Adenot c270650bfe Bug 1404977 - Part 16 - Unit test CubebDeviceEnumerator. r=pehrsons
This is done by implementing a fake cubeb backend that implements the subset of
operations we need, while offering an API to be able to control what this
backend is doing.

Because we're reimplementing the private cubeb API, it is necessary to copy
part of a cubeb internal header, and mimick exactly how the vtable mechanism to
do the dynamic dispatch to the diffferent backends in cubeb works. This is not
ideal but works.

When the cubeb API functions are called (from deep in the Gecko process), we
re-bind the call to the mock cubeb backend object and behave exactly like a
normal backend (calling various callbacks and returning fake objects).

Finally, we inject this mock cubeb backend to the running Gecko process (in lieu
of the real one that would have been picked) by setting the global sCubebBackend
variable via a private API exposed only in the test in CubebUtils.h.

MozReview-Commit-ID: 8ZbJhl7pZ2t

--HG--
extra : rebase_source : 922a03fa84803ed04aed633795a54b8d2a305e15
2018-06-22 11:55:31 +02:00
Paul Adenot ce1884c2eb Bug 1404977 - Part 15 - Invalidate the device cache before re-enumerating devices when the cubeb backend does not support dynamic device collection invalidation. r=pehrsons
Also, clear the array that's been passed in before appending the new devices.

MozReview-Commit-ID: BTnwzyKBrb5

--HG--
extra : rebase_source : 23dbd11720804a30188389bc4408be4b40ad70b2
2018-06-22 11:47:06 +02:00
Paul Adenot 7ca1aba8c1 Bug 1404977 - Part 14 - Add a way to set the global cubeb* singleton at runtime, from a test. r=pehrsons
This is for testing purposes only. Defining ENABLE_SET_CUBEB_BACKEND before
including CubebUtils.h will expose the function. This is not to be set outside
of test files.

MozReview-Commit-ID: D0V8oLj9xo6

--HG--
extra : rebase_source : e80d4c01ff3b28c300de1e6819477ea732c2f157
2018-06-22 11:45:31 +02:00
Paul Adenot a1777772d7 Bug 1404977 - Part 13 - Remove useless mutex, and assert why they were useless, in WebRTCAudioDataListeners. r=pehrsons
MozReview-Commit-ID: 2Mb5WZXbYgS

--HG--
extra : rebase_source : c4a7c8874919901eb11327cfb5f86d6b185be388
2018-05-31 16:44:00 +02:00
Paul Adenot ff9c7304e1 Bug 1404977 - Part 12 - Make DeviceChanged() notification thread safe by using the MSG message queue. r=pehrsons
This is slightly slower, especially if the main thread is busy, but it's cleaner
and actually safe.

MozReview-Commit-ID: 4C2FalxmE3L

--HG--
extra : rebase_source : 3f1341397bede31fcc35dab5a0cbf59b893f9b81
2018-05-31 16:42:24 +02:00
Paul Adenot 0bf09992fd Bug 1404977 - Part 11 - Make sure the default device is the first element in the list. r=pehrsons
MozReview-Commit-ID: LTJErFTm1wN

--HG--
extra : rebase_source : 5abdb58774a0011a2990d1f71c733181eed3c656
2018-05-29 15:20:47 +02:00
Paul Adenot 28fa83d1b5 Bug 1404977 - Part 10 - Make logging uniform, and consistently use GraphImpl() to access the graph impl. r=pehrsons
MozReview-Commit-ID: DZ7zhQsBtvy

--HG--
extra : rebase_source : d44599587cc11dccaecf6672fc4ffbaad1a5c14f
2018-04-17 17:11:13 +02:00
Paul Adenot 6622a3551d Bug 1404977 - Part 9 - Propagate the changes to the GraphDrivers, simplifying them, and brokering all access through the MSG. r=pehrsons
For an AudioCallbackDriver, the number of input channels is immutable, and
passed at construction, so that it's less necessary to rely on global state.

MozReview-Commit-ID: F9TL1H92z3W

--HG--
extra : rebase_source : 5193488592ca97273eb2b6f43d4c7a0e4beb0a33
2018-04-30 16:01:56 +02:00
Paul Adenot 064d4d9b47 Bug 1404977 - Part 8 - Tell the MSG the MediaEngineAudioSource are now independent and that we can have multiple of them, cleanup the MSG-side API for managing them. r=pehrsons
The MSG now can feed microphone data to all its input listeners. This paves the
way for multiple input device, if we feel it's needed at some point, but does
not implement it.

The method for adding/removing inputs are also cleaned up.

MozReview-Commit-ID: 9OX4Da6Gjq2

--HG--
extra : rebase_source : 043c486e53f9220ae61fd788ed86064ba723f1a4
2018-04-30 16:01:38 +02:00
Paul Adenot 9b7c6c96da Bug 1404977 - Part 7 - Make each MediaEngineWebRTCMicrophoneSource independent. r=pehrsons
MozReview-Commit-ID: 1RSsT6AV3iI

--HG--
extra : rebase_source : ed7db6938c46d4c9e716c782f4b04f2438dff9a6
2018-04-30 15:37:18 +02:00
Paul Adenot 959bcfd615 Bug 1404977 - Part 6 - Remove unused include for lock-free FIFO. r=pehrsons
MozReview-Commit-ID: 8gVKlD7lMIX

--HG--
extra : rebase_source : cc5e02d3acb3a46edafe58002ff8e4d1e974b235
2018-04-30 15:33:28 +02:00
Paul Adenot 2ba8afaf4c Bug 1404977 - Part 5 - Allow querying the number of input channels from a WebRTCAudioDataListener. r=pehrsons
MozReview-Commit-ID: JkpEZOJpOTl

--HG--
extra : rebase_source : 055d86792861028c9a998b9731651b7e121f9bb0
2018-04-30 15:30:58 +02:00
Paul Adenot d9bf35a76c Bug 1404977 - Part 3 - Remove global statics, introduce an audio device enumerator r=pehrsons
MozReview-Commit-ID: 55VlpGIAOxp

--HG--
extra : rebase_source : 34b6f83bbb647975d273f900a4f11e25d393f1c4
2018-04-30 15:18:22 +02:00
Paul Adenot 49c1370f2f Bug 1404977 - Part 2 - Augment AudioDeviceInfo with a cubeb device id. r=pehrsons
MozReview-Commit-ID: GrOnxHuN2Oj

--HG--
extra : rebase_source : dc41255b77d49749c77814b62dea0c161873d2f9
2018-04-30 15:24:52 +02:00
Paul Adenot 2062de82ff Bug 1404977 - Part 1 - Add missing lock to the PREF_CUBEB_BACKEND branch of the pref callback in CubebUtils.cpp. r=pehrsons
MozReview-Commit-ID: CBAmQKDq36z

--HG--
extra : rebase_source : 171106da4e662c3514b80b7d83bc0637afc2caab
2018-04-17 16:45:33 +02:00
alwu 6d23d559af Bug 1480281 - part1 : add autoplay debug log module. r=cpearce
Add new log module which allow us to debug by using "MOZ_LOG=Autoplay:5".

MozReview-Commit-ID: 9CG5JyCw21G

--HG--
extra : rebase_source : c71c4bbed88b07a7803d93b661bfeac37cb94035
2018-08-01 17:30:59 -07:00
Andreas Pehrson 0facadf342 Bug 1480161: Fix underrun assert for processed input stream. r=achronop
The logic here intends to (as is written in the comment) append one block of
silence to the track to allow for us to underrun one full scratch buffer.

The code doesn't match this behavior however, because if we are not underrunning
by less than a block, we end up appending *less* than a block. This causes us to
append at a later time as the scratch buffer can swallow more (up to a full
block) than we appended.

Without processing this seems to work because of timing and ordering, but
with processing (aec/agc/ns) we tend to add 71
(512 for an iteration - 441 packed) samples of silence,
leaving us to hit the assert with a 44% ((128-71)/128) chance during subsequent
iterations.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 10:25:05 +00:00
Karl Tomlinson 9687fa6c7d bug 1476231 switch FFTBlock from libav to ffvpx r=jya
This results in a speed improvement of about 6% on the "Convolution reverb"
webaudio-benchmark (measured with Linux x86_64 build on Skylake).

MozReview-Commit-ID: 94W6h3qE1tB

--HG--
extra : rebase_source : f6fe4f3fa0338a90a1e389450134027d9389af09
2018-07-14 14:44:43 +12:00
Karl Tomlinson 146c0a09dd bug 1476231 add accessor for ffvpx real DFT functions r=jya
MozReview-Commit-ID: AF2jl6ZnD4z

--HG--
extra : rebase_source : c7f6c60e3f1b282db5aef2f7b84f23b46734513f
2018-07-14 12:32:20 +12:00
Karl Tomlinson c0bf3f57b9 bug 1476231 link ffmpeg real DFT functions r=jya
MozReview-Commit-ID: 1K5tta51rBB

--HG--
extra : rebase_source : 11355d14e69ca8f79c504274e4cdc78748af1a1d
2018-07-14 11:57:45 +12:00
Chris Pearce 2e3c4bd9af Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz
Various web authors have expressed desire to know in advance whether autoplay
will work.

They want this in order to avoid paying the price for downloading media that
won't play. Or they want to take other action such as showing a poster image
instead.

This is of particular interest to Firefox, as we're planning on showing a
prompt to ask the user whether they would like a site to play. If sites want to
determine whether they can autoplay but avoid the prompt showing, they won't be
able to just call play() in Firefox and see whether it works, as that would
likely show the prompt if the user doesn't already have a stored permission.

We've been working out a spec here:
https://github.com/whatwg/html/issues/3617#issuecomment-398613484

This implements what is the consensus to date there;
HTMLMediaElement.allowedToPlay, which returns true when a play() call would not
be blocked with NotAllowedError by autoplay blocking policies.

MozReview-Commit-ID: AkBu0G7uCJ0

--HG--
extra : rebase_source : 3f31db79aa1e570fdd9fc7062d0ddac7c96a8931
2018-07-25 14:25:17 +12:00
alwu 81ae6fd494 Bug 1466926 - part1 : always allow extension background script to autoplay. r=cpearce
In present web extension design (both Firefox and Chrome), background script can autoplay.
We don't want to break this design, so we would always allow it to autoplay.

MozReview-Commit-ID: 9BfWgll7PNx

--HG--
extra : rebase_source : 7996daa06c31a84a2aea9008daa9bddfcde98c74
2018-07-10 10:37:33 -07:00
Mark Banner eb3b37a169 Bug 1478305 - Remove unnecessary ChromeUtils.import calls in dom/media. r=bwc
MozReview-Commit-ID: 63NbLr7wap5

--HG--
extra : rebase_source : 424b9a938fd50965fa0dd29cef186ef189f6fda4
2018-07-30 10:28:11 +01:00
Andreas Pehrson 8b155b06b1 Bug 1479027 - Don't announce existing ended tracks when they have no input r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D2596

--HG--
extra : moz-landing-system : lando
2018-08-01 14:47:46 +00:00
Byron Campen [:bwc] a600a51631 Bug 1476600: Stop reusing mids from stopped transceivers. r=jib
When a transceiver is stopped, its mid should not be reused by a new transceiver.

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

--HG--
extra : moz-landing-system : lando
2018-07-31 20:44:47 +00:00
Jan-Ivar Bruaroey ec94f36a20 Bug 1478367 - Move RTCRtpTransceiver API mochitest to web-platform-tests. r=bwc
MozReview-Commit-ID: JyZMU0BKwVH

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_transceivers.html => testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
extra : rebase_source : 48b3c8dc327e257350dc6da6d15f6f860805d713
2018-07-24 23:14:29 -04:00
Kris Maglione 08c58039d9 Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.

MozReview-Commit-ID: 2gzQbRKxaZ9

--HG--
extra : rebase_source : 582e41200e69ff3722585c7664ddd122eb0de2fe
extra : intermediate-source : e0a021b27d2c66d46ba973d66d1360678411da26
extra : source : 6d18a8bd5ee351da1a0cdfaa63f49706a2f95ba3
2018-07-18 23:29:16 -07:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Boris Zbarsky 6748ffcaed Bug 1478890. Stop using ToXPCOMCallback in GetUserMediaDevices. r=jib 2018-07-28 00:40:29 -04:00
Boris Zbarsky 057c310979 Bug 1478890. Stop using ToXPCOMCallback in GetUserMedia code. r=jib
We don't want to expose nsXPCWrappedJS to the web, and this code is doing that.
2018-07-28 00:40:26 -04:00
Cosmin Sabou 778ca4f84f Backed out 8 changesets (bug 1476405) for causing frequent failures in bug 1479022. a=backout
Backed out changeset ad1674e9152d (bug 1476405)
Backed out changeset e0a021b27d2c (bug 1476405)
Backed out changeset 771288dbf852 (bug 1476405)
Backed out changeset aeebad4f2dc3 (bug 1476405)
Backed out changeset 4831cbfd03de (bug 1476405)
Backed out changeset 0b0c243a1827 (bug 1476405)
Backed out changeset 236b366fdf37 (bug 1476405)
Backed out changeset c767b1b618fb (bug 1476405)
2018-07-28 01:25:25 +03:00
Kris Maglione a7ff7da720 Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.

MozReview-Commit-ID: 2gzQbRKxaZ9

--HG--
extra : source : 6d18a8bd5ee351da1a0cdfaa63f49706a2f95ba3
extra : histedit_source : aa7995595e2699d53f1dc60410b90cfd0d4a5c4e
2018-07-18 23:29:16 -07:00
Coroiu Cristina 6d037d0cba Backed out 9 changesets (bug 1476405) for causing leaks
Backed out changeset 4113d6fb3c1c (bug 1476405)
Backed out changeset cb7f7cc32687 (bug 1476405)
Backed out changeset 6d18a8bd5ee3 (bug 1476405)
Backed out changeset b2a99f50e642 (bug 1476405)
Backed out changeset b5b9d295545d (bug 1476405)
Backed out changeset f092a32a3639 (bug 1476405)
Backed out changeset 6c154f4d9dd9 (bug 1476405)
Backed out changeset d0ebb3aa8e0f (bug 1476405)
Backed out changeset 06b8093ddc6a (bug 1476405)
2018-07-27 08:56:36 +03:00
Kris Maglione 89c5723e0a Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.

MozReview-Commit-ID: 2gzQbRKxaZ9

--HG--
extra : rebase_source : 05924114b7ff1c48ce0c4584469b3b2ef0bc26cb
2018-07-18 23:29:16 -07:00
Paul Adenot cc16352f8d Bug 1414366 - Take into account start and end time when processing ConstantSource output. r=karlt
MozReview-Commit-ID: IA5sjDTP1t5

--HG--
extra : rebase_source : 056c0bd1e67baf0b42b2d3fe3a67a98b4c3c5fa7
2018-07-19 17:59:19 +02:00
Paul Adenot 9fba355645 Bug 1414366 - Don't assume aStart is aligned on block boundary in AudioParamTimeline::GetValuesAtTime. r=karlt
MozReview-Commit-ID: JQoDwVPQ2s6

--HG--
extra : rebase_source : f9d653ca530a54f310c915d8745de1266cabb71a
2018-07-19 17:58:35 +02:00
alwu b586e3d181 Bug 1477415 - part1 : allow video document autoplay. r=cpearce
Allow autoplay for video document when user is directly viewing a video/audio by visiting
its url.

MozReview-Commit-ID: GnSxx32h6hm

--HG--
extra : rebase_source : 0890f7f3e80711b35c65a6f32d7ce960de76d20e
2018-07-23 11:17:00 -07:00
Boris Zbarsky 1312fcd10f Bug 1476145 part 5. Stop using getInterface(nsIDOMWindowUtils) in DOM code. r=mccr8 2018-07-24 19:47:41 -04:00
Boris Zbarsky 1914ffc8ec Bug 1450167. Stop using atom-or-string for event names in the listener manager. r=smaug
Now that we support atoms off the the main thread, we can just use atoms.
2018-07-24 18:15:19 -04:00
Paul Adenot d097a302f8 Bug 1477704 - r=karlt
--HG--
extra : rebase_source : 165ea665512f8119efd4c9b34aa3efb38a8910d6
2018-07-23 16:47:44 +02:00
Gurzau Raul f2e1e857f1 Merge inbound to mozilla-central. a=merge 2018-07-24 12:49:23 +03:00
Brian Hackett 8c8d7af19e Bug 1465294 Part 6 - Don't initialize audio IPC connection in middleman process, r=kinetik.
--HG--
extra : rebase_source : 8a51e8a0785c3724272f826b5023257618d391e9
2018-07-23 14:52:01 +00:00
Brian Hackett ea6ebf1b6e Bug 1207696 Part 6a - Disable media elements when recording or replaying, r=jesup.
--HG--
extra : rebase_source : 10a1178dca996839da8496036196e7018d517787
2018-07-23 14:41:26 +00:00
Chris Pearce ea566d079b Bug 1476456 - Add telemetry to report whether autoplay would be not allowed if autoplay was disabled. r=baku,francois
We'd like to add telemetry to help inform the decision as to how enabling
block autoplay will affect video playback in the wild.

Our data science team would also like some input to help them estimate the
rate at which our shield study would receive pings, and the telemetry
collected here will help them estimate that.

We'd like to collect the following, on a per session basis:
* Count of the number of top level content documents loaded, as denominator for
other stats collected here.
* Count of the number of top level content documents which contained (directly
or in a descendant document) playback of an audible media element.
* Count of the number of top level content documents which contained (directly
or in a descendant document) a muted media element that was paused by the
autoplay policy because it tried to unmute and it wasn't allowed to autoplay
audibly.
* Count of the total number of audible autoplay videos that would have not been
allowed to play if block autoplay was enabled. We'd either prompt for
permission on these videos, or block outright depending on user's settings.
* Count of the total number of audible autoplay videos that would have been
allowed to play if block autoplay was enabled.

MozReview-Commit-ID: vHWJPyqHjT

--HG--
extra : rebase_source : e1f22ec83fda8b65d78f1de9f02cf060d424019c
2018-07-18 15:34:04 +12:00
Nathan Froyd f4ed80c22c Bug 1469399 - remove virtual qualifiers from MediaRawData methods; r=jya
MediaRawData is never subclassed, so it's pointless to have these
methods be virtual.

--HG--
extra : rebase_source : ef55196831f5ff96e75b46f304541e1cb8fafada
extra : source : ccef9e2643a19668dc06426aa0e55ed5d61ae535
2018-07-23 11:19:59 -04:00
Cosmin Sabou aa6a55f066 Backed out changeset ccef9e2643a1 (bug 1469399) for geckoview failures on multiple files. CLOSED TREE 2018-07-23 19:46:01 +03:00
Jean-Yves Avenard d7eb320e7a Bug 1476975 - P3. Fix canPlayType/isTypeSupported for AV1 content. r=dminor
AV1 support is behind a pref, as such, the result of canPlayType should depends on the value of that pref.

Additionally to this change we remove AOMDecoder::IsSupportedCodec as it implied confusion on what a codec mimetype is. There are two type of codec mimetype: the one describing the container content ("av1") and the one describing the codec itself "video/av1")
AOMDecoder shouldn't know anything about containers (e.g. mp4 or webm)

--HG--
extra : rebase_source : 72ebe662f76fb6c9d8be1f753890601aac440061
2018-07-20 10:24:56 +02:00
Jean-Yves Avenard 5fca92f302 Bug 1476975 - P2. Add mochitests. r=dminor
--HG--
extra : rebase_source : a24191c0bc355b69d425291a0ebdea21d962866a
2018-07-20 10:59:20 +02:00
Nathan Froyd 4772318978 Bug 1469399 - remove virtual qualifiers from MediaRawData methods; r=jya
MediaRawData is never subclassed, so it's pointless to have these
methods be virtual.
2018-07-23 11:19:59 -04:00
Dan Minor 51cc8fdbb8 Bug 1474684 - Remove unnecessary already_addRefed from return; r=jya
Reviewers: jya

Tags: #secure-revision

Bug #: 1474684

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

--HG--
extra : rebase_source : bfa84755521a4a560a1487971d88cb2e493282d5
2018-07-20 08:39:50 -04:00
Tom Schuster d385a93dfb Bug 1477477 - Add preference for autoplaying muted media. r=cpearce
--HG--
extra : rebase_source : 61589dbd15331d48527c3513e832c6d9e0117941
2018-07-22 15:21:48 +02:00
Cosmin Sabou 0d3874d7d6 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-21 00:42:01 +03:00
Noemi Erli 76fe049448 Backed out 3 changesets (bug 1476975) for mochitest failures on test_can_play_type_webm.html
Backed out changeset 91585d095420 (bug 1476975)
Backed out changeset 798f4894ffd5 (bug 1476975)
Backed out changeset b5377ceef34f (bug 1476975)
2018-07-20 21:27:01 +03:00
Jean-Yves Avenard 4d4b32ccf8 Bug 1476975 - P3. Fix canPlayType/isTypeSupported for AV1 content. r=dminor
AV1 support is behind a pref, as such, the result of canPlayType should depends on the value of that pref.

Additionally to this change we remove AOMDecoder::IsSupportedCodec as it implied confusion on what a codec mimetype is. There are two type of codec mimetype: the one describing the container content ("av1") and the one describing the codec itself "video/av1")
AOMDecoder shouldn't know anything about containers (e.g. mp4 or webm)
2018-07-20 19:04:46 +02:00
Jean-Yves Avenard c1c073835b Bug 1476975 - P2. Add mochitests. r=dminor 2018-07-20 19:04:46 +02:00
Dan Minor d55ae44eff Bug 1474684 - Use larger stack for media decoder threads; r=jya,froydnj
Summary:
We've hit stack overflows while decoding, in particular for av1. This increases
the thread size for the platform decoder threads, while leaving the others at
their default values.

Reviewers: jya

Tags: #secure-revision

Bug #: 1474684

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

--HG--
extra : rebase_source : d03a91e93910fac5458f18f43398d76b736bbee6
2018-07-18 12:47:45 -04:00