Commit Graph

70044 Commits

Author SHA1 Message Date
Jean-Yves Avenard
cfa7a324aa Bug 1331696 - P1. Remove WebSpeech Pico service. r=chmanchester,eeejay
It's no longer used, and won't be able to work with the removal of speech synth direct audio support.

MozReview-Commit-ID: BMdeRJHes0R

--HG--
extra : rebase_source : 9f45b360d27f8013ef229eba79e9d9921d0fdb26
2017-12-02 09:17:39 +01:00
Bogdan Tara
97aeaa6e1f Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-07 12:59:54 +02:00
Bogdan Tara
cbd802ee7d Merge inbound to mozilla central r=merge a=merge 2017-12-07 12:53:20 +02:00
Hiroyuki Ikezoe
6a7d32d971 Bug 1418268 - Tweak expected restyle count for the case where animation start time was clamped. r=birtles
MozReview-Commit-ID: IPxRtRucze4

--HG--
extra : rebase_source : b5c346b38022fa69f0762a5d3149599f41f2414b
2017-12-07 12:57:54 +09:00
Hiroyuki Ikezoe
18bbe2d0b2 Bug 1418268 - Add a function to check whether there is a micro task checkpoint between animation tick and requestAnimationFrame callbacks. r=birtles
MozReview-Commit-ID: 6C9Fbg7SKWU

--HG--
extra : rebase_source : a1e979a2034da2be12348f7916d2a0983c6917c6
2017-12-07 08:43:59 +09:00
Hiroyuki Ikezoe
d29d155692 Bug 1418268 - Make sure the animation on scrolled out element is throttled in the first place. r=birtles
In the first frame after the initial paint, we skip restyling if the initial
paint took over vsync refresh rate as an optimization and to avoid jumpy
animations. To avoid checking this skipped restyling that we'd actually expect
a restyle maker there, firstly we check there is no restyle marker after the
initial paint for scrolled out animation for five frames, and we then make the
element visible and check a restyle marker there.

MozReview-Commit-ID: 5XkJhdtUly5

--HG--
extra : rebase_source : 1a441296ad6f6cc42b50d300ebacd66e5dee77a1
2017-12-07 08:43:38 +09:00
Mike Conley
0d20da44b7 Backed out changeset 261be8ec0554 (bug 1397426)
--HG--
extra : rebase_source : f43fabcbb096e007ff81261f8249f9b53f5a5d37
2017-12-06 16:10:55 -05:00
Mike Conley
7f920db3d5 Backed out changeset 2cd697170fb3 (bug 1397426)
--HG--
extra : rebase_source : 0562adac1b665941a2800743e5e35089dec5a32c
2017-12-06 16:09:36 -05:00
Mike Conley
4449ce4040 Backed out changeset 4dd20bf8c0f6 (bug 1397426)
--HG--
extra : rebase_source : 0bbbefd4f3488b2286d33ef6d20ec762dab51ee7
2017-12-06 16:06:36 -05:00
Mike Conley
053fbea1fc Backed out changeset 4643e46ff8d3 (bug 1397426)
--HG--
extra : rebase_source : 3e235d725c42300f3c8f3af51850e3c4e1aa7ddf
2017-12-06 16:03:32 -05:00
Mike Conley
281e258fa4 Backed out changeset 5580c145af58 (bug 1397426)
--HG--
extra : rebase_source : dc6bc89688de83ec7b0752189134574a86c72769
2017-12-06 15:59:07 -05:00
Mike Conley
738b920742 Backed out changeset 53bb2bc2b676 (bug 1397426)
--HG--
extra : rebase_source : 7ef95ce8467ed642077b6c141e440428f71fa3f6
2017-12-06 15:56:24 -05:00
Mike Conley
c99b8d29a5 Backed out changeset b9b2895b11a3 (bug 1397426)
--HG--
extra : rebase_source : 8fada9f53beffaada9f16122efe5d9570d422e6c
2017-12-06 15:54:06 -05:00
Mike Conley
2fe4ae7e28 Backed out changeset 78073667ddc6 (bug 1397426)
--HG--
extra : rebase_source : 59c9f343a81c1ba1b65c25548c569f48e81d236c
2017-12-06 15:52:40 -05:00
Mike Conley
7721deb74e Backed out changeset 8994162ee112 (bug 1397426)
--HG--
extra : rebase_source : 56ce672d436341260443daa98d553e53974eb1fd
2017-12-06 15:48:54 -05:00
Munro Mengjue Chiang
1051352e87 Bug 1423515 - register callback while creating the real backend. r=pehrsons
MozReview-Commit-ID: 2uVZ9VBAut0

