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

10426 Коммитов

Автор SHA1 Сообщение Дата
Alfredo.Yang 0e5b3d1e8c Bug 1341221 - enable rust mp4 parser on linux debug build. r=kinetik
MozReview-Commit-ID: DSkDsDpz0uO

--HG--
extra : rebase_source : c602d06def9a0647503c78c3a2e72310d053ebce
2017-03-26 23:19:49 +08:00
JW Wang a7f369e934 Bug 1350811 - Replace use of int64_t for microseconds by TimeUnit in DecodedStream. r=kaku
MozReview-Commit-ID: JjBfTmqkru8

--HG--
extra : rebase_source : f03d35b4697304255f24e66dbdf93a1c8815fd59
2017-03-27 11:09:49 +08:00
Chris Pearce d885daf774 Bug 1351132 - Fix keystatus and decode logging in ChromiumCDMChild. r=gerald
MozReview-Commit-ID: xwfJ4WwbmN

--HG--
extra : rebase_source : ee459eb16df41055ce6ade360ff1149f3b894caa
2017-03-28 11:05:48 +13:00
Paul Adenot 863a1ccd9e Bug 1343550 - Mochitest. r=baku
MozReview-Commit-ID: 72V86HrbVCl

--HG--
extra : rebase_source : 8f561de253021c7566e5d3160bb6b8f43ff0319f
extra : intermediate-source : b258ffe9ee50b38cecbd4eb8fb00c02d30f42376
extra : source : 1aa20dad5c31bc1629516af77266266e1074fb26
2017-03-09 14:09:48 +01:00
Paul Adenot 838b5a8cad Bug 1343550 - Prevent creating AudioNodes on an AudioContext that has been disconnected from its owner. r=baku
Spec (being written): https://github.com/WebAudio/web-audio-api/issues/1139

Bug 1343550 - Prevent touching promises when shutting down an AudioContext, when the global is going away soon. r=baku

MozReview-Commit-ID: F6en9KEbNNf

--HG--
extra : rebase_source : 04076caa38bba980cdff776b5997f33e24516d9e
extra : intermediate-source : 4f2cd3f715a218dc3bca55e89720b6aa1040d35c
extra : source : 69cd9c72bd4ed419e3f7f7b5ab64ee0fa8bd89a2
2017-03-15 17:36:40 +01:00
JW Wang d4487752ce Bug 1350837. P3 - rename the variable and fix comments. r=kaku
MozReview-Commit-ID: JI1sp6f6Xnb

--HG--
extra : rebase_source : 81342c1c7ce66f41b9c1edc81e1fa8ae2a29d711
extra : source : 7ef12f35a566561375eceb89f4499256f6f49cbe
2017-03-28 14:38:30 +08:00
JW Wang 392f7fe562 Bug 1350837. P2 - change the type of mAmpleAudioThresholdUsecs to TimeUnit. r=kaku
MozReview-Commit-ID: 2de8DrlemaT

--HG--
extra : rebase_source : 8aefbfa66940bacff448dff1733b9741993078af
extra : source : 479fe87b6feb3aa34d8725357bea7eaf12c37ac3
2017-03-28 14:27:26 +08:00
JW Wang 3cc0ac793e Bug 1350837. P1 - add AMPLE_AUDIO_THRESHOLD and use it to replace AMPLE_AUDIO_USECS. r=kaku
Note we can't simply change the type of AMPLE_AUDIO_USECS to TimeUnit because it is
used in a static_assert and TimeUnit::ToMicroseconds() is not a const expression.
There is no easy way to change it because CheckedInt::value() calls MOZ_ASSERT which
can't be a const expression.

MozReview-Commit-ID: 17qaTFOOLpL

--HG--
extra : rebase_source : 30d20d681d64cae35e0a56e9c6113afd1a712548
extra : source : bb1e3ec2bc37b0c0c7377dd78d935f60fca3a643
2017-03-28 14:21:01 +08:00
JW Wang d89ec64fed Bug 1350832. P3 - rename variables and fix comments. r=kikuo
MozReview-Commit-ID: 1xA8doM1tAG

--HG--
extra : rebase_source : fdeba5d0006a4875fdb96a620c98bab5dd80b580
extra : source : bcf51727f7416c0fe140b95f5875da6aca8ae0d1
2017-03-27 16:28:02 +08:00
JW Wang faade86218 Bug 1350832. P2 - change the type of mLowAudioThresholdUsecs to TimeUnit. r=kikuo
MozReview-Commit-ID: AurJRSuZkkg

--HG--
extra : rebase_source : 0fd06ad51f35d203c094d26c74a2d098f53bd36b
extra : source : 7ec0cc1999c03a09313c7ef85c90c8537440db8d
2017-03-27 16:22:09 +08:00
JW Wang 52f41d64eb Bug 1350832. P1 - change the type of LOW_AUDIO_USECS to TimeUnit. r=kikuo
MozReview-Commit-ID: GEemdvt5ldM

--HG--
extra : rebase_source : c8e62486dd3151602f91d37902e32b86a71f25e7
extra : source : 74788cb656f1d2829b60801f5964c159037fd0b4
2017-03-27 16:15:35 +08:00
JW Wang 8b923c809d Bug 1350791 - Add constexpr and some handy functions to TimeUnit. r=gerald
MozReview-Commit-ID: 2UfVSKWSa42

--HG--
extra : rebase_source : 26844d50f6c4c8105f275ce43807b7f4c7832b06
2017-03-27 10:59:56 +08:00
Alfredo.Yang fb9844d916 Bug 1330243 - add preference to enable rust mp4 parser. r=kinetik
MozReview-Commit-ID: LINNEMiXYx4

--HG--
extra : rebase_source : 747b9854b0d5d1f0419c59c5966414872e8ea158
2017-03-14 15:42:09 +08:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Gerald Squelart c5578cbb63 Bug 1343442 - Analyze eDecodeError/Warning issues - r=jya
MozReview-Commit-ID: 97AhQz2Hgmi

--HG--
extra : rebase_source : 66ccff1a9aeb7cdbc49e57a116ef449017b31c04
2017-03-24 17:09:41 +11:00
Gerald Squelart 4933532b48 Bug 1343442 - Provide appropriate params to console message - r=jya
MozReview-Commit-ID: HiaY20UqksU

--HG--
extra : rebase_source : 85b2c6e6d3007e26397c2ce71f75968eb2070ea3
2017-03-23 10:21:27 +11:00
Gerald Squelart 66b79b4832 Bug 1343442 - Move NotificationAndReportStringId closer to first use - r=jya
MozReview-Commit-ID: IBn5jsHTsKx

--HG--
extra : rebase_source : c6577e001dc0f9fa0cddbcd9fa56ee5511852564
2017-03-22 15:37:41 +11:00
Wes Kocher 6d0b00069c Merge inbound to central, a=merge
MozReview-Commit-ID: JGfQoBJy2jt
2017-03-24 17:17:27 -07:00
Ben Kelly 4ffa062ade Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
Nicolas Silva 0f4ab75a96 Bug 1309200 - Backed out changeset 0447969a62c2 due to test failures. r=me 2017-03-24 15:22:36 +01:00
Carsten "Tomcat" Book 5f408d092d Merge mozilla-central to mozilla-inbound 2017-03-24 14:29:00 +01:00
Carsten "Tomcat" Book 7419b36815 merge mozilla-inbound to mozilla-central a=merge 2017-03-24 14:24:21 +01:00
Iris Hsiao 26a234de5d Backed out 6 changesets (bug 1347758) for eslint failure
Backed out changeset 9becd55242c1 (bug 1347758)
Backed out changeset 2abce19f5001 (bug 1347758)
Backed out changeset 80232d4c85d5 (bug 1347758)
Backed out changeset 1fd084ec34d4 (bug 1347758)
Backed out changeset cafb3c12027b (bug 1347758)
Backed out changeset 85846edfe957 (bug 1347758)
2017-03-24 16:58:08 +08:00
Chris Pearce 0901ad8256 Bug 1315850 - Ask the GMPService for the GMP thread in GMPParent::ChildTerminated. r=gerald
When we shutdown the browser while the GMPService is active we can end up
leaking a GMPParent, GeckoMediaPluginServiceParent, and a Runnable. I tracked
this down to the runnable dispatched to the GMP thread in
GMPParent::ChildTerminated(). The dispatch of this runnable is failing as we
are dispatching the runnable to a reference of the GMP thread which we have
previously acquired, but that thread is now shutdown. So the dispatch fails,
and if you look in nsThread::DispatchInternal() you'll see that we deliberately
leak the runnable if dispatch fails! The runnable leaking means that the
references it holds to the GMPParent and the GMP service parent leak.

The solution in this patch is to not cache a reference to the GMP thread on the
GMPParent; instead we re-request the GMP thread from the GMPService when we
want it. This means that in the case where the browser is shutting down,
GMPParent::GMPThread() will return null, and we'll not leak the runnable. We'll
then follow the (hacky) shutdown path added in bug 1163239.

We also need to change GMPParent::GMPThread() and GMPContentParent::GMPThread()
to return a reference to the GMP thread with a refcount held on it, in order
to ensure we don't race with the GMP service shutting down the GMP thread
while we're trying to dispatch to in on shutdown.

MozReview-Commit-ID: CXv9VZqTRzY

--HG--
extra : rebase_source : e507e48ee633cad8911287fb7296bbb1679a7bcb
2017-03-24 13:38:00 +13:00
Alastor Wu e81c17d1b2 Bug 1347758 - part4 : add audio channel log. r=Ehsan
MozReview-Commit-ID: LNXzRZx2rC2

