Commit Graph

13148 Commits

Author SHA1 Message Date
Ciure Andrei
234819650e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-02 12:19:09 +02:00
Ciure Andrei
199c24a789 Merge inbound to mozilla-central. a=merge 2018-03-02 12:16:06 +02:00
Miko Mynttinen
280cf13e36 Bug 1441779 - Part 1: Change nsTArray<SourceBufferTask> to nsTArray<RefPtr<SourceBufferTask>> r=gerald
MozReview-Commit-ID: 8lV4Pp9p7Ch

--HG--
extra : rebase_source : b149b6ed15f88b9ee8af8ec553a57a8ccec3dafd
2018-03-01 11:55:18 +01:00
Andreas Pehrson
ae85e5be40 Bug 1440040 - Improve MediaEngineWebRTCMicrophoneSource logging. r=padenot
MozReview-Commit-ID: 3mB1gZOGfCY

--HG--
extra : rebase_source : 12d0ae852b704717e8c7b4d5f0a3a2ad4f38d50e
2018-02-28 22:46:33 +01:00
Andreas Pehrson
a087cace0d Bug 1440040 - Fix assertion that checks for appending silence in real callback when enabled. r=padenot
MozReview-Commit-ID: IiEQ7fKKz8g

--HG--
extra : rebase_source : d0e0d532fb7cd4223a072502be2097065f4037df
2018-02-28 22:45:40 +01:00
Andreas Pehrson
aecea2a024 Bug 1440040 - Properly apply microphone capture settings. r=padenot
MozReview-Commit-ID: 7TqYvHrltxm

--HG--
extra : rebase_source : 5a6d972c6e07b17737c17cfa4827cbe5352c852a
2018-02-28 22:41:15 +01:00
Andreas Pehrson
60f3567035 Bug 1440040 - Don't round up to next block unless necessary. r=padenot
With block size 128, rounding `128` to end of next block gives `256`, which is
not what we want when running MSG iterations. That could mean over-iterating and
buffering unnecessary amounts of silence.

MozReview-Commit-ID: vW14l2ygRy

--HG--
extra : rebase_source : 8aeedc8958e646f9730c9163447e3355a73fd42e
2018-02-28 22:37:02 +01:00
Dorel Luca
2807df93c4 Backed out 2 changesets (bug 1436096) for mochitest failure on tests/dom/media/webaudio/test/test_pannerNodeAtZeroDistance.html on a CLOSED TREE
Backed out changeset e9d7a3f92bcc (bug 1436096)
Backed out changeset 5dcbba40dd0c (bug 1436096)

--HG--
extra : amend_source : dace4365ca71014c74ca637f88681159f7a8d3fc
2018-03-01 20:44:31 +02:00
Alex Chronopoulos
4b1666477b Bug 1436096 - In PannerNode mochitest correct mono input and add test for stereo input. r=padenot
MozReview-Commit-ID: 54NPkWkVCha

--HG--
extra : rebase_source : f19f08d9a3ec5e9bfee2e1845696350c0fc06cfa
2018-03-01 19:54:36 +02:00
Alex Chronopoulos
6b64d67d8f Bug 1436096 - PannerNode noop optimization for equal power is valid on stereo source. r=padenot
MozReview-Commit-ID: F0c2KuFN7Q5

--HG--
extra : rebase_source : 5a9b6b6975f56a03933cd583b83013c9b4b03f2f
2018-03-01 19:50:28 +02:00
Tiberius Oros
be676ac217 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-01 19:34:54 +02:00
Tiberius Oros
61d400da1c Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
Sebastian Hengst
6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst
3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Paul Adenot
a452702398 Bug 1441500 - Remove smoothing of the delayTime parameter. r=karlt
Gecko only ever had de-zippering for DelayNode.delayTime. It has been decided in
[0] to remove all de-zippering, for consistency.

[0]: https://github.com/WebAudio/web-audio-api/issues/76#issuecomment-107679878

MozReview-Commit-ID: FK9Erwxth05

--HG--
extra : rebase_source : caccac28456191e68c980b12159ed310ce18e149
2018-02-27 12:59:25 +01:00
Jean-Yves Avenard
34fde36f9e Bug 1437003 - Allow H264 level up to 5.2 inclusive. r=padenot
MozReview-Commit-ID: KiwVH9BUGrV

--HG--
extra : rebase_source : 05fa8f99c4b2949c16918f7b981ae11f5877a3fc
2018-03-01 09:38:45 +01:00
Bryce Van Dyk
18af97a234 Bug 1432195 - Accept Mp3 streams with only 2 frames if both are valid. r=JanH
MozReview-Commit-ID: Gl5mgNuzZTt

--HG--
extra : rebase_source : 5668bbde8265887f7b2e4ed40c18cf41334c38ed
2018-02-26 19:07:46 -05:00
Sebastian Hengst
71f42f588a merge mozilla-central to autoland CLOSED TREE 2018-02-28 20:17:53 +02:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst
86ba75fd34 merge mozilla-central to autoland 2018-02-28 12:56:41 +02:00
Sebastian Hengst
769222fadf merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
vprabhu
99ae48d36a Bug 1437893 - Removed an unnecessary string initialization in cdm-test-decryptor.cpp r=cpearce
MozReview-Commit-ID: 6iD2ffbSSar

--HG--
extra : rebase_source : 77c8848765e359274cf2942b35a4cf6ea9c32c43
2018-02-27 18:15:45 +05:30
Alex Chronopoulos
c8882611dc Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
MozReview-Commit-ID: 18fQVZeYAgk

--HG--
extra : rebase_source : 67b9df3bdfb22d2baa05a15f6535af8d3d5c12d9
2018-02-20 15:37:07 +02:00
Sebastian Hengst
9b6b3d7b3b merge mozilla-central to autoland 2018-03-01 12:27:56 +02:00
Eitan Isaacson
9f972b9f46 Bug 1437332 - Don't speak after inner window was destroyed. r=smaug 2018-02-26 16:09:00 +02:00
Andreea Pavel
fa0861e443 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-02-28 00:24:02 +02:00
Peter Van der Beken
6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Andreas Pehrson
8963e5d00e Bug 1439529 - Same resolution is also feasible. r=jib
MozReview-Commit-ID: F9DGzgr7pCN