--HG--
extra : rebase_source : e51862ad3f4ec74066b080eac66d69f428b86426
2017-12-06 19:09:40 +08:00
Jan-Ivar Bruaroey
b3493432e7 Bug 1422389 - Limit default engine resolution. r=mchiang
MozReview-Commit-ID: LS1z7I4myeb

--HG--
extra : rebase_source : f0fd6e20a13d11660a5ac57e9703f09978f12acb
2017-12-01 20:49:46 -05:00
Chih-Yi Leu
75dd85a9fa Bug 1397194 - Polling manually in macOS gamepad API backend r=qdot
MozReview-Commit-ID: LuuwjB53KPy

--HG--
extra : rebase_source : 21e6ae940d493dc6bf739fd2f3478924423c91b3
2017-12-06 14:20:33 +08:00
Tim Taubert
b5c19b9f90 Bug 1396907 - Abstract a BaseAuthManager for dom/u2f and dom/webauthn r=jcj
Summary: We can probably abstract more stuff in the future, but this seems like a good start.

Reviewers: jcj

Reviewed By: jcj

Bug #: 1396907

Differential Revision: https://phabricator.services.mozilla.com/D323
2017-12-06 18:41:58 +01:00
Sebastian Hengst
e70bf9e08c Backed out changeset 92ad856a4bae (bug 1420420) for failing tests/jit-test/jit-test/tests/modules/bug-1402649.js after asserting. r=backout 2017-12-06 20:14:18 +02:00
Tim Taubert
91a23b2116 Bug 1421723 - Allow localhost as appId for U2F r=jcj
Reviewers: jcj

Reviewed By: jcj

Bug #: 1421723

Differential Revision: https://phabricator.services.mozilla.com/D321
2017-12-06 16:28:20 +01:00
Andrea Marchesini
d05bd76662 Bug 1423485 - Better name for blobURL nsIAsyncShutdownBlocker, r=bkelly 2017-12-06 17:11:11 +01:00
Nika Layzell
111561414d Bug 1422033 - Support opening a new window when no windows are avaliable for a new tab, r=bz
MozReview-Commit-ID: DzSllBVdUhq
2017-12-06 10:39:13 -05:00
Emilio Cobos Álvarez
74b31155f7 Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Jon Coppeard
73138b170f Bug 1420420 - Update module implementation to match latest spec regarding handling of instantiation errors r=anba r=baku r=jgraham 2017-12-06 14:54:58 +00:00
Tooru Fujisawa
f7df533e97 Bug 1228841 - Part 0: Remove remaining conditional catch consumers in dom/. r=billm 2017-12-05 09:42:37 +09:00
Jonathan Watt
eabc47f6c9 Bug 1415068 - Include SVG text elements in elementsFromPoint. r=heycam
MozReview-Commit-ID: FvMzOF6JJM1
2017-12-06 14:09:01 +00:00
Paul Adenot
2f0ae5124f Bug 1397793 - Don't use the AEC on a 440Hz tone when testing that audio is flowing. r=pehrsons
This brings in a lot of noise and makes the test fail.

MozReview-Commit-ID: 70EGM1q1J24

--HG--
extra : rebase_source : f19c191747f2e63303406a43a79454e4ea1ed428
extra : histedit_source : f27d34204de924ab30b5718b240ac3d23677991c
2017-12-04 18:16:22 +01:00
Paul Adenot
b585f4301a Bug 1397793 - Share SharedBuffer accross SourceMediaStream. r=pehrsons
MozReview-Commit-ID: 4PEjwiA6PR8

--HG--
extra : rebase_source : 265d30d8bf83103c50bb3cb84b263bdb87b8494e
extra : histedit_source : 1ba9523a366310d5784a671e2be03a7a71e790b3
2017-11-28 18:43:11 +01:00
Paul Adenot
93fa5b007c Bug 1397793 - Add asserts for AudioChunk invariants. r=pehrsons
MozReview-Commit-ID: CFqyMPMMHyA

--HG--
extra : rebase_source : 6648d283e6da1cc3ad98616063e62542b9e7346d
extra : histedit_source : 8937ab1b4567fabc3c98802eefede9f00e9684a5
2017-11-29 19:22:00 +01:00
Paul Adenot
1c13882dc4 Bug 1397793 - Remove mRate from MediaEngineDefault and use GraphRate(). r=pehrsons
MozReview-Commit-ID: D9x3wICAMNA

--HG--
extra : rebase_source : 6f863eccdf5044e1838a555f45b88f465503c1fc
extra : histedit_source : 347fb57ff58138b8c949b8a2efb26b17e0a8c47d
2017-11-08 15:16:06 +01:00
Paul Adenot
75105f79ae Bug 1397793 - Make the assertions in the rate conversion functions in StreamTracks.h be fatal. r=pehrsons
MozReview-Commit-ID: 8nLask8nqV4