--HG--
extra : rebase_source : eef0ad3d65161c422d3cab57e6e081796452bdd1
2017-03-24 12:04:15 +08:00
JW Wang b783d4fca2 Bug 1350203. P6 - rename SWARN to SLOGW. r=kaku
MozReview-Commit-ID: HEPJ6Ktj8UH

--HG--
extra : rebase_source : 0eda6d4aaf1b7adcda937a1d2e99a332dc3e76e3
2017-03-24 12:42:49 +08:00
JW Wang 5274c2cb96 Bug 1350203. P5 - replace SAMPLE_LOG with LOGV. r=kaku
We often need to turn on both MediaSample and MediaDecoder logs when debugging sample activities.
So it is convenient to merge them into a single log module.

Use `MOZ_LOG=MediaDecoder:4` to show decoder logs.
use `MOZ_LOG=MediaDecoder:5` to show both decoder and sample logs.

MozReview-Commit-ID: JQtyoyrNRmV

--HG--
extra : rebase_source : 85739da85aa4059b058a9baccd5509c8149712d8
2017-03-24 11:58:37 +08:00
JW Wang a69e7de100 Bug 1350203. P4 - change the level of MediaSink logs. r=kaku
1. Use LOG() for OnMediaSink{Audio,video}Complete() which is not verbose.
2. Use LOGW() for OnMediaSink{Audio,Video}Error() which indicates an error.

MozReview-Commit-ID: 4Z5U32YlMPB

--HG--
extra : rebase_source : 2b2da51c17b6c7d9b4ec8b0f274c9ed018631374
2017-03-24 11:43:57 +08:00
JW Wang 83dc3dc981 Bug 1350203. P3 - rename DECODER_WARN to LOGW. r=kaku
MozReview-Commit-ID: 3dstP1KkBJh

--HG--
extra : rebase_source : ad40556a87cd205bd94331c396f7a2255c4a6d44
2017-03-24 11:38:22 +08:00
JW Wang 2641e73ea3 Bug 1350203. P2 - rename VERBOSE_LOG to LOGV. r=kaku
MozReview-Commit-ID: IM8t69P5dU4

--HG--
extra : rebase_source : dc6325c87c368079c766f884551db1baba67c7f9
2017-03-24 11:35:45 +08:00
JW Wang 3fd71fee63 Bug 1350203. P1 - rename DECODER_LOG to LOG. r=kaku
MozReview-Commit-ID: nL4fiALn5N

--HG--
extra : rebase_source : c61b084c062aa0da6551c1f06cb10353518dd995
2017-03-24 11:33:06 +08:00
JW Wang 79d42d9703 Bug 1350202 - use shorter names for logging macros in MediaDecoder.cpp. r=kaku
MozReview-Commit-ID: E2OnbXb82Zb

--HG--
extra : rebase_source : d1de2002a7bb446b10aaeb4e03a56ce3a63f6ae4
2017-03-24 11:17:17 +08:00
Chris Pearce 6d19fe826f Bug 1315850 - Port the work around from Bug 1343140 to the new CDM video decoder architecture. r=gerald
MozReview-Commit-ID: EV0bieXIxYM

--HG--
extra : rebase_source : 404709f1aee80465a953fce1a1e715d49ebfbe35
2017-03-14 17:17:05 +13:00
Chris Pearce e156a08c17 Bug 1315850 - Rename DetailedPromise Status enum. r=gerald
X11.h #defines 'Status' and 'Failed' and 'Succeeded' which conflicts with
the enum in DetailedPromise. So rename the 'Status' enum in DetailedPromise
so that the build works on Linux.

Some of my changes here caused DetailedPromise to be included in more
places that it was before, which caused build failures on Linux.

MozReview-Commit-ID: KV5xKixXR3J

--HG--
extra : rebase_source : ef6cab901d74b78f613660f263f5e453d6044536
2017-03-13 10:42:36 +13:00
Chris Pearce caac622c6d Bug 1315850 - Implement CDM persistent sessions. r=gerald
This is required for the browser clearing persistence tests to pass.

MozReview-Commit-ID: Ai9qc6Ds1IG

--HG--
extra : rebase_source : 80c2133e26742410fda983e3c18c35736fc013d0
2017-03-09 19:09:43 +13:00
Chris Pearce cfe7c116ce Bug 1315850 - Hook up CDM storage. r=gerald
MozReview-Commit-ID: 9gHcMZvmMfg

--HG--
extra : rebase_source : 186f35455264aaa144fd7b1887b8ca2476ac03b2
2017-03-22 16:30:54 +13:00
Chris Pearce bf0e67458a Bug 1315850 - Shutdown ChromiumCDMParent. r=gerald
MozReview-Commit-ID: E82ETFS90eH

--HG--
extra : rebase_source : 6f0d72f76e313b55f7c905d5878c63b8d7292b1b
2017-03-09 17:34:18 +13:00
Chris Pearce 4c421503a8 Bug 1315850 - Shutdown CDMVideoDecoder. r=jya
This severs the ChromiumCDMVideoDecoder's connection with the CDM. The CDM process
will shutdown when the MediaKeys also severs its connection.

MozReview-Commit-ID: Aqc4y5Nxjvc

--HG--
extra : rebase_source : 5a2f77ffe84f9b99b4668520c838b29a428578d3
2017-03-08 10:20:33 +13:00
Chris Pearce dbc1c7bcdf Bug 1315850 - Implement CDM video decoder drain. r=jya
MozReview-Commit-ID: 5RbrWyLglRf

--HG--
extra : rebase_source : 3f9636503523f0c6effab15fa89cce25a961a0b4
2017-03-07 16:37:21 +13:00
Paul Bignier 91a2a8ba90 Bug 1309200 - Use GetSoftwareBackend in dom/media. r=nical 2017-02-27 16:03:36 +01:00
Chris Pearce abcd1aee62 Bug 1315850 - Implement CDM video decoder flush. r=jya
MozReview-Commit-ID: 3CzwfOCXGP

--HG--
extra : rebase_source : 8ee1ae28a36779484717c6b105ef7730dd1896b3
2017-02-14 22:42:26 +13:00
Chris Pearce 6f73601a0b Bug 1315850 - Implement video decoding through CDM. r=jya
At this stage, I store video frames in memory in nsTArrays rather than in
shmems just so we can get this working. Once this is working, I'll follow up
with patches to switch to storing all large buffer traffic between the CDM and
other processes in shmems.

I'm not planning on preffing this new CDM path on until that's in place.

MozReview-Commit-ID: LSTb42msWQS

--HG--
extra : rebase_source : b7f162515a1a32b2c344c11d0fa5c7004cec2e15
2017-03-09 11:32:15 +13:00
Chris Pearce a181e5dc64 Bug 1315850 - Initialize video decoder. r=jya
MozReview-Commit-ID: 559SP0ECldq

--HG--
extra : rebase_source : b6d499cafef2d6a6558b0db703b60320dea67803
2017-03-09 18:17:50 +13:00
Chris Pearce 33d324d5b1 Bug 1315850 - Add threadsafe ChromiumCDMProxy::GetCDMParent. r=gerald
The MediaKeys accesses the ChromiumCDMProxy on the main thread. But the
ChromiumCDMVideoDecoder will need to access the ChromiumCDMProxy on the decode
task queue in order to get a reference to the ChromiumCDMParent so that it can
talk to the CDM (on the GMP thread).

Additionally we'll need to shutdown the ChromiumCDMProxy, and if we do that
on the main threrad while the ChromiumCDMVideoDecoder is trying to get the
ChromiumCDMParent reference, we could hit thread safety issues.

So we need to hold a lock while reading or writing from the ChromiumCDMProxy's
reference to the ChromiumCDMParent. So add a GetCDMParent() function to the
ChromiumCDMProxy which takes the lock while reading or writing the reference.

This means that the caller will always get a valid reference. There is no guarantee
that the ChromiumCDMParent isn't shutdown after the reference is taken; if that
happens, the ChromiumCDMParent returned will fail on all operations.

In a later patch in this series, the ChromiumCDMProxy will anull its reference
to the ChromiumCDMParent on shutdown, and cause GetCDMParent to return null.
So callers need to null check the return value of GetCDMParent.

MozReview-Commit-ID: 4xL41YbwkxL

--HG--
extra : rebase_source : aa854e9d88965d7da60231d6f6a3912bf6ad2eeb
2017-03-13 13:47:20 +13:00
Chris Pearce 42faf7c8fa Bug 1315850 - Create CDM video decoder in EMEDecoderModule. r=jya
MozReview-Commit-ID: 3xgFxg1WfmY

--HG--
extra : rebase_source : 018abf2b8e1b351a29ba62275a2681fe9ea4fc24
2017-03-08 16:20:09 +13:00
Chris Pearce ffe9c27064 Bug 1315850 - Stub out ChromiumCDMVideoDecoder. r=jya
MozReview-Commit-ID: 6I9N1c1nNMF

--HG--
extra : rebase_source : 6c5a3706b37e122a67e5ec1670587f37e25a1bc6
2017-03-09 18:17:14 +13:00
Wes Kocher 1087616d0e Merge autoland to m-c a=merge
MozReview-Commit-ID: 2zUGojOEVNi
2017-03-23 16:05:15 -07:00
Wes Kocher cc9886af29 Merge graphics to m-c a=kats
MozReview-Commit-ID: 9kKfHoyG8kj
2017-03-23 10:36:55 -07:00
Jean-Yves Avenard c48398abd9 eBug 1347101: P2. Don't rely on MF_E_TRANSFORM_STREAM_CHANGE result. r=mattwoodrow a=Tomcat
Under some circumstances, and seen on Windows 8, a decoded sample can be returned without the MFT returning MF_E_TRANSFORM_STREAM_CHANGE.