--HG--
extra : rebase_source : ca3817b548033e0447236a61f54d3f9711c77bbe
2018-02-26 11:07:53 +01:00
Nils Ohlmeier [:drno]
209544512d Bug 1414176: make data channel readyState checks spec compliant r=jib
MozReview-Commit-ID: 8VYTsK2edLE

--HG--
extra : rebase_source : c845272bf8357647212a6a6a43e06464ea798cb0
2018-02-16 23:28:10 -08:00
Jean-Yves Avenard
4552f8d42d Bug 1425246 - Don't round time when negative. r=rillian
MozReview-Commit-ID: 71ef50vJ9R3

--HG--
extra : rebase_source : e70154430eddf21a743c8da72cdc970c2ef19a80
2018-02-23 14:15:21 +01:00
Andreea Pavel
d805787970 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-28 00:25:43 +02:00
Mark Banner
294979dc32 Bug 1441460 - ESLint's no-define-cc-etc looks at the wrong property item when checking for Cc/Ci/Cu/Cr usage. r=florian
MozReview-Commit-ID: IkSkCWqBHOn

--HG--
extra : rebase_source : 6b3a2977d4b157aea54c6e3f6960d3673e751a34
2018-02-23 20:42:17 +00:00
Andreas Pehrson
e3a7f4a047 Bug 1440356 - Only call the window callback for found listeners. r=johannh
--HG--
extra : rebase_source : 8f9d46574cfe42fadd5c325d310df0e6f304f106
extra : histedit_source : 213e340980db569309a994f25e2eb0b2b2de61e6
2018-02-23 16:34:32 +01:00
Andreas Pehrson
7f249574a3 Bug 1440356 - Combine CaptureState for all child windows when calculating overall state. r=johannh
--HG--
extra : rebase_source : 488c2c705b250e4b4fdb7254245946ec2046c8c9
extra : histedit_source : 899c13c81d62e77610150734de629b6143e9f563
2018-02-23 15:52:03 +01:00
Andreas Pehrson
f74e7b16c3 Bug 1440356 - Rewrite IterateWindowListeners to use lambdas. r=padenot
--HG--
extra : rebase_source : 8caa10a5168b515b74e0e68e1ce0a9f384f040b3
extra : histedit_source : 5e645781fd3ff2415b620d70abccd37934aa1bf5
2018-02-23 15:50:57 +01:00
Ciure Andrei
2099a2a47b Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-02 12:20:45 +02:00
Chris Pearce
b6282041c2 Bug 1441153 - Block cross origin redirects after media channel setup for wav. r=jya
--HG--
extra : rebase_source : 1e48388a86c332f9f8001f53fb950c412a9c2466
extra : source : 8ac015e407553baf5f4e60fe1e021d8d3f884e1a
2018-03-01 14:08:30 +13:00
Tiberius Oros
5bf13b301a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-27 00:22:22 +02:00
Tiberius Oros
ba173eb9ee Merge inbound to mozilla-central. a=merge 2018-02-27 00:19:49 +02:00
Brindusan Cristian
e1d9e5f7ed Backed out 4 changesets (bug 1436074, bug 1436694) for frequent asertion failures at MediaEngineWebRTCAudio.cpp CLOSED TREE
Backed out changeset 1aff350b83b8 (bug 1436074)
Backed out changeset f5cc71d38e4a (bug 1436694)
Backed out changeset 6c38cc382d21 (bug 1436694)
Backed out changeset ae428bfb913f (bug 1436694)
2018-02-26 17:54:18 +02:00
Narcis Beleuzu
5968b0947f Backed out 10 changesets (bug 1410456) for Android mochitest crashes, e.g. in test_postMessages.html. CLOSED TREE
Backed out changeset 7ec175446efd (bug 1410456)
Backed out changeset 94457911bb24 (bug 1410456)
Backed out changeset 5248a21216ae (bug 1410456)
Backed out changeset f182ab7885db (bug 1410456)
Backed out changeset e482347bdae3 (bug 1410456)
Backed out changeset f7b646045e06 (bug 1410456)
Backed out changeset 6a8ed4bf5d2f (bug 1410456)
Backed out changeset 1a9c687ec277 (bug 1410456)
Backed out changeset 82f6667c6758 (bug 1410456)
Backed out changeset 7bf358e3e01b (bug 1410456)
2018-02-26 15:58:20 +02:00
Andreas Pehrson
c597c8df87 Bug 1440252 - Implement MediaEngineWebRTCMicrophoneSource::GetSettings. r=padenot
MozReview-Commit-ID: IVbax9Xxs8R

--HG--
extra : rebase_source : 6d42af31705860100ba40b0d750ddce2b513467d
2018-02-26 09:41:20 +01:00
Alex Chronopoulos
816b44e1a0 Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
MozReview-Commit-ID: 18fQVZeYAgk

--HG--
extra : rebase_source : 67b9df3bdfb22d2baa05a15f6535af8d3d5c12d9
2018-02-20 15:37:07 +02:00
Nick Alexander
03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Paul Adenot
992d7d94eb Bug 1439046 - Guard against division by zero in DynamicsCompressorKernel.cpp. r=pehrsons
MozReview-Commit-ID: 2DlebpogUHm

--HG--
extra : rebase_source : fb28ec70ed9bff57fec0475f08563d080c00477f
2018-02-23 14:06:51 +01:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andreas Pehrson
210228f94e Bug 1436074 - Reduce turn-off timer by time since we turned on. r=jib
MozReview-Commit-ID: 2AvnJxUSTmy

--HG--
extra : rebase_source : c0f0755c15e9ed564f333856125a1c1a9e05b4bf
2018-02-14 16:35:45 +01:00
Andreas Pehrson
0815f2e5dc Bug 1436694 - Clarify that MediaEngineSources can be double-stopped. r=padenot
This is already true for the audio sources. It should be for all.

Crashtests showed that shutting down amidst the async init can lead to
double-stops. It is impossible to completely protect yourself from them without
waiting for all queued operations to resolve (results to become known) before
taking action. Doing that would require a refactor in MediaManager and cause
higher latency for device operations so it seems like the wrong way to go.

MozReview-Commit-ID: 5Cci6whzTL7