--HG--
extra : rebase_source : a9724f42fbf33a08a08b720f42d25bda0b6623f1
extra : histedit_source : 0a7ad7125b482b9de2013f787d86a661e554c240
2017-11-21 20:53:51 +01:00
Paul Adenot
de142c0970 Bug 1397793 - Use a ControlMessage to switch between passthrough and processing mode for microphone input. r=pehsrons
MozReview-Commit-ID: EIvQKZf7oGq

--HG--
extra : rebase_source : cf84d44df1fadd262283946641d7ce67f779b7d2
extra : histedit_source : 71388af2bab6cbfb3d6a4c700b2419899811e680
2017-11-08 14:10:45 +01:00
Paul Adenot
58fc6f439a Bug 1397793 - Refactor the code that sets the processing modes. r=pehrsons
MozReview-Commit-ID: IUgAfHawFIz

--HG--
extra : rebase_source : f80414c0e9048ee5eb9754a0161844b5607addb8
extra : histedit_source : 71375da254afb9764c812ed9ba92689d828c74db
2017-11-07 14:28:06 +01:00
Paul Adenot
965ccaadaa Bug 1397793 - Allow switching processing on/off dynamically. r=pehrsons
MozReview-Commit-ID: G0NJRkKEVeM

--HG--
extra : rebase_source : 16547d0ace0d0d7e791ef60249f94fe3060944b4
extra : histedit_source : 78db64f41f799dec503c36a809cb05713cbd45e4
2017-11-23 15:53:25 +01:00
Paul Adenot
20a31e686f Bug 1397793 - Move to APM - Part 2 - Actual processing. r=pehrsons
This also is long, but simple.

First, we switch to floats everywhere. This allows to work with any rate, is
more flexible with channel layout, and is a stable API (see audio_processing.h
in webrtc.org).

Then, 10ms worth of audio (already at the graph rate) are poped from the
lock-free queue (fed on the other end by the MSG mixer), and does the following:
- Down mixing to stereo (if needed)
- De-interleaving into planar buffer
- Prepare input and output config
- Actually make the API call
- Free the data

Now, first, we should use a ring buffer, and not have to free any data. Then we
also should not use a lock-free queue, and synchronously process the
reverse-stream, but this is enough code already.