For historical reasons, we required that message to be returned at least once to set the output image size. This was required as the decoder used to be recycled with different video streams.

This is no longer the case, we can rely on the video info instead. It also greatly simplifies the code

MozReview-Commit-ID: H14KBiNWrjQ
2017-03-23 16:04:39 +01:00
Kartikaya Gupta 0fee7584e7 Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Carsten "Tomcat" Book 78ce0c822e Backed out changeset ad882b32f2d0 (bug 1347101) for merge bustage on a CLOSED TREE 2017-03-23 14:28:25 +01:00
Carsten "Tomcat" Book 492970c342 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Wes Kocher b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Kartikaya Gupta 47c42c47ea Bug 1322816 - Re-enable some skipped reftests now that WebRender handles them. r=rhunt
MozReview-Commit-ID: 1egwR8QAZ2O
2017-03-22 13:56:33 -04:00
Carsten "Tomcat" Book 62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Kaku Kuo 0f173417cb Bug 1349459 part 2 - test element as tainted when CreateImageBitmap() is used; r=jwwang
MozReview-Commit-ID: 6zjugUsA4fZ

--HG--
extra : rebase_source : ee9b3cbcb5fed0641b6d7ec230e1d9a17d3098d4
2017-03-22 15:32:03 +08:00
JW Wang 5a77a04dac Bug 1349485. P5 - make AudioSink a non-ref-counting type. r=kikuo
MozReview-Commit-ID: EJmSTwkSdX6

--HG--
extra : rebase_source : 0972500aeb439d5d09cb111feb619cc22c751b9d
2017-03-22 15:13:10 +08:00
JW Wang db128cb2b7 Bug 1349485. P4 - rename DecodedAudioDataSink.* to AudioSink.*. r=kikuo
MozReview-Commit-ID: KYbJwTpUiHZ

--HG--
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
rename : dom/media/mediasink/DecodedAudioDataSink.h => dom/media/mediasink/AudioSink.h
extra : rebase_source : 414effaad950578dead21401f7e868d4a09a1099
2017-03-22 15:03:38 +08:00
Kaku Kuo 871c76462e Bug 1349456 part 3 - test element become tainted while captured via MozCaptureStream(); r=jwwang
MozReview-Commit-ID: 4nJHwZjZ2zG

--HG--
extra : rebase_source : 4e43cea30088b3e1f4858ace2a1bbe7f85c540fe
2017-03-22 15:03:19 +08:00
JW Wang cf44edf4a7 Bug 1349485. P3 - rename DecodedAudioDataSink to AudioSink. r=kikuo
MozReview-Commit-ID: 3Irf6be322j

--HG--
extra : rebase_source : 31e3697757dabdc97aeb500030f79101eedcfc6e
2017-03-22 14:55:59 +08:00
JW Wang 8a2e4094ff Bug 1349485. P2 - remove dom/media/mediasink/AudioSink.h. r=kikuo
MozReview-Commit-ID: A9YlwfrJTxB

--HG--
extra : rebase_source : 178398ba02f5f1acbfcc734ef027f135e3d633a6
2017-03-22 14:49:46 +08:00
JW Wang eb619f72b5 Bug 1349485. P1 - devirtualize DecodedAudioDataSink. r=kikuo
MozReview-Commit-ID: 7c24rJDaMwX

--HG--
extra : rebase_source : 669539ed8390bef8bcf0402b8b05b251ffc9346e
2017-03-22 14:48:00 +08:00
Carsten "Tomcat" Book 534f3aebc6 Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
JW Wang 0974e1801c Bug 1348931 - remove dead code. r=gerald
--HG--
extra : rebase_source : a4c837715d44a9ecf04defdd4feeaca118041f79
2017-03-22 10:23:46 +08:00
Andrea Marchesini 507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Andrea Marchesini 1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Wes Kocher 03061ecb63 Bug 1349467 - Fix some Audio/Video BUG_COMPONENTs in moz.build files r=jmaher
MozReview-Commit-ID: 3ItJdCtiOul

--HG--
extra : rebase_source : 2db0d75589a0bd8f28bdd35f015949a1194bc47d
2017-03-22 17:23:12 -07:00
sotaro b98245c5fc Bug 1349476 - Remove LayersBackend::LAYERS_D3D9 type r=mattwoodrow 2017-03-23 11:00:41 +09:00
Kaku Kuo a2b8741937 Bug 1348432 - move the mMediaTracksConstructed flag back to MediaDecoder; r=jwwang
This mMediaTracksConstructed flag should belong to a MediaDecoder,
every time a HTMLMediaElement switches its MediaDecoder, the flag should be reset to false again.

So, we move the mMediaTracksConstructed flag back to MediaDecoder, by this way,
HTMLMediaElement provides only the mechanism to construct and remove media tracks,
and MediaDecoder uses the flag, mMediaTracksConstructed, to provide policy.

MozReview-Commit-ID: L7mMAmLjQCy

--HG--
extra : rebase_source : 1625d604afb34bffe79eda06a46c9feb780a14d9
2017-03-18 22:34:01 +08:00
Boris Zbarsky ec233151ac Bug 1348331 part 2. Switch Preferences::RegisterCallback/RegisterCallbackAndCall consumers that want prefix matches to the new RefisterPrefixCallback(AndCall) APIs. r=froydnj,padenot
MozReview-Commit-ID: 2ebVZO4fN6i
2017-03-21 14:59:02 -04:00
bechen 8ea323865a Bug 1347829 - If the timestamp "<00:00.005" missing the last ">" character, we still parse it. r=alwu
MozReview-Commit-ID: KzW1uTSyDE

--HG--
extra : rebase_source : e1543cdc26d4d19d30582827cfd7d8f2961c59cb
2017-03-20 16:32:16 +08:00
Andrea Marchesini c17f4e418b Bug 1340163 - Fix a test failure related to ContentPrincipalInfo.origin usage, r=me CLOSED TREE 2017-03-20 18:28:52 +01:00
Bob Clary 62d135a45f Bug 1347954 - Disable dom/media/test/test_video_to_canvas.html, r=gbrown. 2017-03-20 09:26:18 -07:00
Paul Adenot b8d7a98beb Bug 1341666 - Allow running a `close` message during an MSG shutdown. r=jesup
MozReview-Commit-ID: Hqg0porLEXT
2017-03-20 16:25:19 +01:00
Andrea Marchesini 9a66b94890 Bug 1340163 - Use of contentPrincipalInfo.origin in Media, r=jib 2017-03-20 16:04:06 +01:00
Sebastian Hengst 079d19514c Backed out changeset 591c42f40cbe (bug 1340163) 2017-03-20 15:37:23 +01:00
Andrea Marchesini c2dd88696c Bug 1340163 - Use of contentPrincipalInfo.origin in Media, r=jib 2017-03-20 14:51:56 +01:00
Iris Hsiao 235acee47e Backed out changeset 8db1c2fd27c9 (bug 1347829) for web platform tests failures 2017-03-20 16:06:43 +08:00
bechen 48a8641a54 Bug 1347829 - If the timestamp "<00:00.005" missing the last ">" character, we still parse it. r=alwu
MozReview-Commit-ID: KzW1uTSyDE

--HG--
extra : rebase_source : cac3f211d9b89f9cc89fe8cbaf7bf90d66ff7e72
2017-03-17 11:17:52 +08:00
Kaku Kuo 68dbe0931c Bug 1347892 part 3 - dont change video decode mode if a media element is in-tree with UNTRACKED visibility state; r=jwwang
If a media element is in-tree with UNTRACKED visibility state, the information is incomplete, just ignore it.

MozReview-Commit-ID: FcKybQZqF6c

--HG--
extra : rebase_source : 0d10cf1b80189db200999b3881f42773c34ad798
2017-03-17 13:06:12 +08:00
Kaku Kuo 0696209786 Bug 1347892 part 2 - pass the visibility state of media element to media decoder as a Visibility variable; r=jwwang
MozReview-Commit-ID: AbkJeIpYZlN

--HG--
extra : rebase_source : 3ace472786b9b9900b125164996819b6d6e3627f
2017-03-17 12:51:11 +08:00
Chris Pearce cabb78f52e Bug 1347031 - Move the MediaCache off of opening its temporary file fd synchronously in the content process. r=jwwang
In bug 1346987 we're attempting to remove uses of the
NS_OpenAnonymousTemporaryFile() in the content process as it sends a
synchronous IPC to the parent process on the main thread, which can cause UI
jank. This patch makes the MediaCache use the async anonymous temporary file
creation function added in bug 1346987.

The file descriptor is held by the FileBlockCache. This object buffers data
passed to it in memory, and defers writing of said data to another thread. I
added the async wait for the file descriptor to be inside that async "defer to
other thread" step.

This means that while the content process is waiting for the file descriptor to
come down from the parent process, we'll buffer media data being streamed in
memory. Given that our MSE implementation will buffer up to 100MB of media data
in memory anyway, it seems that more buffering in the src=url case while we
wait for an async IPC to do a round trip to the main process is acceptable.

MozReview-Commit-ID: 3OTBTWw5pr0