--HG--
extra : rebase_source : 18efef4e294ac2b02753721ca5813bcbf63e3111
2018-02-22 12:23:06 +01:00
Andreas Pehrson
98c3816ece Bug 1436694 - MozPromisify device initialization and move it to SourceListener. r=jib
This so that SourceListener can keep its internal state in sync with the result
of the start operation.

MozReview-Commit-ID: Cgl5TFnpCeW

--HG--
extra : rebase_source : 4a7e8c1217b0db3879312d4b33dc74227e969608
2018-02-16 11:55:27 +01:00
Andreas Pehrson
fc712f4a1a Bug 1436694 - Make a PostTask variant that returns a MozPromise. r=jib, r=jya
MozReview-Commit-ID: 76mLpntaU5v

--HG--
extra : rebase_source : bd0ac6102854b5d50d711c16c94c6cfd07274f69
2018-02-15 15:18:12 +01:00
Paul Adenot
104e61097b Bug 1426129 - Take a reference to this when calling methods asynchronously in CameraChild.cpp r=pehrsons
--HG--
extra : rebase_source : 5912873029dbecabe3a106f4f1cf35684db0a461
2018-02-23 17:35:27 +01:00
Chris Pearce
514d5fd12b Bug 1441424 - Fix autoplay activation test. r=kamidphish
Post landing of bug 1193394 test_autoplay_policy_activation was failing.
This is because we weren't clicking the child frame properly in the test.

Fix the test, and re-enable.

MozReview-Commit-ID: Ius4GWIX8Ng

--HG--
extra : source : f2ef9db8bbcf8a045b6da1e7f7e283e234174401
extra : amend_source : 4e0790690f077c0b20537da131d9a9e337394112
2018-03-01 17:21:09 +13:00
Dorel Luca
b9c4533603 Backed out changeset 8ac015e40755 (bug 1441153) for web platform tests failre on media files 2018-03-02 04:06:22 +02:00
Dorel Luca
cafaae9ee7 Backed out 6 changesets (bug 1425462) for XPCShell failure on multiple files
Backed out changeset 9ace3811f525 (bug 1425462)
Backed out changeset 7d440e52e3a4 (bug 1425462)
Backed out changeset 85896ea96faf (bug 1425462)
Backed out changeset 127b5d2e6779 (bug 1425462)
Backed out changeset 95ce64d3a29a (bug 1425462)
Backed out changeset ddd2c4da4ba4 (bug 1425462)
2018-03-02 03:33:17 +02:00
Tom Ritter
6e19b6d462 Bug 1425462 Address tests for Time Jittering r=bkelly
The following tests all hardcoded a special value for Timer Precision Reduction.

browser/components/extensions/test/xpcshell/test_ext_browsingData_cookies_cache.js
browser/components/resistfingerprinting/test/browser/browser_performanceAPI.js
browser/components/resistfingerprinting/test/mochitest/test_animation_api.html
browser/components/resistfingerprinting/test/mochitest/test_reduce_time_precision.html
devtools/client/sourceeditor/test/browser_codemirror.js
dom/animation/test/css-animations/test_animation-currenttime.html
dom/animation/test/mozilla/test_transition_finish_on_compositor.html
dom/media/test/test_video_stats_resistfingerprinting.html
dom/tests/mochitest/ajax/jquery/test_jQuery.html
netwerk/test/unit/test_race_cache_with_network.js

Of these, only test_video_stats_resistfingerprinting.html begins failing when Jitter is enabled.
So disable jitter for that test.

Additionally, dom/midi/tests/test_midi_packet_timing_sorting.html began failing
with Jitter, so we disable it there. (We could easily modify the test so it began
passing, but this would reduce the effectiveness of the test.)

MozReview-Commit-ID: 2kipxV6wYv9

--HG--
extra : rebase_source : ce8236d918eb620c5198cbe86fc726c47f5747f8
2018-02-15 15:34:05 -06:00
Chris Pearce
c09105ed50 Bug 1441153 - Block cross origin redirects after media channel setup for wav. r=jya
--HG--
extra : rebase_source : 6ffbdf2d68f5a9de59d24de90fff4e6a8cf594ef
2018-03-01 14:08:30 +13:00
Dan Glastonbury
14a652c037 Bug 1430942: Tighten up handling codec specific config. r=gerald
MozReview-Commit-ID: 8GO6z7U1kx8

--HG--
extra : rebase_source : f811765d99a6df486e7faaa8534c37ec56ff15fa
2018-03-02 01:33:53 +02:00
Tooru Fujisawa
6a3cb0b287 Bug 1441424 - Disable test_autoplay_policy_activation.html temporarily. r=hiro 2018-03-01 17:40:40 +09:00
Jan-Ivar Bruaroey
40d9d1bb57 Bug 1434439 - Avoid stray capability requirement in StartCapture failure case. r=pehrsons
MozReview-Commit-ID: BEgnoOizMjt

--HG--
extra : rebase_source : bfc2a10a5656317439a2de8bad06086f7687c08d
2018-02-27 14:04:57 -05:00
Dan Glastonbury
374105f522 Bug 1440555 - P2: Re-write tests that check for end after suspend. r=cpearce
These two tests had intermittent orange failures.  The logging shows
that the suspend happens but the `ended` event is never received.
Test re-written on the presumption that `ended` event is fired and
lost between checking `video.ended` and registering `ended` event in
`waitUnitEnded()`

MozReview-Commit-ID: GnAFADFOJje

--HG--
extra : rebase_source : 2e9d79e328bbc007ea4f9a7a9dce070619d9e32f
2018-02-26 18:38:42 +10:00
Dan Glastonbury
80cd024fd7 Bug 1440555 - P1: Allow setVisible to take effect before decoder creation. r=cpearce
MozReview-Commit-ID: GSNM6esm0fW

--HG--
extra : rebase_source : 89a9836a48a93f7dfc5ce78bc6fd8b2c11da9c0e
2018-02-27 14:33:41 +10:00
Geoff Brown
764e843d9a Bug 1339568 - Re-enable some mochitest-media tests on linux/debug and linux/asan; r=whimboo 2018-02-23 09:47:56 -07:00
Andreas Pehrson
ce1efe51da Bug 1440347 - Lock while modifying mAllocations. r=padenot
--HG--
extra : rebase_source : 2f5c6e13e8f930b82ff26190485bb8eed69592e4
extra : histedit_source : 0b3cfe11cdd16ee5bf42eec68196de9531e2c36b
2018-02-23 10:20:01 +01:00
Ben Kelly
75bf35692e Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
Chris Pearce
08a18dd75d Bug 1439433 - Length check FileBlockCache::mBlockChanges access. r=gerald
I can't for the life of me figure out how we get into the situation
where the block change list is empty here, or how we can get past some
of the existing null checks in the code, but we can at least add some
more checks to hopefully ensure we don't crash...