Then, the actual mic data processing:
- Pop a packet from the packetizer (that gives us 10ms worth of audio, note that
we switch from int16_t to float, i.e. we don't do this conversion anymore).
- We convert to planar buffers, deinterleaving
- Prepare input and output config
- Allocate a SharedBuffer of the right size
- Process the data with the processing algorithm selected in UpdateSingleSource
- Append to the a MediaSegment, and append to the right MediaStreamTrack for the
correct SourceMediaStream (the data is already planar and all well).

MozReview-Commit-ID: 2IjgHP0GAmw

--HG--
extra : rebase_source : d2245037e8ee7145af7eef528dcee50817b69d83
extra : histedit_source : 79443c35b82d3bc8833d140dd5afc882b85b4c12
2017-12-04 13:34:14 +01:00
Paul Adenot
b76152fc03 Bug 1397793 - Move to APM - Part 1 - UpdateSingleSource. r=pehrsons
This part is about setting on/off audio processing feature. It's long, but
it's mostly mechanichal changes, from the old API to the new one.

This also covers reseting the processing in case of device changes (with
macros).

MozReview-Commit-ID: EI2TxHRicEr

--HG--
extra : rebase_source : 7044c2d1695cdf0d6a69b4faa19349e3261ef204
extra : histedit_source : f5ac61e7b90ab4d5280623095c443529fb36cde5%2C5c969f1833bdc425842f945a5a8a4702ca13cd56
2017-10-31 18:25:41 +01:00
Paul Adenot
0ade31e233 Bug 1397793 - Remove VoEExternalMedia usage in MediaEngineWebRTCAudio and MediaEngineWebRTC. r=pehrsons
This needs the next patches to build fine, but is split out for the review.

A side effect of this patch is to break non-duplex, making the whole
init/cleanup phase much simpler.

MozReview-Commit-ID: Caqc8v7CWwZ

--HG--
extra : rebase_source : 6e7d501ef99f3ea5d755a610238b8f260194bba0
extra : histedit_source : 298c7e95a2bd40e8f9ce014e06faad159fca513e
2017-10-31 18:11:48 +01:00
Paul Adenot
36e1dc3f90 Bug 1397793 - Move MediaEngineDefault to use the MSG rate instead of something hard-coded. r=pehrsons
This is "just" for testing, but is cleaner, and skips some resampling, and is in
line with the other patches, to converge with always using MSG rate when we can.

MozReview-Commit-ID: CBQHEDQWJE3

--HG--
extra : rebase_source : a65c4df357a6f56306b63b92416697f01699358f
extra : histedit_source : ae589d7cf7bc3895a0f4b5b496b60846bddf7d1a
2017-10-31 17:43:10 +01:00
Dragana Damjanovic
d2271cd3a8 Bug 1417431 - secureConnectionStart should be 0 for pages with HTTP scheme. r=bkelly 2017-12-06 12:57:28 +01:00
Gerald Squelart
c5aeab4f69 Bug 1407810 - Use DDMOZ_LOG in media stack - r=jwwang
Mostly-mechanical replacement of MOZ_LOG with DDMOZ_LOG, usually just removing
the class name and `this` pointer (as they are already implicitly recorded).
Some files needed a bit more work when logging was done from helper classes or
static functions.

MozReview-Commit-ID: IeJJmzYqWMQ

--HG--
extra : rebase_source : 94200838dcdaf6c3bda9de30042ce2d307237eef
2017-10-13 16:31:59 +11:00
Gerald Squelart
83602b8860 Bug 1407810 - DDMOZ_LOG to replace MOZ_LOG and also output to DDLogger - r=jwwang
This macro may be used to replace MOZ_LOG in most files, where it is used in
non-static member functions of classes that are registered with
DDLoggedTypeTraits.

MozReview-Commit-ID: A8DYmGoMv7f

--HG--
extra : rebase_source : 51d24f53a19fcbcbe42faea668256f1804f0abc9
2017-10-13 16:31:28 +11:00
Gerald Squelart
1b357db99b Bug 1407810 - Use DDLogger in media stack - r=jwwang
Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0

--HG--
extra : rebase_source : dd7206e350e32671adc6f3b9e54ebf777251de2c
2017-10-10 17:55:27 +11:00
Gerald Squelart
13e84a1120 Bug 1407810 - webidl for HTMLMediaElement.mozRequestDebugLog - r=jwwang,smaug
MozReview-Commit-ID: EdCZEiQQjAa

--HG--
extra : rebase_source : 9bed86aad8cc1a8097258f450db3e9e1e070ac1c
2017-08-03 12:15:17 +12:00
Gerald Squelart
16a9a0b9d7 Bug 1407810 - Implement HTMLMediaElement::Moz{Enable,Request}DebugLog - r=jwwang
MozReview-Commit-ID: 7Hhy6qBVjDk

--HG--
extra : rebase_source : 5eb33db2c13a4add3bef693af1e558b256732599
2017-10-16 16:18:58 +11:00
Gerald Squelart
aa608c873d Bug 1407810 - Enable DDLogging from the beginning if MOZ_LOG contains DDLogger - r=jwwang
This allows logging from the command line without using a webextension.

MozReview-Commit-ID: 6pkDbLXzz3X

--HG--
extra : rebase_source : 92a840d47054e5bef4cd7adf0aadb16f093f7639
2017-12-04 10:52:51 +11:00
Gerald Squelart
5d9cad55f1 Bug 1407810 - DDMediaLogs::SizeOf accounts for shallow message queue size - r=jwwang
MozReview-Commit-ID: 9irARpytVoh

--HG--
extra : rebase_source : a18db325396ca50b9272559b3dcbb7ccc3d63f87
2017-10-17 16:10:05 +11:00
Gerald Squelart
e18e0d36a5 Bug 1407810 - Tweak atomics in MultiWriterQueue - r=jwwang
This queue may be used heavily when multiple threads are running media code
that logs thousands of messages per second, so using less strict memory
ordering can help with speed.
Benchmarks show an improvement of up to twice the queueing speed in some
situations.

MozReview-Commit-ID: 70UOL8XAZGp

--HG--
extra : rebase_source : 38de1f6ce8a404e2ccc1591392176151edc8d078
2017-10-11 14:25:21 +11:00
Gerald Squelart
3704f8907e Bug 1407810 - Make DecoderDoctorLogger::sLogState 'ReleaseAcquire' - r=jwwang
sLogState is accessed at least once for every DDLog call, even when logging is
disabled, so we want it to be as quick as possible for minimal impact on most
users.

MozReview-Commit-ID: AMstgXmixrv

--HG--
extra : rebase_source : 475b32f76d9660d03333047eb7e7add62b717a79
2017-10-12 10:45:03 +11:00
Dorel Luca
1208bc03a7 Merge mozilla-central to autoland r=merge on a CLOSED TREE
--HG--
extra : rebase_source : 5f22b0e83fd5f1b28e0c1ebbcc429c332835eb36
2017-12-07 00:27:29 +02:00