--HG--
extra : rebase_source : 56e0a1f1473db3c9722330254f7a4bf3a1f5caa3
2017-03-17 09:54:23 +13:00
Kaku Kuo 229d7c8d86 Bug 1348237 part 3 - add a gtest to test the overflow case; r=jwwang
MozReview-Commit-ID: Fv6MjKjoRxd

--HG--
extra : rebase_source : acdf3e6799819a3664294fa125a88c3d3a41aec4
2017-03-17 16:54:05 +08:00
Kaku Kuo b09416d50a Bug 1348237 part 2 - move declaration of BlankDecoderModule into a header file; r=jwwang
So that we can write gtests easily at next patch.

MozReview-Commit-ID: 8ZWVYO1hDOW

--HG--
extra : rebase_source : 8c3523b06fe284376d59914ecfa3791a91930fc2
2017-03-17 16:53:21 +08:00
Kaku Kuo c819daf588 Bug 1348237 part 1 - prevent overflow in BlankVideoDataCreater; r=jwwang
MozReview-Commit-ID: D5BZIfpZjD3

--HG--
extra : rebase_source : 263394e6057415551e9eb36bc3c74daa33a93c30
2017-03-17 16:20:08 +08:00
Sebastian Hengst e1b539510a merge mozilla-central to autoland. r=merge a=merge 2017-03-19 16:37:31 +01:00
Ehsan Akhgari 04baed23ba Bug 1346987 - Part 3: Stop using the PContent::Msg_OpenAnonymousTemporaryFile sync IPC message for media encoder; r=cpearce 2017-03-19 01:42:02 -04:00
Jan-Ivar Bruaroey 8a1b72c4be Bug 1348174 - Test that deviceIds are stable for same origin and differ across origins. r=jesup
MozReview-Commit-ID: LEkHzgUZwqd

--HG--
extra : rebase_source : 105beb8009fb80bfecc41a1c7604a783e8569efb
2017-03-16 15:14:42 -04:00
Jan-Ivar Bruaroey dac51636c7 Bug 1348174 - Convert test_enumerateDevices.html to async/await. r=ng
MozReview-Commit-ID: 7kWiwD0E5tO

--HG--
extra : rebase_source : 85e3d56621a742c909ec0318a5ffea8ec2b41e0f
2017-03-14 13:50:12 -04:00
Kevin Chen 9347006c20 Bug 1160157 - Make AcquireSync RAII. r=bas
--HG--
extra : rebase_source : ac0843be287410b4fed48d7ab06cbba599735d0a
2017-03-17 00:18:00 -04:00
Sebastian Hengst 15177129f0 Backed out changeset 62f80de05fa2 (bug 1341666) for build bustage in MediaStreamGraph.cpp. r=backout 2017-03-17 19:40:05 +01:00
Paul Adenot 2bd84524ff Bug 1341666 - Allow running a `close` message during an MSG shutdown. r=jesup
MozReview-Commit-ID: Hqg0porLEXT
2017-03-07 16:50:37 +01:00
Kaku Kuo 0d5f3a200f Bug 1347402 part 5 - create MediaElementGMPCrashHelper in HTMLMediaElement.cpp; r=cpearce,jwwang
Move the creation of MediaElementGMPCrashHelper out from MediaDecoder.cpp
which reduces the dependency of MediaDecoder to HTMLMediaElement.

MozReview-Commit-ID: E60aMfcFr7V

--HG--
extra : rebase_source : f50a8ee6f2fbec0bdf117eb1217066bc9c701745
extra : source : dd4e52da6d0d6205fe61d0caba44bbff008fd21a
2017-03-16 11:16:15 +08:00
Kaku Kuo b7fee84e84 Bug 1347402 part 4 - move ConstructMediaTracks/RemoveMediaTracks to HTMLMediaElemnt; r=jwwang
ConstructMediaTracks and RemoveMediaTracks are actually HTMLMediaElement's responsibilities.

MozReview-Commit-ID: 8lOdzD4pN7N

--HG--
extra : rebase_source : 7159d2c62b77429e5b2305b9e3eb7a0020a3b52c
extra : source : 0467c059be3cd8f066da5fc912b7738a5b9c4dd9
2017-03-15 17:33:21 +08:00
Kaku Kuo 81d9f0e2db Bug 1347402 part 3 - get owner document via polymorphism; r=jwwang
MozReview-Commit-ID: GCr2xQyST4X

--HG--
extra : rebase_source : 2798b2f962d52f1fbb2a4459951a1c18e4a0050a
extra : source : 03ead19e945201d3f0e42643cfe0ddf1bc43764f
2017-03-15 14:56:05 +08:00
Kaku Kuo a71c156f34 Bug 1347402 part 2 - open a GetOwnerDoc() interface at the MediaDecoderOwner; r=jwwang
Open a GetOwnerDoc() method to the MediaDecoderOwner interface and then we can get the
owner document via a pointer to MediaDecoderOwner in MediaDecoder.

MozReview-Commit-ID: JCzQDLx1MsU

--HG--
extra : rebase_source : e194c95cb1513046ec7aa19d6c6e9f8231971a2d
extra : source : 1b9c45911a036e3677b6636cda84a636681d71de
2017-03-15 11:40:37 +08:00
Kaku Kuo c8bd9d4d79 Bug 1347402 part 1 - call DownloadSuspended() via polymorphism; r=jwwang
Instead of calling DownloadSuspended() via a pointer to a HTMLMediaElement,
we should call DownloadSuspended() via a pointer to a MediaDecoderOwner.

MozReview-Commit-ID: BvExQuchsWb

--HG--
extra : rebase_source : 0c8a5d412e91e2c370050a4706fc6f2afc0c20e9
extra : source : fb5ca26fc018e273296411a037b70b922cb26f4d
2017-03-15 11:20:57 +08:00
bechen 098e6e6897 Bug 1344604 - part2: Return empty DocumentFragment if the ConvertCueToDOMTree() return null. r=alwu
It is a regression of bug1307710, if something wrong during the ConvertCueToDOMTree() in vtt.jsm, we will get null ptr.

MozReview-Commit-ID: LSQrJIhBzRU

--HG--
extra : rebase_source : b0a2cf675f9288ddc9c264faaffcf97049c6c1c6
2017-03-16 15:25:56 +08:00
bechen 622a99a3ec Bug 1344604 - Return null if there is an incomplete tag in nextToken(). r=alwu
MozReview-Commit-ID: 5mvFhaAx2s5

--HG--
extra : rebase_source : 5ca9f9ae29cbe5bc5a7fdf31489212d252f52656
2017-03-16 15:25:34 +08:00
bechen 74b3bef8a5 Bug 1343796 - Label runnables in TextTrack.cpp. r=jwwang
MozReview-Commit-ID: GvqwG181R4i

--HG--
extra : rebase_source : 85ddbdcf2ef7bc040b7c7774e54f25a64d5318a6
2017-03-15 11:58:50 +08:00
Andreas Pehrson 2feaa6b104 Bug 1334421 - Don't use templated class for refcount macros in MediaParent. r=jib
The assert in bug 1334421 mentions the MOZ_COUNT_{C|D}TOR macros, but the same
comment seems to apply to the NS_LogAddRef that's part of the
NS_INLINE_DECL_THREADSAFE_REFCOUNTING macro.

This fixes it for me.

MozReview-Commit-ID: CPjdO8YBbt0

--HG--
extra : rebase_source : 5833c4165517addd3f48f0d7dfe196cec494b013
2017-03-20 16:55:31 +01:00
John Lin cbc29c3730 Bug 1347480 - flush decoder after draining to make it accept more input. r=jya
MediaCodec doesn't take any input after EOS unless it is flushed.

MozReview-Commit-ID: LoHlN753e8J

--HG--
extra : rebase_source : 5a051cef2f4afb3357e2756d1f0f2f3ae741295c
2017-03-15 18:38:51 +08:00
Jean-Yves Avenard 10f304bd58 Bug 1347101: P2. Don't rely on MF_E_TRANSFORM_STREAM_CHANGE result. r=mattwoodrow
Under some circumstances, and seen on Windows 8, a decoded sample can be returned without the MFT returning MF_E_TRANSFORM_STREAM_CHANGE.

For historical reasons, we required that message to be returned at least once to set the output image size. This was required as the decoder used to be recycled with different video streams.

This is no longer the case, we can rely on the video info instead. It also greatly simplifies the code

MozReview-Commit-ID: H14KBiNWrjQ

--HG--
extra : rebase_source : d098f884127bc95e3ca4363bf3d0cdda6d3bd771
2017-03-17 01:21:23 +01:00
Jean-Yves Avenard 50a8a24876 Bug 1347101: P1. Re-enable mochitest. r=gerald
MozReview-Commit-ID: 4Zh3WOZiyrI

--HG--
extra : rebase_source : 3c889c37efbbe6658800533c2df500792478bcf9
2017-03-17 01:15:34 +01:00
JW Wang 713d7a054f Bug 1349145. P3 - use concrete types in MDSM and its friends. Also remove unnecessary casts. r=kaku
MozReview-Commit-ID: C2MZb01XtTC

--HG--
extra : rebase_source : e16735e9f865feb85170abf07996479e3bba026f
2017-03-22 11:59:54 +08:00
JW Wang 989380307c Bug 1349145. P2 - revert the changes in bug 1203047 for MediaBufferDecoder.cpp. r=jya
MozReview-Commit-ID: sxacIjDp2Y