MozReview-Commit-ID: 168G94IyrWt

--HG--
extra : rebase_source : b6ada7bfb755ae285f0010bd6eff2e305fc5fbf0
2018-02-22 15:00:18 +13:00
Nico Grunbaum
0b893198d5 Bug 1439041 - tighten up RTP sources mochitests r=mjf
MozReview-Commit-ID: 6fzHZpe1U0w

--HG--
extra : rebase_source : a5f5436efc1c12b0693814b5397d4777b4cd9dbc
2018-02-16 17:21:38 -08:00
Csoregi Natalia
8922f96260 Backed out changeset c5285ff72ac4 (bug 1439433) for build bustage. CLOSED TREE 2018-02-22 04:47:45 +02:00
Chris Pearce
fe23f86bc0 Bug 1439433 - Length check FileBlockCache::mBlockChanges access. r=gerald
I can't for the life of me figure out how we get into the situation
where the block change list is empty here, or how we can get past some
of the existing null checks in the code, but we can at least add some
more checks to hopefully ensure we don't crash...

MozReview-Commit-ID: 168G94IyrWt

--HG--
extra : rebase_source : 6918da94d4f42adad1978055ea49e7040e069368
2018-02-22 15:00:18 +13:00
Chris Pearce
49743998b7 Bug 1439437 - Tests for autoplay gesture activation in new windows/frames. r=kamidphish
Autoplay of audible media should be blocked in documents until they have a user
gesture in them, or in a same-origin parent document. This patch adds tests for
those cases.

MozReview-Commit-ID: B4FQhPOukId

--HG--
extra : rebase_source : 38d77ce42ec5f4edb0119ba2ccf03f53cd8cdb00
2018-02-19 16:31:36 +13:00
Nico Grunbaum
47a0842e58 Bug 1439736 - AudioLevel RTP header ext. send/recv mochitest r=mjf
MozReview-Commit-ID: 2ybzJSSS7Jb

--HG--
extra : rebase_source : 348891bc74bba556c94d51bbb1b2de51e15743de
2018-02-20 12:46:38 -08:00
shindli
f1c5255ad4 Merge inbound to mozilla-central. a=merge 2018-02-20 21:09:49 +02:00
Joel Maher
0d3fd13f91 Bug 1438641 - dom/media/test/reftest/gizmo.mp4.seek.html fails on new windows 10 hardware, add fuzzy-if. r=bryce 2018-02-20 10:45:26 -05:00
Byron Campen [:bwc]
7eeb085a3b Bug 1290949: Test that removeTrack does not remove the associated sender. r=jib
MozReview-Commit-ID: ERg48fO9i6b

--HG--
extra : rebase_source : 0e2944e0c30a2811be3d198f8b6a7bd36d53692e
2018-02-16 13:28:25 -06:00
Chris Pearce
1cfc65da51 Bug 1392747 - Backed out changeset 6524c2d721db. r=backout
The logging added in this patch was landed to help debug very rare shutdown
failures on android, but the logging runs on other platforms and is annoying.
No one is looking at fixing the rare shutdown problem on Android. So remove the
logging until fixing the shutdown failure becomes a priority.
2018-02-20 15:54:00 +13:00
Andreas Pehrson
e52987eee4 Bug 1436352 - Enable turning microphone off on track-disable by default. r=jib
MozReview-Commit-ID: LwIPkOD46p3

--HG--
extra : rebase_source : ddf21aec7f95c4071cc1955f446353e3b0361c36
2018-02-19 16:13:43 +01:00
Andreas Pehrson
4acbf7149c Bug 1438538 - Fix SourceListener::CapturingAudio logic. r=johannh
MozReview-Commit-ID: 9K0kOatj1CQ

--HG--
extra : rebase_source : ff026916008bafa17615d01ad01dd87aafab467a
2018-02-20 13:40:46 +01:00
Dorel Luca
f41b03eca9 Backed out changeset 38577c007450 (bug 1424371) for Marionett test failure on testing/marionette/harness/marionette_harness/tests/unit/test_window_maximize.py. CLOSED TREE 2018-02-19 22:15:23 +02:00
Dorel Luca
037478c033 Backed out 9 changesets (bug 1410456) for Mochitest failure on mobile/android/tests/browser/chrome/test_media_playback.html
Backed out changeset 36f6b40dfa88 (bug 1410456)
Backed out changeset 19f3248502d9 (bug 1410456)
Backed out changeset 18ef18999175 (bug 1410456)
Backed out changeset 0ec75a56b4c7 (bug 1410456)
Backed out changeset f7eae1545d5e (bug 1410456)
Backed out changeset d59060ecd24c (bug 1410456)
Backed out changeset f996b9dce4a6 (bug 1410456)
Backed out changeset 1f75636b5bce (bug 1410456)
Backed out changeset c170d37b1a04 (bug 1410456)
2018-02-19 21:45:10 +02:00
Milan Sreckovic
7571df7e7c Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot
MozReview-Commit-ID: HXWhggOMIEK

--HG--
extra : rebase_source : 9c9eacf80d2b7f78faa82a1549170b98d12cdaa8
2018-02-19 12:56:10 -05:00
Alex Chronopoulos
33dc85d377 Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
MozReview-Commit-ID: 7DqORSl0Sm2

--HG--
extra : rebase_source : 4559b6a65297bf3b2c70f33b6ab27e612a0fced2
2018-02-19 18:28:10 +02:00
Masatoshi Kimura
0c0ddaa7e8 Bug 1425219 - Stop using GetNativePath in ffvpx. r=jya
FFVPXRuntimeLinker could not handle file paths that contain characters outside the current system code page on Windows. This patch will fix it by using wide char APIs.

MozReview-Commit-ID: 9ES1xFELjDs

--HG--
extra : rebase_source : 4bdc082bd6db9263b41fe74d524e0a4d98802ea8
extra : intermediate-source : 8afa22df3893c678884e3a0811fb6c82790c1a3c
extra : source : c6f916a967a78e176bdb699a85e194bbdc372bce
2017-12-15 23:16:39 +09:00
Andreas Pehrson
f5d34fea0d Bug 1430856 - Default to two default capabilities when a camera can handle anything. r=jib
If a camera returns no capabilities we interpret it as it being able to handle
any capability we throw at it. However, we also end up trying to start it with
the default capability of 0x0@0. This often works, but we can crash when
rescaling it to the chosen target capability 0x0@0.

With this patch we inject up to two default capabilities, one at 640x480@30 and
one at 1280x720@30. With constraints present we'll try to adjust these defaults
so they fit within the constraints while at the same time preserve the
aspect ratio given by prefs.

MozReview-Commit-ID: 3mr7Li5TTbV

--HG--
extra : rebase_source : c525c2fd8d60f5dece548216caefc4976e9afb0b
2018-02-13 20:22:18 +01:00
Andreas Pehrson
7186f8d0f3 Bug 1430856 - Cache CaptureCapability in CapabilityCandidate. r=jib
This will lead to less ipc calls, hopefully speeding up getUserMedia for many
devices.

This also lets us inject any hardcoded capabilities into the candidateSet in
the future (read: next patch).

MozReview-Commit-ID: HjIhRK1nVA1

--HG--
extra : rebase_source : f58e16c45f7bd6738ce0a0527dc86854f804bc7b
2018-02-13 20:13:47 +01:00
Dan Glastonbury
35b53a22df Bug 1428947 - Check plane width & stride constraints. r=mattwoodrow
MozReview-Commit-ID: HEcMG4JoEl3
2018-02-19 11:41:41 +10:00
Chris Peterson
0129d900f3 Bug 1436263 - Part 2: Replace override final virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson
d09123f248 Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Kyle Machulis
9e159ac69d Bug 1407040 - Change HTMLMediaElement XPCOM Enums to WebIDL Enums; r=bz
MozReview-Commit-ID: 55GnbaL2HKl

--HG--
extra : rebase_source : 5bb6c927443bf6adcfe594e69bd70c3b597b9ea4
2018-02-14 19:23:32 -08:00
Ralph Giles
31e3a8ea65 Bug 1437351 - Update callers for mp4parse v0.10.0. r=kinetik
Remove references to the mp4parse_log() method which was
removed in this release. Instead we default to the logging
implementation provided by libgkrust.

MozReview-Commit-ID: KKzeEcB5UiP

--HG--
extra : rebase_source : 2777f13a006c09afb82772475d25245b2752524c
2018-02-13 17:22:37 -08:00
Dorel Luca
dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Paul Adenot
46da831f14 Bug 1422820 - Don't recurse too much when shutting down cameras. r=pehrsons
--HG--
extra : histedit_source : 2f3145f04e4ca35a412b9870a29ff26d28eab5d6
2018-02-08 17:49:25 +01:00
Munro Mengjue Chiang
6a3772c982 Bug 1426129 - Hold CamerasChild via promoting "this" to a RefPtr. r=jib
MozReview-Commit-ID: JdZqnGxlsBV

--HG--
extra : histedit_source : e7ad3a93f442260b2b9e4f6e8acb6d4e244f3fa1
2018-01-16 15:27:09 +08:00
Boris Zbarsky
9bdcffc985 Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
Chris Pearce
e878eeef74 Bug 1182329 - Allow pages which have camera/microphone permission to autoplay audible media. r=jib
It seems reasonable to assume that when a page has been granted permission
to capture camera/microphone, the user intends it to play audible media.

MozReview-Commit-ID: 1RdsPK1vRPt

--HG--
extra : rebase_source : 688b68c29d73f117a2cc376233d664bc9cdb5d52
2018-02-08 16:05:46 +13:00
Andreas Pehrson
5a51d4ff01 Bug 1435670 - Remove assert when there's no capability for a device. r=jib
Not all devices have capabilities. Our code is already setup to handle that
case by defaulting to a capability with width,height,maxFPS=0 and propagating
the failure to start.

MozReview-Commit-ID: AZJKZeBrYC2

--HG--
extra : rebase_source : f1030fc97416f9b3b8e363edcbf440f6f250c749
2018-02-08 11:23:53 +01:00
Andreas Pehrson
1f1e4dde69 Bug 1433552 - Allow zeroes to CamerasParent's FeasibilityDistance functions. r=jib
Getting zeroes here is rare, but the numbers come from a platform API so no
guarantees are given for them. This patch makes it as permissive as possible.

MozReview-Commit-ID: 2bjPRzhk1L7

--HG--
extra : rebase_source : 0a3bf122f79d4ff69c0d471dde32d5865edbfce5
2018-02-02 16:57:45 +01:00
Byron Campen [:bwc]
01d2150df6 Bug 1437832 - Part 2: Use the same C++ logic for replaceTrack, removeTrack, and addTrack (when on a pre-existing transceiver). r+jib r=jib
MozReview-Commit-ID: KQSlagkmAZ

--HG--
extra : rebase_source : 10a1f60995277f37b76b32ed741f51821a8a9729
2018-02-13 13:25:19 -06:00
Byron Campen [:bwc]
76cebe2eb1 Bug 1437832 - Part 1: Test-case for addTransceiver, then addTrack, then removeTrack. r+jib r=jib
MozReview-Commit-ID: 70hjut3HIsw

--HG--
extra : rebase_source : 0e7b247aeb1da696d208978683dfbedda9daf41d
2018-02-13 13:21:29 -06:00
Alex Chronopoulos
344ccb9379 Bug 1431056 - Stop using fake constraints in a media mochitest. r=pehrsons
MozReview-Commit-ID: 8vhrSvOKfIR

--HG--
extra : rebase_source : 85c84fddf8195d7178c2dc541bdfd3b6414a2ec7
2018-02-14 12:26:12 +02:00
Andrew McCreight
b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Narcis Beleuzu
a167feb192 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-08 21:34:52 +02:00
Andrea Marchesini
806d5dbc75 Bug 1434884 - WebVTT parser must be able to deal with partial lines, r=rillian 2018-02-08 11:45:06 +01:00
Paul Adenot
7ed231dd99 Bug 1420322 - Add a test for seamless looping. r=pehrsons
MozReview-Commit-ID: 8WdItn7SXB3