--HG--
extra : rebase_source : 82c554d6a85aaeef71f76fd80620478feba71a71
2017-03-22 11:25:23 +08:00
JW Wang 4dde56f760 Bug 1349145. P1 - revert the changes in bug 1203047 for MediaDecoderReader and its friends. r=jya
MozReview-Commit-ID: IghzDRwvd9S

--HG--
extra : rebase_source : d686c3a13af56b508c14e81d59417b715ffdd940
2017-03-22 11:28:33 +08:00
JW Wang da0e25d248 Bug 1348634. P1 - add more debugging logs. r=kaku
MozReview-Commit-ID: FB7XKRLNeVw

--HG--
extra : rebase_source : 0cf4ae1ffacc3e774bf552f65b7ea607afc28b17
2017-03-21 14:39:48 +08:00
Chris Pearce 5d1431a1c2 Bug 1349008 - Include SystemGroup.h in GMPVideoEncoderParent to fix unified build bustage caused by bug 1346681. r=jwwang
MozReview-Commit-ID: DncNbBYbNn8

--HG--
extra : rebase_source : f726807ecb87fd814a1933f292ab52e00ba8166f
2017-03-21 11:35:10 +13:00
bechen 0d95383399 Bug 1343799 - lable runnables in texttracklist.cpp. r=jwwang
MozReview-Commit-ID: 39MmwAMaDdk

--HG--
extra : rebase_source : 9630f72f1e0e44df551fdab42f10c4d02f5357e6
2017-03-21 16:16:08 +08:00
James Cheng ba6513e929 Bug 1349129 - Fix CID 1403176 and CID 1403178 for memory leak. r=jwwang
MozReview-Commit-ID: ClAcLgztPZ4

--HG--
extra : rebase_source : 3f00022cf2ca8dfec78cc1e8cc8f48fcbb220feb
2017-03-21 16:25:29 +08:00
Jean-Yves Avenard ccf0582e09 Bug 1349345: Use 32 bits float with WMF decoder. r=cpearce
MozReview-Commit-ID: 2cF3D1zQFf4

--HG--
extra : rebase_source : 9c29059d46b5041fc14f442817f76b4beca28452
2017-03-21 22:17:01 +01:00
Chris Pearce c60d6c1294 Bug 1315850 - Add CDMProxy::AsChromiumCDMProxy(). r=gerald
This means the EME PDM implementation can safely tell when a CDMProxy is a
ChromiumCDMProxy, so we can create an appropriate MediaDataDecoder for it (in
the next patch).

MozReview-Commit-ID: CpL6QRa7SwJ

--HG--
extra : rebase_source : 3821c378c73067066f3cc67499680bdf546fb4f0
2016-12-15 11:32:03 +13:00
Chris Pearce dd99f726b7 Bug 1315850 - Ensure GMPParent checks whether the adapter version is present. r=gerald
This ensures that when we're using the ChromiumAdapter that we actually ask it
whether it'll work, rather than asking the adapter we're not using.

MozReview-Commit-ID: 85nZPl9MdWa

--HG--
extra : rebase_source : 90de89bec9b004859c3c2c09ed8efbd255acc141
2017-02-20 11:48:32 +13:00
Chris Pearce 4961ac416a Bug 1315850 - Send decrypt operations to Chromium CDM. r=gerald
We still use the same EMEDecryptor MediaDataDecoder as is used by the existing
EME decrypting path.

MozReview-Commit-ID: 3pXPjChctLb

--HG--
extra : rebase_source : 67575a02290ddb871510dd88f59fdab77658b3ce
2017-03-09 11:31:07 +13:00
Chris Pearce ed269500ea Bug 1315850 - Add more logging to Chromium CDM actors. r=gerald
MozReview-Commit-ID: 2DcprLAE1bg

--HG--
extra : rebase_source : b7de793c7676ace43d34a9556ef803e1bd3df239
2017-03-09 11:42:12 +13:00
Chris Pearce a8a6db3db7 Bug 1315850 - Connect MediaKeys.createSession to Chromium CDM. r=gerald
MozReview-Commit-ID: AzvypvetoOL

--HG--
extra : rebase_source : cf303b0d792dfd86f1056529eb4c081d84fc2e82
2016-11-30 14:51:18 +13:00
Chris Pearce 0c935efca9 Bug 1315850 - Handle sending and receiving key session messages. r=gerald
MozReview-Commit-ID: 6hLPFLFRD5I

--HG--
extra : rebase_source : 0931d65116bf0c499933efc58cae97b275b0ba85
2017-03-08 16:41:06 +13:00
Chris Pearce a987efe1ed Bug 1315850 - Implement ChromiumCDMProxy initialization. r=gerald
This means the MediaKeys is able to create a CDM.

MozReview-Commit-ID: 94Xc7sCLhH3

--HG--
extra : rebase_source : 914db1f04e0770776ae25c7b8bdc59e729fe78d0
2017-03-09 11:29:45 +13:00
Chris Pearce 1d0fde26c0 Bug 1315850 - Ensure we query for the correct string in HavePluginForKeySystem. r=gerald
Otherwise navigator.requestMediaKeySystemAccess() doesn't know whether we have
a CDM or not.

MozReview-Commit-ID: Hic6UneGA4u

--HG--
extra : rebase_source : 68ce766bede0f5c8e41de3a3f9e46b6ef88cab96
2017-02-22 13:06:58 +13:00
Chris Pearce a619213252 Bug 1315850 - Create ChromiumCDMProxy in MediaKeys.cpp when preffed on. r=gerald
MozReview-Commit-ID: G37QlP74esb

--HG--
extra : rebase_source : 76937006b9e424f2588e7d06f8f7b0c3a68b5af2
2017-02-22 14:42:55 +13:00
Chris Pearce 57b480eb64 Bug 1315850 - Stub out ChromiumCDMProxy. r=gerald
This will eventually replace GMPCDMProxy. Methods will be implemented in later
patches.

MozReview-Commit-ID: 86pwo81tFZv

--HG--
extra : rebase_source : df41a20a0fefaf26a63ed18f1ccdf7fa5a3a1e89
2017-02-22 14:42:32 +13:00
Chris Pearce dd0f308205 Bug 1315850 - Add GetGMPAbstractThread() to GMPUtils.h. r=gerald
MozReview-Commit-ID: G4sq6pa7jmS

--HG--
extra : rebase_source : 94dacb5107e7f098c7dde88e6d246edb9deb6a35
2017-02-23 14:04:25 +13:00
Chris Pearce cc97ebecaf Bug 1315850 - Implement trivial cdm::Host functions. r=gerald
MozReview-Commit-ID: 5OsopZbflf1

--HG--
extra : rebase_source : dd262cc875ece0d82b4af002341ee0566125a401
2017-03-13 13:26:13 +13:00
Chris Pearce a6d74267e5 Bug 1315850 - Add ChromiumAdapter which we can use instead of WidevineAdapter. r=gerald
We currently use an adapter object to adapt plugins that don't conform to the
GMP interface to the GMP interface.

We use the WidevineAdapter to talk to the CDM from the two GMP IPDL protocols.
We will be using a single protocol to talk to the Chromium CDM, so we need a
new adapter which handles that.

MozReview-Commit-ID: F7hnZ9oo9mJ

--HG--
rename : dom/media/gmp/widevine-adapter/WidevineAdapter.cpp => dom/media/gmp/ChromiumCDMAdapter.cpp
rename : dom/media/gmp/widevine-adapter/WidevineAdapter.h => dom/media/gmp/ChromiumCDMAdapter.h
extra : rebase_source : 7c08edea3c11d41eb3ecfa9c7a8ef65cf3b8ddb0
2017-03-13 16:59:34 +13:00
Chris Pearce 92a1e35192 Bug 1315850 - Add GMP_LOG macro. r=gerald
To make adding more logging easier.

MozReview-Commit-ID: IB7tAeiNX85

--HG--
extra : rebase_source : c76f1f5f88f53abc4929d21abf6fabf1e47e6056
2017-02-22 09:45:54 +13:00
Chris Pearce 3904ad1466 Bug 1315850 - Add GMPService::GetCDM. r=gerald
Infrastructure necessary to create an instance of the CDM process.

MozReview-Commit-ID: 7oQ86x6BNWj

--HG--
extra : rebase_source : c725a958c507b7f93ce9cfccc475f259ae9ccbc2
2017-02-22 09:26:47 +13:00
Chris Pearce ae66452fa5 Bug 1315850 - Add GMPService::GetContentChild() with unresolved NodeId. r=gerald
We currently do two sync IPCs to launch a GMP; one from content to main process
to get the nodeId and a second to get a GMPContentParent for that nodeId.

We use the nodeIds to ensure that the GMPVideoDecoder and GMPDecryptor actors
correspond to the same CDM instance/process. However once we switch to having
one protocol that encompasses both decryption and decoding, we don't need to
worry about making sure our decoder and decryptor actors match up, as we only
have one underlying connection to the CDM instance.

So we can merge the get nodeId and get GMPContentParent operations into a
single operation that does both. To do this, we just need to pass the
parameters used to calculate the nodeId in the LaunchGMP message.

Once we've switched EME over to using the CDM via a single actor, we can remove
the nodeId nsCString from our media code and from GMPVideoDecoder and
GMPVideoEncoder.


MozReview-Commit-ID: 7GXlJ37fOTZ

--HG--
extra : rebase_source : cf20a165048f777f34dab01fce984018ad641b85
2016-11-25 10:30:38 +13:00
Chris Pearce 1170a36613 Bug 1315850 - Add pref to toggle on new CDM decoder backend. r=gerald
MozReview-Commit-ID: HegDqYBJCse