--HG--
extra : rebase_source : e4b45545013733b03d41f9eedb5125866f2d50a4
2018-02-06 15:25:25 +01:00
Karl Tomlinson
df12c01556 bug 1436267 fallback from audio callback to system clock driver on error only once r=padenot
Usually, mShouldFallbackIfError has been reset to false in DataCallback()
before Stop() is called.  However, if fallback to a system clock driver due to
cubeb error had already occurred, then mShouldFallbackIfError would not have
been reset, and Stop() is still called.  With mShouldFallbackIfError still
true, a cubeb error in stop would have created another fallback thread.

I expect that resetting mShouldFallbackIfError in Stop() would also be an
effective alternative solution, but resetting on StateCallback() happens
earlier, which would be an advantage if any additional errors could possibly
be reported to StateCallback().

MozReview-Commit-ID: E9j7PQmS3O4

--HG--
extra : rebase_source : 200993c9e99475101c429005cfadb7260df29067
2018-02-07 20:16:01 +13:00
Byron Campen [:bwc]
63e00f7ce5 Bug 1435013: Sync transceivers before creating offers/answers. r=jib
MozReview-Commit-ID: EORXVc8Hnky

--HG--
extra : rebase_source : 1ea186ac38f44b83f247b51224dd83be0b09df42
2018-02-01 12:07:02 -06:00
Andreas Pehrson
fe7bade6b4 Bug 1434946 - Indentation fix. r=jib
MozReview-Commit-ID: JCQxatbThyI

--HG--
extra : rebase_source : 6d5c7319a69da1b5e93b352be79400ad8fd526f8
2018-02-01 18:35:55 +01:00
Andreas Pehrson
0c896f9aef Bug 1434946 - Set framerate in settings when capabilities are updated. r=jib
This adds back the `framerate` update that was removed in bug 1299515.

It also fixes a threading issue (not really an issue, but it broke the
documented policy) where Start() wrote to mCapability without holding mMutex.

MozReview-Commit-ID: Jda5moNhlkM

--HG--
extra : rebase_source : a8f27f064b9f818eb29aa72a18605786c474631b
2018-02-01 17:00:59 +01:00
Andreas Pehrson
f52aa5b27e Bug 1434946 - Report resolution change in settings already on first frame. r=jib
MozReview-Commit-ID: IzhdiHgVKOc

--HG--
extra : rebase_source : 085308eb966554ed71fb6b758cd59132b43d6ceb
2018-02-01 16:58:35 +01:00
Andreas Pehrson
422d32be88 Bug 1434861 - Simplify rescaling code in MediaEngineRemoteVideoSource::DeliverFrame. r=jib
Most importantly, this reduces the number of copies to 1 in the common case.
In a case where we are rescaling because there are competing gUM requests
this does two copies, where one is the crop-and-scale operation itself.

In the worst case we do two allocations, but with a buffer pool and a recycling
ImageContainer we allocate very rarely in practice.

MozReview-Commit-ID: B0Et4wZol9n

--HG--
extra : rebase_source : e0950a53278336773570c9e989a21392195f8898
2018-02-01 16:06:19 +01:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Paul Adenot
03d4052829 Bug 1434600 - Clean up the MediaEngineWebRTC*Source when navigating away from a document. r=pehrsons
MozReview-Commit-ID: 4XXJ6fcdV9G

--HG--
extra : rebase_source : 610219c774e4fbfe5265d51f9cf818c178e0704b
2018-01-31 19:03:39 +01:00
Paul Adenot
8413544b59 Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons
MozReview-Commit-ID: 12w4StZE2eg

--HG--
extra : rebase_source : 3c3ddf24da24e42e53d9e5352cb83945c97ead99
2018-01-31 19:02:00 +01:00
Paul Adenot
4bf54def7a Bug 1434600 - Plumb the window ID down to Enumerate{Audio,Video}Devices. r=pehrsons
MozReview-Commit-ID: 57d8l89Iq4v

--HG--
extra : rebase_source : a31703dfedadbedfc0dbbb0a4949db672cc16c70
2018-01-31 17:57:59 +01:00
Andreas Pehrson
54d329cb35 Bug 1435673 - Strengthen some MediaEngineWebRTCMicrophoneSource asserts. r=padenot
MozReview-Commit-ID: HtjndNLWZI8

--HG--
extra : rebase_source : e9076defa2bc667d5c96cee3bbccc6d297fc8aab
2018-02-05 10:58:21 +01:00
Andreas Pehrson
06be9533d1 Bug 1435673 - Do some cleanup that was meant to happen earlier. r=padenot
MozReview-Commit-ID: 1v07YH1hKiG

--HG--
extra : rebase_source : c7aab7a7480d8a72b0e312cfe24a7aa212f0cf5d
2018-02-05 10:54:10 +01:00
Andreas Pehrson
c1032b3da7 Bug 1435673 - Inline Alloc/FreeChannel and fix access per threading model. r=padenot
MozReview-Commit-ID: 1hpt8tAFuKW

--HG--
extra : rebase_source : 7ce40c2811b1869f98a7737373f02db7b488b829
2018-02-05 10:50:47 +01:00
Andreas Pehrson
650dcb5d2d Bug 1435673 - Fix calling Deallocate() without SetTrack(). r=padenot
Before bug 1299515 we assigned stream and track id in Allocate(), meaning that
any Deallocate() had a guarantee of them being set.

This changed to require an extra step of SetTrack() to assign stream and
track id. Deallocate() needs to handle this, which it does with this patch.

MozReview-Commit-ID: Js0cXXOR2Bb

--HG--
extra : rebase_source : f90dc1345ae0c034d2237d771630055729180df4
2018-02-05 10:48:23 +01:00
Sylvestre Ledru
f25e5479bc Bug 1435262 - Remove the const type qualifiers to silent a gcc 8 warning r=gerald
MozReview-Commit-ID: 28NSnyYMPQ0

--HG--
extra : rebase_source : 8674d1dbfabaf8ecc20a58d755e103d13abfc725
2018-02-02 15:49:00 +01:00
Michael Froman
475c6b33c7 Bug 1414171 - pt 3 - Add componentId to expected fields in test_peerConnection_stats.html. r=drno
MozReview-Commit-ID: Hez0vOu5vTs

--HG--
extra : rebase_source : c722927207ad5c8e3c26a56cea70e1d20233e98d
2018-02-01 15:06:01 -06:00
Michael Froman
38bdfba7a2 Bug 1414171 - pt 2 - Sort ICE stats by componentId on about:webrtc. r=drno
- add new component_id field to NrIceCandidatePair
- add the candidate pair component_id to RTCIceCandidatePairStats in
  RecordIceStats_s
- add new column in ice stats table for component id
- sort ice stats by component id first


MozReview-Commit-ID: J89ZIYEUyRk

--HG--
extra : rebase_source : 681a5afa1303b4e377fcc14d099ce0b3d852f22c
2018-01-30 22:23:54 -06:00
Andreas Pehrson
44946573a2 Bug 1434988 - Make audio loopback mochitest return early without loopback device set up. r=achronop
MozReview-Commit-ID: AA05i50qI2A

--HG--
extra : rebase_source : 9b5911586741eacd8c8b32b1e291b9d8bd64b709
2018-02-01 19:28:57 +01:00
Gurzau Raul
1315ffda06 Merge inbound to mozilla-central. a=merge 2018-02-02 00:22:39 +02:00
Gurzau Raul
047564ed7a Merge inbound to mozilla-central. a=merge 2018-02-01 23:53:53 +02:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky
478687c2e8 Bug 1434686 part 4. Use IgnoreErrors() in dom/. r=mystor
MozReview-Commit-ID: GwVDrTLPTOb
2018-02-01 14:21:14 -05:00
David Keeler
087f092867 bug 1421084 - part 4/4 - remove nsNSSShutDown.h and (hopefully) all references to it r=mt,ttaubert
MozReview-Commit-ID: 2mhvHsC5Nil

--HG--
extra : rebase_source : 651c2bcf8655f75756ea2bac788eb8c0781dc90a
2018-01-24 14:44:01 -08:00
David Keeler
ad5cec4768 bug 1421084 - part 3/4 - remove nsNSSShutDownObject::shutdown and virtualDestroyNSSReference r=mt,ttaubert
MozReview-Commit-ID: ErL7ZjAGVVC

--HG--
extra : rebase_source : 2869aafaef729f0ad190f957919e8b9c40700477
2018-01-24 14:29:08 -08:00
David Keeler
a0e34baf27 bug 1421084 - part 2/4 - remove nsNSSShutDownObject::isAlreadyShutDown() r=mt,ttaubert
MozReview-Commit-ID: DlS16pHE0Ik

--HG--
extra : rebase_source : d7596a3571478adefae4ffa5d446ff5234ba9ed7
2018-01-23 12:22:56 -08:00
David Keeler
e8cc0ba1ce bug 1421084 - part 1/4 - remove now-unnecessary nsNSSShutDownPreventionLock r=mt,ttaubert
As of bug 1417680, the NSS shutdown tracking infrastructure is unnecessary (and
does nothing anyway). This series of changesets removes the remaining pieces in
a way that is hopefully easy to confirm is correct.

MozReview-Commit-ID: 8Y5wpsyNlGc

--HG--
extra : rebase_source : ef6b481510d949e404a4ef5615097d66e566c947
2018-01-23 10:37:47 -08:00
Munro Mengjue Chiang
4197e56037 Bug 1423582 - use UniquePtr to wrap frame. r=pehrsons
MozReview-Commit-ID: 2T7RC1tBbOA

--HG--
extra : rebase_source : e964a73844edb7f10fb94442cc855f7922bb886d
2018-02-01 11:42:28 +01:00
Chris Pearce
b37bd17a56 Bug 1433344 - Convert encrypted AAC to ADTS before decryption. r=jya
MozReview-Commit-ID: IGmBfJtYsCi

--HG--
extra : rebase_source : d066644e848f8fb379607d0168960132881d7df8
2018-01-30 14:39:09 +13:00
Cosmin Sabou
b35f58da34 Backed out changeset 1fea6030657b (bug 1433344) for mda failures on EMEDecoderModule.cpp on a CLOSED TREE 2018-02-01 03:05:53 +02:00
Chris Pearce
328670db16 Bug 1433344 - Convert encrypted AAC to ADTS before decryption. r=jya
MozReview-Commit-ID: IGmBfJtYsCi

--HG--
extra : rebase_source : a0752ed6c85faf4333ae84a3e5b20695b5bf26a6
2018-01-30 14:39:09 +13:00
Andreas Pehrson
0d112b8fad Bug 1434628 - Unbust --disable-webrtc builds. r=padenot, a=me
MozReview-Commit-ID: Ef8LOr1YymV
2018-01-31 16:59:53 +01:00
Andreas Pehrson
f3cc4b74af Bug 1299515 - Fix bustage on a CLOSED TREE. r=me
--HG--
extra : rebase_source : 5312eaeec727b4cc9ced77fc2adbbff19ab6cc26
extra : histedit_source : c6638f1b1df9af06b30412e774c4a6f782d45c8c
2018-01-31 16:08:13 +01:00
Andreas Pehrson
943436bfbe Bug 1426718 - Assert that we append at most once per stream per iteration. r=padenot
MozReview-Commit-ID: 3bNTZRhv839

--HG--
extra : rebase_source : b7da2412b89bf79c72344509847ff54853adcbbe
2017-11-22 14:30:00 +01:00
Andreas Pehrson
63cdbabafe Bug 1299515 - Make LocalTrackSource hold a WeakPtr to SourceListener. r=jib
MozReview-Commit-ID: 93jKsK5JfqG

--HG--
extra : rebase_source : f75b7e53760be63123f22ef1f7981c7d8e38132c
2018-01-23 11:31:22 +01:00
Andreas Pehrson
09669c4432 Bug 1299515 - Don't assert that tracks must be ended in forced shutdown. r=padenot
I hit this during local tests. It's a fine invariant but it doesn't hold in
forced shutdown.

MozReview-Commit-ID: HtoiGwf7IMI

--HG--
extra : rebase_source : 707de2fe08ccad99a06dab00969e2f140e63abad
2018-01-03 15:13:36 +01:00
Andreas Pehrson
2b25cd7258 Bug 1299515 - Signal SetPullEnabled with a message. r=padenot
With the added invariant that NotifyPull() needs a MediaStreamListener present
to not underrun, we need SetPullEnabled() and AddListener() to stay in sync by
using the same signaling mechanism.