--HG--
extra : rebase_source : 3df4dd5bb8a89e75478b059a030193daaead1ed5
2017-02-22 14:40:30 +13:00
Chris Pearce e140103fca Bug 1315850 - Add PChromiumCDM.ipdl for Widevine CDM. r=gerald
The implementations of this protocol will be stubbed out in later patches.

MozReview-Commit-ID: 622CB1BOoR9

--HG--
extra : rebase_source : b796bfb4c0d0d2872787043e3b9fc83a0e6b09ea
2017-02-23 11:51:00 +13:00
Carsten "Tomcat" Book 468f7d8e9f merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Matthew Gregan f95527065e Bug 1341238 - Don't hang on to pointer from temporary NS_LossyConvertUTF16toASCII. r=padenot 2017-03-16 18:26:33 +13:00
Damien Zammit ce4722833c Bug 1341238 - Introduce (hidden) pref to force a particular libcubeb backend. r=kinetik,ehsan
This adds 'media.cubeb.backend' to ContentPrefs, which is necessary because
`cubeb_init` is called _very_ early in the lifetime of a content process,
because it needs to be called before enabling seccomp.
2017-03-16 18:26:33 +13:00
Kaku Kuo 642536ba3b Bug 1345179 - use MakeUniqueFallible() in BlankVideoDataCreator; r=jwwang
If OOM happends, just return null and the DummyMediaDataDecoder will reject the DecodePromise with NS_ERROR_OUT_OF_MEMORY.

MozReview-Commit-ID: H6sTyoQWZk5

--HG--
extra : rebase_source : 5046a68978b817db8f1191e1f56e80ec5848899c
2017-03-16 12:09:23 +08:00
John Lin 66e158e1c6 Bug 1345599 - part 3: for recyclable decoder, don't drain/flush when stream ID/SPS change. r=jya
MozReview-Commit-ID: 4qtlbMWgfPo

--HG--
extra : rebase_source : f5b71b6803e2f725639e675081bc30cd0b1bde2a
2017-03-14 15:04:52 +08:00
David Major ed12ea611f Bug 1346078: Remove nsAString_internal and just use the nsAString name directly. r=bsmedberg
MozReview-Commit-ID: DWDEDMIVKm7

--HG--
extra : rebase_source : 7fe8dc07c816dca234c67761e61cdee372a87e97
2017-03-10 15:17:23 +13:00
Jean-Yves Avenard 55676c3d5a Bug 1342913: P2. Terminate draining operations when possible. r=gerald
An interesting intermittent condition not previously handled.
We were incorrectly assuming that we always had a decode promise pending when a drain was requested.
If a change of content occurred when resuming from a waiting for data condition: we would have stalled forever as the waiting promise would never have been resolved even after new data was appended.

MozReview-Commit-ID: BQSRSHYqTSe

--HG--
extra : rebase_source : e091969ce35728cd3ded40161eaaa117df2c6886
2017-03-07 20:13:39 +11:00
Jean-Yves Avenard 65f007b6ab Bug 1342913: P1. Add mochitest. r=gerald
MozReview-Commit-ID: IaU4tIm0Wze

--HG--
extra : rebase_source : 99c48155ec1c846496767ed2f823c60811e968f6
2017-03-08 00:28:13 +11:00
Jean-Yves Avenard ec5692956a Bug 1346463: Disable test on windows 8 for now. r=gerald
Issue tracked in bug 1347101

MozReview-Commit-ID: 8YaMr3p8aMk

--HG--
extra : rebase_source : 0ee14327fd0d2bcb1589e35e6cf4455d5d8e7793
2017-03-14 12:39:13 +01:00
JW Wang f7aad5be2a Bug 1344772 - set a dirty flag so we can process the notification later. r=jya
https://hg.mozilla.org/mozilla-central/file/34c6c2f302e7b48e3ad2cec575cbd34d423a9d32/dom/media/MediaFormatReader.cpp#l2835
NotifyDataArrived() is dispatched again if |mNotifyDataArrivedPromise.Exists()| which will then be dispatched again
recursively until mNotifyDataArrivedPromise is completed. This is a waste of CPU cycles.

We can use a dirty flag to note we should update buffer ranges again when the current update is done.

MozReview-Commit-ID: 6hInhGKnXJE

--HG--
extra : rebase_source : 71aa2c16112428c34def094515e37aa1f028a3fc
2017-03-15 15:20:45 +08:00
JW Wang 1f7faa8e4f Bug 1345376 - Label runnables in dom/media/mediasink/DecodedStream.cpp. r=kikuo,pehrsons
MozReview-Commit-ID: 9SrS2g2mY2p

--HG--
extra : rebase_source : 053ee96dfcc80cd1bd81237ec76cd256a52ebcfe
extra : intermediate-source : 31b7a73f0b45916dbcf3b66faec746ec04acca45
extra : source : 42b918b4f24737ef456c9ffe7df4b7d4bd4ecb0c
2017-03-09 13:46:25 +08:00
JW Wang 37496c6b4a Bug 1345761 - Remove the unused do_GetMainThread() call. r=gerald
MozReview-Commit-ID: CFWh4tCKbF5

--HG--
extra : rebase_source : ccf526edc0719c4a31a90d7b8ef135dba3d8114e
2017-03-09 15:15:42 +08:00
JW Wang 7ca0324d6d Bug 1346679 - Label runnables in dom/media/gmp/GMPCDMCallbackProxy.cpp. r=cpearce
MozReview-Commit-ID: 1h2SaxHf0F

--HG--
extra : rebase_source : f73e9954d593124ad50bbcd3c15fdf5c2e053320
extra : source : 41faede1bc233157bf29130df6eced2d925395dc
2017-03-10 16:07:04 +08:00
John Lin 81388b32c4 Bug 1345036 - label shutdown event dispatching. r=jwwang
MozReview-Commit-ID: HfiocBzddNS

--HG--
extra : rebase_source : 2649dd6aa17225f14a4972b549f4270ef5ea0b7f
2017-03-09 13:43:30 +08:00
JW Wang 017020976f Bug 1346678 - Label runnables in dom/media/gmp/GMPParent.cpp and its friends. r=cpearce
MozReview-Commit-ID: DWYx30T7gCJ

--HG--
extra : rebase_source : 68caf369926ea08cd7a56846c1de1cf75a6c54e6
extra : intermediate-source : b57189c8fa07cc066cf430358401c471b0927063
extra : source : b014f243626f5361a496edacb639a663abea2964
2017-03-09 15:31:11 +08:00
John Lin 6150d45675 Bug 1344649 - part 5: deprecate ConfigurationChanged() once again. r=jya
MozReview-Commit-ID: D9b8rljlNzP

--HG--
extra : rebase_source : 7cd586f506c4c01f21da0b7b44ec0e2798af5e0a
2017-03-14 12:58:27 +08:00
John Lin 50ebd38776 Bug 1344649 - part 4: store frame sizes in queue rather than relying on ConfigurationChanged(). r=jya
MozReview-Commit-ID: 49ICIBs4wzF

--HG--
extra : rebase_source : 81a145a30a2b96b53e4d3092d2baaa54109cf347
2017-03-07 20:03:41 +08:00
John Lin 2f58c785e9 Bug 1344649 - part 3: rename DurationMap and turn it into a generic class. r=jya
MozReview-Commit-ID: AMMxMPkuYXk

--HG--
extra : rebase_source : 438100efafb883c8cd67895657877da9fb6f54ce
2017-03-07 19:49:08 +08:00
John Lin a5d3bc8a18 Bug 1344649 - part 2: let VideoData::CreateFromImage() accept only neccessary parameters. r=jya
VideoData doesn't care what's in aInfo but display size and aPicture are unused.

MozReview-Commit-ID: IBqq8Rm8dM4

--HG--
extra : rebase_source : 10e2390f87925ef9179d28d86240f68a35c6c6d4
2017-03-09 12:06:24 +08:00
John Lin 9dd28c4c95 Bug 1344649 - part 1: use picture instead of display size to construct Image. r=jya
MozReview-Commit-ID: LkVq9iaj14k

--HG--
extra : rebase_source : e2468aeea1983dc96c42698d24de6f5cacb8deb9
2017-03-09 12:08:34 +08:00
Bas Schouten f500c10597 Bug 1345814: Don't use mutices when the decoding device is the compositor device anyway. r=mattwoodrow
MozReview-Commit-ID: GOwyVKFSkRa
2017-03-13 12:29:22 +00:00
Sebastian Hengst 3df7071cb8 Backed out changeset 69cd9c72bd4e (bug 1343550) for failing e.g. crashtest 812785.html. r=backout 2017-03-14 16:20:54 +01:00
Paul Adenot 5c985b0a84 Bug 1343550 - Prevent creating AudioNodes on an AudioContext that has been disconnected from its owner. r=baku
Spec (being written): https://github.com/WebAudio/web-audio-api/issues/1139

Bug 1343550 - Prevent touching promises when shutting down an AudioContext, when the global is going away soon. r=baku

MozReview-Commit-ID: F6en9KEbNNf