MozReview-Commit-ID: 49KWdiTOG98

--HG--
extra : rebase_source : d0ad44d7ce431aa792c4908f96baf0c0920dbe90
2018-01-03 11:59:41 +01:00
Andreas Pehrson
1eb21f16e5 Bug 1299515 - Replace a rawptr handoff with generalized lambda capture. r=jib
MozReview-Commit-ID: A1hbcpdHygY

--HG--
extra : rebase_source : 97ac2f1fe6da2596754f3ade1a59ceae582294da
2017-12-20 21:54:16 +01:00
Andreas Pehrson
66a566c5e7 Bug 1299515 - Set track stop_on_disable prefs to act immediately in test. r=jib
MozReview-Commit-ID: ALEbQpVm68t

--HG--
extra : rebase_source : 5a9566ada8e710e4cf51de66e131c0015e787351
2017-11-28 11:17:17 +01:00
Andreas Pehrson
cfef991f4a Bug 1299515 - Modernize tests that disable tracks to prime for coming patches. r=jib
MozReview-Commit-ID: 9rzaZimjpm9

--HG--
extra : rebase_source : ea1a1684d8cec7671b8f627ce79c41ae5016639c
2017-11-28 11:15:44 +01:00
Andreas Pehrson
b8ef7b60f9 Bug 1299515 - Put pushPrefs in head.js. r=jib
MozReview-Commit-ID: F770g5cjH0k

--HG--
extra : rebase_source : 94464257153c814a32f2838b79124dbaf1fab3df
2017-11-23 17:28:40 +01:00
Andreas Pehrson
d09d284893 Bug 1299515 - Drive by touchups in MediaTrackConstraints. r=jib
MozReview-Commit-ID: EBztQ99CKQ4

--HG--
extra : rebase_source : 3ca504ada622a7db9a6e97dc23ff88558a66795d
2017-11-21 15:53:02 +01:00
Andreas Pehrson
09f130fe44 Bug 1299515 - Wire up track-disabling logic to frontend APIs. r=jib, r=johannh
This modifies mediaCaptureWindowState() to say whether a camera or microphone is
actively captured or not. Note that this is not the same as the device being
on or off. If we disallow a device from being off while disabled, we still
notify chrome that we're not actively capturing.

MozReview-Commit-ID: B1taormqc3j

--HG--
extra : rebase_source : 292d323c4b9711cc242170f5c5c139bb87658c44
2017-11-17 20:13:06 +01:00
Andreas Pehrson
a9436d8f79 Bug 1299515 - Stop Camera and Microphone device when tracks become disabled. r=jib
This wires up the disabling of a track with actually stopping the device if we
allow it.

This is possible for:
- Camera (enabled by default, controlled by pref
  "media.getusermedia.camera.off_while_disabled.enabled")
- Microphone (disabled by default, controlled by pref
  "media.getusermedia.microphone.off_while_disabled.enabled")

Screen-, app-, or windowsharing is not supported at this time.

On disabling, there's a delay before the device is ordered to stop. This is
now defaulting to 3 seconds but can be overriden by prefs
"media.getusermedia.camera.off_while_disabled.delay_ms" and
"media.getusermedia.microphone.off_while_disabled.delay_ms".

The delay is in place to prevent misuse by malicious sites. If a track is
re-enabled before the delay has passed, the device will not be touched until
another disable followed by the full delay happens.

MozReview-Commit-ID: D4nZWzrYZGm

--HG--
extra : rebase_source : 6a54fa450bd435ed65de2a30b66d25f4a5e8241e
2017-11-17 19:56:00 +01:00
Andreas Pehrson
60544370ea Bug 1299515 - Implement MediaTimer::Cancel to allow for rejecting timer promises. r=jya
MozReview-Commit-ID: ESLlbIS8XHa

--HG--
extra : rebase_source : 2382f6ba2582363c6663ec5b925684ab18b73abe
2017-12-20 10:02:31 +01:00
Andreas Pehrson
568e0a7bf4 Bug 1299515 - Implement MediaTimer::WaitFor for convenience. r=jya
MozReview-Commit-ID: VpHxUKn3hO

--HG--
extra : rebase_source : 2346c317f9819c01056baaa2c8fb50fe8a2bfad0
2017-12-20 10:01:47 +01:00
Andreas Pehrson
abde2fb147 Bug 1299516 - Allow MediaEngines to Start() and Stop() without affecting tracks. r=jib, r=padenot
This is the larger change for this bug. In order to turn off a device on
disabling we want to Stop() it without ending the attached track.

To allow this, this patch breaks out track-creation from Start() to SetTrack()
and moves track-ending logic from Stop() to Deallocate().

It is a programming error to Start() or Stop() a MediaEngineSource that hasn't
seen a SetTrack().

MozReview-Commit-ID: 3KzmuDjCAH0

--HG--
extra : rebase_source : 361d9b9c2a818ce51fa90d88950d5992c51407c6
2017-12-18 16:19:33 +01:00
Andreas Pehrson
3ceaba23ab Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib
The scope of flattening this hierarchy quickly grows large, so this patch does
a couple more things:
- Creates a pure interface MediaEngineSourceInterface and a base class
  MediaEngineSource with common defaults and refcount support (no state!)
- Breaks out some of the helper classes to dedicated files, e.g.,
  AllocationHandle, MediaEnginePrefs.
- Clarifies the threading model (written on one thread *and* under lock,
  read under either)
- Fixes style, indentation, include-sorting in the affected files
- Adds comments, especially for clarifying what responsibilities methods have,
  and thread usage of class members
- Changes Monitors to Mutexes since we only use them as Mutexes anyhow
- Makes MediaEngineRemoteVideoSource no longer a shared source since we now
  support scaling in this source and CamerasChild can act as a broker of frames.
  This greatly simplifies it. The only shared source is now
  MediaEngineWebRTCMicrophoneSource, so the sharing specific common methods have
  been moved to that source.

MozReview-Commit-ID: KeVZQo6gLm2

--HG--
rename : dom/media/webrtc/MediaEngine.h => dom/media/webrtc/MediaEnginePrefs.h
extra : rebase_source : c785a5feb896312912170475d6b8d997e712e48f
2018-01-24 16:49:13 +01:00