--HG--
extra : rebase_source : 212968cb3ed9afc1e6598946e54316e54762d0d0
2017-03-14 15:28:32 +01:00
Carsten "Tomcat" Book dba578960e merge mozilla-inbound to mozilla-central a=merge 2017-03-14 14:23:03 +01:00
Frederik Braun 9e93fd0d84 Bug 1346720 - Disallow invalid report IDs early on. r=gerald
MozReview-Commit-ID: GBDnzYh0gPt
2017-03-13 18:40:45 -04:00
Sebastian Hengst 004811fcc7 Backed out changeset 46090632bad3 (bug 1345814) for failing reftests on Windows 8 x64 with e10s enabled, e.g. webgl-capturestream-test.html?preserve. r=backout n a CLOSED TREE 2017-03-13 19:22:32 +01:00
Randell Jesup ed0d72a181 Bug 1346005: add audio samples-inserted logging using AudioLatency:4 r=padenot
MozReview-Commit-ID: JZukIfjapuy
2017-03-10 15:22:42 -05:00
Carsten "Tomcat" Book e078579f28 Merge mozilla-central to mozilla-inbound 2017-03-13 15:25:16 +01:00
Carsten "Tomcat" Book c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Iris Hsiao 6b7f00782d Backed out changeset 2b23902cadd8 (bug 1346005) for bustage in MediaPipeline.cpp 2017-03-13 14:14:16 +08:00
Randell Jesup 269eb591be Bug 1346005: add audio samples-inserted logging using AudioLatency:4 r=padenot
MozReview-Commit-ID: JZukIfjapuy
2017-03-10 15:22:42 -05:00
JW Wang b28f0b3829 Bug 1343459. Part 2 - remove the 'updateend' handler which might fire before we register it. r=jya
Note the race is uncovered by P1 which kinda change the order of events.

MozReview-Commit-ID: 3INYvJVUhSG

--HG--
extra : rebase_source : e378c2a437a5a729008d39570be2a9087a7eb5f7
extra : intermediate-source : 02e2ecfea068dd9f487791287064e684a15dd599
extra : source : f2f40c70a2304e3e499422f3a7c46b59b54ad1ae
2017-03-01 17:46:42 +08:00
JW Wang 4f89ce372f Bug 1343459. Part 1 - Label runnables under dom/media/mediasource. r=jya
MozReview-Commit-ID: 5lJUZXWFH8u

--HG--
extra : rebase_source : 0a4215862264dcf3103d52141650dd9516290a58
extra : intermediate-source : 934ff70dc058eb7e18bf70f69aeac38b0595bbe9
extra : source : 6804fe809dcc2a365b8922cf72da129e764830c2
2017-03-01 15:08:50 +08:00
Alfredo.Yang 48c54615b1 Bug 1343461 - add a wrapper class to encapsulate rust/stagefright sample table. r=gerald
MozReview-Commit-ID: 4UgToySaEmb

--HG--
extra : rebase_source : b91481f844d94bd3a9f7e6bfeaa08391f117e967
2017-03-01 10:53:49 +08:00
Munro Mengjue Chiang 3157303745 Bug 1345038 - Label runnables in dom/media/imagecapture/CaptureTask.cpp; r=alfredo
MozReview-Commit-ID: IHYZsfr6zTm

--HG--
extra : rebase_source : ff624cb79162336eae3e60d041501f868071dd18
2017-03-13 18:04:27 +08:00
Kaku Kuo 3ca20588a1 Bug 1309494 part 0 - make the seek operation at StateObject::HandleResumeVideoDecoding() observable; r=jwwang
So that the we can listen to the 'canplay' event in the videocontrols.xml.

MozReview-Commit-ID: 5T7akeC7EJq

--HG--
extra : rebase_source : c9f932e021fc7939dc8558813a1a974753a968ec
2017-03-13 18:01:42 +08:00
Bas Schouten c4b9f352af Bug 1345814: Don't use mutices when the decoding device is the compositor device anyway. r=mattwoodrow
MozReview-Commit-ID: GOwyVKFSkRa
2017-03-13 12:29:22 +00:00
Bas Schouten f581bd6faa Bug 1346258: Fix disabling of sync texture usage. r=mattwoodrow
MozReview-Commit-ID: 4hIyoM7o6OQ
2017-03-13 12:29:22 +00:00
Iris Hsiao 7f4987cc26 Backed out 6 changesets (bug 1346120) for autophone Mdm tests failure in test_background_video_drawimage_with_suspended_video.html
Backed out changeset a30c73fc8d69 (bug 1346120)
Backed out changeset f16556658fd9 (bug 1346120)
Backed out changeset 98d212462786 (bug 1346120)
Backed out changeset ba579adbed21 (bug 1346120)
Backed out changeset c0758b9bf7b5 (bug 1346120)
Backed out changeset 94a483ef784e (bug 1346120)
2017-03-13 16:53:14 +08:00
Nico Grunbaum 65a1818359 Bug 1346913 - rewrite waitForRtpFlow using async await;r=jib
MozReview-Commit-ID: AJq3x73ahwp

--HG--
extra : rebase_source : dbf3645e9fe8b3dae83b4ea31af3bcca18d1dbc4
2017-03-13 12:54:04 -07:00
Kaku Kuo d297b25659 Bug 1346116 part 3 - a test case for not suspend not-in-tree videos; r=jwwang
MozReview-Commit-ID: JooStwaUGcx

--HG--
extra : rebase_source : b3fd43e3f76f047d6af3a1c9ff43386bb2603e78
extra : source : f2eb126ed9eb32b509544469d3a4cdfde1449203
2017-03-12 14:03:04 +08:00
Kaku Kuo a1edb1f6ed Bug 1346116 part 2 - consider a video is in-tree or not in the suspend-video-decoding policy; r=jwwang
We never suspend videos that is NOT in-tree because we found that, according to the Telemetry data, most (>70%) videos
which are used as the argument of drawImage() are not in-tree. So, by preventing suspending not-in-tree videos, we should
be able to alleviate the pain of not able to resume video decoders synchronously.

MozReview-Commit-ID: 8eqs0pHZLIt

--HG--
extra : rebase_source : 964c0047753696cad2e40bcf74c2b8ee9faccdea
extra : source : 93c38caa15b1a29f8f1e8e6d3a5e859f97bc1aae
2017-03-12 14:02:04 +08:00
Kaku Kuo f758e455ea Bug 1346116 part 1 - initialize MediaDecoder::mIsDocumentVisible and MediaDecoder::mIsElementVisible at HTMLMediaElement::FinishDecoderSetup(); r=jwwang
Initialize the MediaDecoder::mIsElementVisible to be "!aOwner->IsHidden()" at the MediaDecoder's constructor is wrong.
Insted, we initialize both MediaDecoder::mIsDocumentVisible and MediaDecoder::mIsElementVisible to be false at the construtor,
and then assign the HTMLMediaElement's real values to them at HTMLMediaElement::FinishDecoderSetup() via the the MediaDecoder::SetActiviyChangesToDecoder().

The initialization values of MediaDecoder::mIsDocumentVisible and MediaDecoder::mIsElementVisible (in the constructor) do not matter because the valuse are
not read untile the first MediaDecoder::SetActiviyChangesToDecoder() method call.

MozReview-Commit-ID: Cdovq5pG9Nv

--HG--
extra : rebase_source : 91f3b4c2515124b4c195dd246bd9b404178a35de
extra : source : 81b5e89a5bd20f37b8c3daa1230db30808026ff4
2017-03-12 13:56:43 +08:00
Kaku Kuo 7e43b9cace Bug 1346498 part 9 - move all policy codes into MediaDecoder::UpdateVideoDecodeMode(); r=jwwang
Make HTMLMediaElement no longer has logic of deciding visibility, it just passes all information into MediaDecoder.

MozReview-Commit-ID: ApVcEQfboO

--HG--
extra : rebase_source : 88c70b0cf1933d9cf814359909463a811be2ab9f
extra : source : 669d1340d3c93d3e0eab55ce87693f842cf40247
2017-03-11 19:56:17 +08:00
Kaku Kuo 062129aebf Bug 1346498 part 6 - remove mHasSuspendTaint cannonical-mirror pair; r=jwwang
MozReview-Commit-ID: BqAfv9CSsv3

--HG--
extra : rebase_source : 61d8ab0494986b780b79ea9350c9d0b52f70a382
extra : source : 6d92d52bdc7688c76fc5f55853a9fa07b3875b44
2017-03-11 15:12:38 +08:00
Kaku Kuo abe34098cd Bug 1346498 part 5 - don't check mHasSuspendTaint in HandleVideoSuspendTimeout(); r=jwwang
If mHasSuspendTaint is set, the mVideoDecodeSuspendTimer should already be canceled
so that HandleVideoSuspendTimeout() won't be invoked.

MozReview-Commit-ID: BGwSucZtH4d

--HG--
extra : rebase_source : a7038309846365cb3905aa193b25d103812a9200
extra : source : 28ca96e1622d7f3af427c90f7b4a2bbc58b81ce8
2017-03-11 15:09:15 +08:00
Kaku Kuo 68c95368f5 Bug 1346498 part 4 - remove mIsVisible cannonical-mirror pair; r=jwwang
The role of MDSM::mIsVisible and MDSM::VisibilityChanged() have been replaced by
the MDSM::mVideoDecodeMode and MDSM::VideoDecodeModeChanged() completely.

MozReview-Commit-ID: 8sW0s8ilF1E

--HG--
extra : rebase_source : 20f4b0c2e5a34018b3189b4d10dd55e68881c0e7
extra : source : 2eba9a76da70749583125176e8b7c6c959b74d38
2017-03-11 14:06:09 +08:00
Kaku Kuo c2f38bd02d Bug 1346498 part 3 - implement the UpdateVideoDecodeMode() policy in MediaDecoder; r=jwwang
So, the MediaDecoder is the one who rules out the policy of suspending video decoder.
We also extract all the policy rules into one single method, MediaDecoder::UpdateVideoDecodeMode().

MozReview-Commit-ID: IOQq6kFfkIs

--HG--
extra : rebase_source : 3d92c63aed2545391c45cdd7c1236d5df0b8d2f8
extra : source : 9c6c5f22d25171a206e828faa2c7c91d47f748f1
2017-03-10 16:52:03 +08:00
Kaku Kuo e9c23fc1ad Bug 1346498 part 2 - implement the VideoDecodeMode mechanism in MDSM; r=jwwang
The MDSM::mVideoDecodeMode and MDSM::SetVideoDecodeMode() are merely a renaming of MDSM::mIsVisible and MDSM::VisibilityChanged().
However, the renaming explicitly reflects that MDSM provides mechanism only without participating in the policy decision.
Will reremove the MDSM::mIsVisible and MDSM::VisibilityChanged() in following patches.

MozReview-Commit-ID: JdMKQTgVCf3

--HG--
extra : rebase_source : 95977b205f235b6a456d12dfde93fe84f3b12aa7
extra : source : 4382a3c10f30653d5a70abb3bd4b8146a4272784
2017-03-10 16:17:46 +08:00
Kaku Kuo 64305205ed Bug 1346498 part 1 - extract the MediaDecoder::NotifyCompositor() method; r=jwwang
MozReview-Commit-ID: Hfw3FJUSVVe

--HG--
extra : rebase_source : 738cb2e341ab03d0dc189facc950314c29a3721b
extra : source : 63f67483e45c8a73eda772f264d2424a1049320f
2017-03-10 16:29:59 +08:00
JW Wang 40cebfcf14 Bug 1346681 - Label runnables in dom/media/gmp/GMPVideoEncoderParent.cpp. r=jesup
MozReview-Commit-ID: GZqomJdBKxB

--HG--
extra : rebase_source : 352873047782018373349e42621847dcbfb71b79
extra : source : 29322d55a49e3555a1ab02f34cbb68cd3afb279e
2017-03-10 16:44:41 +08:00
Kaku Kuo 6fd31124b4 Bug 1346120 part 6 - Test drawImage gets a non-single-color image from suspended video; r=jwwang
Once part 4 is applied, a suspend video element won't be rendered anymore, so that the video element keeps the last decoded-frame.
By this way, drawing a suspended video element to a canvas should get something that is not single-color.

MozReview-Commit-ID: J6dsZIvtO

--HG--
extra : rebase_source : 247db68d5fb0f6b24b07c197411e5d423ff02705
extra : intermediate-source : 145a223ab9777edc2bc9f2868eef2cbcd8725171
extra : source : 7e55644b5ba79c7a13211c23cedc5dc77a1e55ff
2017-03-09 17:37:32 +08:00
Kaku Kuo 09feb98f41 Bug 1346120 part 5 - Revert the blank decoder to create green frames; r=jwwang
The blank decoder used to create green frames.
Bug 1274626 patch 2 modifies its behavior to return black frames.
The original implementation is better in memory usage, so we revert it.

MozReview-Commit-ID: Lue63Rsoy3G

--HG--
extra : rebase_source : ba6a1bb74a2b5d61b245c114e4dd5cf32dc29b89
extra : intermediate-source : fcb4f38cf4d4ee2709a3d0d4e2945eef9dc6cab0
extra : source : e920b71a11ebf410f4a1c99708911be98f68586c
2017-03-09 17:26:42 +08:00
Kaku Kuo 7ac3ba1c91 Bug 1346120 part 4 - Only set ImageContainer if there are valid new images in VideoSink::RenderVideoFrames(); r=jwwang
So that the suspended video element won't be rendered any more and keeps the last decoded frame.
This is the effect that UX specification defines.
And actually, we don't need to set ImageContainer if there are no valid new images.

MozReview-Commit-ID: B7RS3LXu8J0

--HG--
extra : rebase_source : 114d68046cbbb478fda63d16da7fbb4fa2fc3dd3
extra : intermediate-source : 29e6d114dfb0c64d0b6a77d924066be9f69bb287
extra : source : d6a2b47b14f6ac00ea420f5eba7190c7af725381
2017-03-09 17:16:17 +08:00
Kaku Kuo 7c985e041c Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R

--HG--
extra : rebase_source : c7aa851ebdbda6abbf7acb09849b237023d653fe
extra : intermediate-source : 91c5986bef4c236e29deeeca6b14f33405da56a3
extra : source : 2d3146d70fb65da3379dd6a5f126c4caff65e139
2017-03-09 17:12:02 +08:00
Kaku Kuo e797828ad9 Bug 1346120 part 2 - Implement NullDecoderModule; r=jwwang
The video decoder of NullDecoderModule returns a VideoData with dimension of zero size and no image data.
By this way, we reduce memory usage while a video element is suspended.

MozReview-Commit-ID: IMODFOGdpaj

--HG--
extra : rebase_source : e12dc91158939052b23d4ab9707485bb3565dc41
extra : intermediate-source : f8390b1c52e9ee859c33b7a9d2e34781534eb3ff
extra : source : 8a002d74db6c445dff17aa24d2e92f9c27019b07
2017-03-09 16:07:22 +08:00
Kaku Kuo be902c66f8 Bug 1346120 part 1 - Extract BlankMediaDataDecoder so it can be shared; r=jwwang
Change name to 'Dummy' to signify it's base for decoders that don't decode.
And we will implement a new NullDecoderModule in the next patch which will utilize the DummyMediaDataDecoder.
MozReview-Commit-ID: LPsczoztgx3

--HG--
extra : rebase_source : 413345139ba060065217cfd7718665091f8f6166
extra : intermediate-source : 12d022e15b7a3a91867293fd2e71510fa084ff02
extra : source : dec60f61cc8809ebe6dd65cb16a325f2272b3ce2
2017-03-09 15:33:53 +08:00
Wes Kocher 8010f266fb Merge m-c to autoland, a=merge
MozReview-Commit-ID: Hikpu6ARByb
2017-03-13 16:40:18 -07:00
Kaku Kuo 7dff9a64fb Bug 1345403 part 5 - Test video suspend canceling; r=jwwang
MozReview-Commit-ID: 99IDqpwuRIf

--HG--
extra : rebase_source : 468cb4563d6ed1b5fdb976ecfb68cf9b14b90389
extra : intermediate-source : 67db97814e8acbc68e4dc708d175a3c1013c9257
extra : source : 5f834fb13ceea6b13136c1fbd60d266eee95f3ad
2017-03-08 21:18:13 +08:00
Kaku Kuo b49796fcdf Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR

--HG--
extra : rebase_source : 120a9c7811b6265190a645bd581483119242b676
extra : intermediate-source : 8d4e376e626bb9ffe71621db27053094650ee988
extra : source : bbd1f9644d39d9c935015b8dfad24e790c5a3c7a
2017-03-08 21:28:01 +08:00
Kaku Kuo 2f5609af1a Bug 1345403 part 3 - Test element becomes tainted by DrawImage; r=jwwang,smaug
MozReview-Commit-ID: 9Txz4FbFtPe

--HG--
extra : rebase_source : eab599fdcbafa2fef60cc9951863727d8cc9c265
extra : intermediate-source : edc821a13b41fdfdae851e5fe2a8784795f248d9
extra : source : f540afdef527d1beb10a29c235f2e3b5637fc814
2017-03-08 20:22:05 +08:00
Kaku Kuo 3c60cdbdf5 Bug 1345403 part 1 - Track decoder tainting; r=jwwang
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.

MozReview-Commit-ID: Ik6aDIzrZaO

--HG--
extra : rebase_source : 31fdddabdc62cb8c59db19c1f466f674ef503ee8
extra : intermediate-source : 906cb039bea3e5ac6c1ec852209db28be60ba201
extra : source : 1ac0f1b9264706f65e04528757bd60028331d31f
2017-03-08 19:28:13 +08:00
Wes Kocher 77632ccd1b Merge m-c to inbound, a=merge
MozReview-Commit-ID: JXQqoTEXxwz
2017-03-10 17:22:54 -08:00
Jean-Yves Avenard 04af6071b4 Bug 1345363: Don't truncate debugging information. r=jwwang
NS_DebugBreak truncate all output to 500 characters.

MozReview-Commit-ID: 1gEyJNge7gk

--HG--
extra : rebase_source : 0996ef25dd14cc8f5fe03672d85d37cfcc3ab14a
2017-03-10 11:21:41 +01:00
Sebastian Hengst 6117caed69 Backed out changeset 31656946aa03 (bug 1346005) for bustage in MediaPipeline.cpp. r=backout on a CLOSED TREE 2017-03-10 21:50:22 +01:00
Randell Jesup 220412f9f7 Bug 1346005: add audio samples-inserted logging using AudioLatency:4 r=padenot
MozReview-Commit-ID: KuL1nNEmOnl
2017-03-10 15:22:42 -05:00
Paul Adenot 6a5cf2e776 Bug 1345517 - Remove unrelated debug printfs.
MozReview-Commit-ID: JvGrIBDk78b
2017-03-10 17:05:06 +01:00
JW Wang 69e03d2bce Bug 1345713 - the seek promise might be rejected because the 'ended' event handler shut down the decoder. r=kaku
MozReview-Commit-ID: JuIXXDOATmu

--HG--
extra : rebase_source : 946d443da920a7a14b23491c956099630f94ad2f
extra : source : 2494048cfbd4f8bb501f025bc119825ffdef20a2
2017-03-09 11:20:05 +08:00