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

12221 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Nicholas Nethercote e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Jan-Ivar Bruaroey 630e3ccfc3 Bug 1399922 - Use a static mutex for getting deviceId keys in MediaParent. r=jesup
MozReview-Commit-ID: E6pzyAM4jOQ

--HG--
extra : rebase_source : f6a893508e4f5d1b426a62b6c549aba1e1f2041d
2017-09-21 10:45:56 -04:00
JW Wang 4ead787594 Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 5b012b8ace153124a1f2f158efeaad9057927dd4
extra : intermediate-source : d5219d074f525e614164e7c3076a9df695c55e6c
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 184fd3f455 Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : ee6e4119850c854c5a25bef841ffc555daa54fd1
extra : intermediate-source : 30a8f473342993067788911da6f0b999e3a5f9ce
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang bfbcdad5a4 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 0050aea48b07b406a84d8b33ebcd9bbf33c6c94e
extra : intermediate-source : 7efbc9605b94bfc93b660e673690625dd7ee74a2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 8de2a1f57f Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : 3061d04f6e44d8a818ec08d59b0365b3baac5da1
extra : intermediate-source : 907b58682e04f5ee18256d5b85eae0662b83f727
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
JW Wang ca87557a06 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : 0d6bf80071ad0c326767db57fd9d707cec30ab89
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang 25f00c44db Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 2f6a8642930ec314621aab2ce6424e4f9f95e0c2
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Alastor Wu e22a7e735d Bug 1402206 - print error name for MediaFormatReader::OnSeekFailed(). r=jya
Print error code couldn't effectively help people understand the reason of error, we should print its name.

MozReview-Commit-ID: KaBTi8zpq91

--HG--
extra : rebase_source : 64eebd9af18fcb5062ff347464045bb9327fb716
2017-09-22 16:23:08 +08:00
Jean-Yves Avenard 2cd8f30633 Bug 1401922 - P2. Only set error when non handled. r=alwu
MozReview-Commit-ID: CF2Iw0i0nD8

--HG--
extra : rebase_source : d95ae83f8e426593200cd15b3ea7d6fd19da3ec8
2017-09-21 13:29:54 +02:00
Jean-Yves Avenard ac7ed4578a Bug 1401922 - P1. Ensure an error is returned when no decoder could be created. r=alwu
PDMFactory::CreateDecoder may not always modify CreateDecoderParams::mError as not all PDM handle this optional return value.

MozReview-Commit-ID: K8WFA0o778U

--HG--
extra : rebase_source : 55c35ab0cb5282d8dfbd1bbc1a2e6e22d97d3209
2017-09-21 13:25:05 +02:00
Phil Ringnalda 1112382b61 Backed out 2 changesets (bug 1401461) for being the wrong patches
Backed out changeset 20a0000f97bc (bug 1401461)
Backed out changeset e3c36a62b5b1 (bug 1401461)

MozReview-Commit-ID: BJeIuoGJwjb
2017-09-21 20:29:39 -07:00
Phil Ringnalda 4627ae77ed Backed out 4 changesets (bug 1401471) because it depends on 1401461 which is being backed out
Backed out changeset 6a2c85349226 (bug 1401471)
Backed out changeset 554875cb6a2e (bug 1401471)
Backed out changeset f871c6aa4d90 (bug 1401471)
Backed out changeset ff9dbb6a6692 (bug 1401471)

MozReview-Commit-ID: 80kxfUqbik4
2017-09-21 20:29:08 -07:00
JW Wang eace06432d Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 8984d39f5b0b29fe3233c96e5431e8641dd918fd
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 105690ac8c Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : f77d564715998591fd91aa824906cdd90b7abdbe
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang 0a4181eb82 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 1553881dc5cf0e17f5175f0c02388666f43bdaa2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 3ed737a3b8 Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : f76432a674e4535cd09a928b7151b9d530528909
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
JW Wang 6ab26b050e Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : 0d6bf80071ad0c326767db57fd9d707cec30ab89
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang f69d8e8e34 Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 2f6a8642930ec314621aab2ce6424e4f9f95e0c2
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Kaku Kuo 88d6505246 Bug 1401902 - we should use MediaDataDecoder's address as an ID instead of MFR::DecoderData's address;r=gerald
We misused MFR::DecoderData's address as an identity in bug 1393399 but our intention was MediaDataDecoder's address.

We report telemetry data when we get the 1st decoded frame from a new MediaDataDecoder, which is identified by its address.

If we misuse the MFR::DecoderData's address as identity, it will take longer than we expect since only when
the MFR is recreated will we get a new MFR::DecoderData.

MozReview-Commit-ID: HOf5hTSoBed

--HG--
extra : rebase_source : 76731bd11eac9243a23a972f85c72203c3a3e7f1
2017-09-21 18:02:30 +08:00
Sebastian Hengst 17eaa88fb4 Backed out changeset 0ceb7e5789f4 (bug 1401461) for leaking in mochitest run on Windows 7 debug. r=backout 2017-09-21 11:16:40 +02:00
Sebastian Hengst a5de561618 Backed out changeset ddfa978c27f7 (bug 1401461) 2017-09-21 11:15:57 +02:00
Andreas Pehrson 78a302848f Bug 1296531 - Let waitForPixel and friends take a cancelPromise. r=jib
MozReview-Commit-ID: 42hT181wkvq

--HG--
extra : rebase_source : 430d7ea6156bddf98893c4b8b3d0db70c3c54831
2017-05-29 16:27:45 +02:00
Andreas Pehrson b99abdab75 Bug 1296531 - Let waitForAnalysisSuccess take a cancelPromise. r=jib
MozReview-Commit-ID: 3UHUXbg2laL

--HG--
extra : rebase_source : 65fec6f5fd95691f774d6b47a9bfa1acbdf48b06
2017-05-29 15:52:51 +02:00
Andreas Pehrson 540090020d Bug 1296531 - Make logic that passes buffered data to direct listener generic. r=jesup
MozReview-Commit-ID: GdGFJHTNBS

--HG--
extra : rebase_source : 031f02b25072a2c2e47e28c9f584c7d31a758c60
2017-05-24 18:54:40 +02:00
Sebastian Hengst fd1c572923 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-05 11:47:25 +02:00
Andrea Marchesini 970f42c82a Bug 1403706 - Remove race conditions in temporary blob - part 2 - MediaRecorder should use MutableBlobStorage, r=pehrsons, r=smaug 2017-10-05 07:41:41 +02:00
Andreas Pehrson 96e4767e6c Bug 1395853 - Add a mochitest for video codec content flow across peerconnection. r=jib
MozReview-Commit-ID: 2mZ9LkRWden

--HG--
extra : rebase_source : 3609da40f14fa434f3c2545458937782ed393591
2017-09-13 09:53:39 +02:00
Andreas Pehrson 845b05ec85 Bug 1395853 - Allow pt97 to be accepted as H264 in sdputils. r=drno
MozReview-Commit-ID: Cck57WEmjxz

--HG--
extra : rebase_source : 3fe03ed6c6b49ec8264aacaaa4c07916363ee522
2017-09-13 11:42:45 +02:00
Andreas Pehrson 1a839a7c53 Bug 1395853 - Add a mochitest for audio codec content flow across a PeerConnection. r=jib
MozReview-Commit-ID: 8cb7fgR5nO7

--HG--
extra : rebase_source : c1f33def1fe7e201bdc7eb66a49d7ddcb44fca70
2017-09-06 18:34:33 +02:00
Andreas Pehrson 2841ae1914 Bug 1395853 - Add convenience methods regarding codec ids to sdpUtils. r=drno
MozReview-Commit-ID: J4bZhZ6gm7O

--HG--
extra : rebase_source : cf2e730be85544bb0eac65b7c9e2ce0cf2da626f
2017-09-13 11:38:14 +02:00
Andreas Pehrson b8f0ecca46 Bug 1395853 - Refactor checkReceivingToneFrom to take a cancel promise. r=jib
MozReview-Commit-ID: 456FVAlZkXJ

--HG--
extra : rebase_source : c537d0492f4645cfe76c75466c078bf14fc63c73
2017-09-06 18:33:03 +02:00
Randell Jesup 87905650ba bug 1399137: make the fake openh264 encoder support mode 0 h264 r=pehrsons
MozReview-Commit-ID: LpUQMKkQq16

--HG--
extra : rebase_source : 30c9322a8223adbf70982e4f7d76cf3353e544df
2017-09-13 12:04:20 +02:00
Andreas Pehrson f6213c0568 Bug 1296531 - Don't notify of ended tracks when adding a direct listener. r=jesup
There were some cases where these tracks were detected as ended when they were
in fact not. That result in problems in the MediaRecorder.

MozReview-Commit-ID: 4CNUYRvzOgK

--HG--
extra : rebase_source : b94c29bc73e76575489a4684facc0b01bb7aeb22
extra : source : bedb7abcc84263c6a6369c4d05e8bf3287281090
2017-05-23 16:00:42 +02:00
Andreas Pehrson 447dfdfffa Bug 1296531 - Make sure test_pc_capturedVideo.html doesn't run out of source before connecting. r=jesup
MozReview-Commit-ID: EioemlMzYB7

--HG--
extra : rebase_source : 4d352c378a7080df4274126ace1a2f4c5a5d1dc3
2017-05-15 14:11:46 +02:00
Andrew McCreight a56b23fc5f Bug 1408459, part 1 - Work around compiler problem on Android 4.2 x86 opt. r=erahm,kamidphish
Removing an ununused declaration in nsTraceRefcnt.h causes a compiler
error on Android 4.2 x86 op when CubebUtils.cpp is compiled unified,
for some reason. Work around this by compiling it by itself.

MozReview-Commit-ID: F73D47TU32B

--HG--
extra : rebase_source : 23b76e55e27ab7501f1303a015f67e8be4603283
2017-10-15 09:19:31 -07:00
Jean-Yves Avenard 557904d18a Bug 1409141 - Disable D3D11 YUV buffer copy on Windows 7. r=mattwoodrow
The crashes on Windows 7 appear to occur due to the D3D11 device being used on two different threads simultaneously. We do query the driver to determine if multithreaded access is supported, but they obviously aren't that cluey about it.

MozReview-Commit-ID: GZIk1Zf9xKQ

--HG--
extra : rebase_source : d5dacbb8244021397bbaee81fb51569b06c88736
2017-10-16 22:03:18 +02:00
James Cheng 38c77e80cb Bug 1406080 - Part2 - Reject creating with unsupported cdm version in clearkey cdm and cdm-fake. r=cpearce
MozReview-Commit-ID: JvSsqZekRQ6

--HG--
extra : rebase_source : e80713dbf52aad29a32ff71a083c19479094b9a6
2017-10-07 00:06:06 +08:00
James Cheng a18e6f1765 Bug 1406080 - Part1 - Make ChromiumCDMAdapter and ChromiumCDMChild compatible with CDM version 8 and 9. r=cpearce
MozReview-Commit-ID: HXT2hcCX2jT

--HG--
extra : rebase_source : 7300b1d571defaab18638e4a7e60075c19821f1c
2017-10-11 23:39:47 +08:00
JW Wang d2e7186d25 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : d6e77d812975fee2451d02faa81d76c03bbdad00
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang 3ce1e10aba Bug 1401461. P1 - remove ChannelMediaResource::Listener::Revoke(). r=gerald
See comment 0 for the rationale. We check |aRequest != mResource->mChannel|
to know if a new channel is being loaded and the call should be aborted.

MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 3114979192346e257f5d8040b8e0ffffa419d3f5
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Sebastian Hengst 0dc17cba82 merge mozilla-central to autoland. r=merge a=merge 2017-09-20 11:49:13 +02:00
Sebastian Hengst bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
JW Wang 1c84dd5856 Bug 1400155 - early return from NotifyDataReceived() when the stream is already closed. r=gerald
See comment 3 for the detail. We can't assert !mClosed since NotifyDataReceived()
could be called after the stream is closed.

MozReview-Commit-ID: 4pTfjABdl9B

--HG--
extra : rebase_source : d7d8b38268f3f54242dd728fe5fd0ada17d6ee48
extra : source : 713510f4087b38f0d447529dbf601f19b3a89eae
2017-09-19 15:32:54 +08:00
JW Wang 472ab4804d Bug 1399760. P3 - keep ID of the loading channel so we check whether the data callback is from an old channel. r=gerald
The load ID works as follows:
1. A load ID is passed to MediaCacheStream::NotifyDataStarted()
   when loading a new channel.
2. Each MediaCacheStream::NotifyDataReceived() call is also associated
   with a load ID from which the data is received.
3. If |mLoadID != aLoadID| tests to be true in NotifyDataReceived(), it means
   the data is from an old channel and should be discarded.
4. MediaCache::Update() reset mLoadID for the stream before calling
   CacheClientSeek() to prevent data from the old channel from being
   stored to the wrong position.

MozReview-Commit-ID: 9kBoublLlln

--HG--
extra : rebase_source : 58e6d3fe40ec7a549cabc70b30db8006b49c0563
2017-09-20 11:41:08 +08:00
JW Wang ba7be530dd Bug 1399760. P2 - ensure mCacheStream.NotifyDataStarted() is always called in OnStartRequest(). r=gerald
This keeps us in a good shape that NotifyDataStarted() is always called
before subsequent NotifyDataReceived() calls. This is also required by P3
where we need to set the loadID before NotifyDataReceived().

MozReview-Commit-ID: 9TPodkMM4EH

--HG--
extra : rebase_source : 0079e3ae6b791c64c76ca3bc3faac46039fc48fc
2017-09-20 11:30:03 +08:00
JW Wang dd57b36053 Bug 1399760. P1 - remove the CopySegmentToCache() member function. r=gerald
MozReview-Commit-ID: 3D9RiK3PJUf

--HG--
extra : rebase_source : acf4962bb9fd4f784bbe5d13cc3428e7d60322d3
2017-09-20 11:12:48 +08:00
James Cheng 59439b26b7 Bug 1401114 - Replace 'if (NS_FAILED(' with 'if (NS_WARN_IF(NS_FAILED(' under dom/media/gmp. r=gerald
MozReview-Commit-ID: 8ThoMrmlHNx

--HG--
extra : rebase_source : ae5095a7f756576cd9f7951651f060c67bc5e2a3
2017-09-19 16:14:49 +08:00
Jonathan Watt 341ea5e4f1 Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00
Jonathan Watt 0e4feb75d3 Bug 1401356, part 1 - Rename nsSVGEffects.h/.cpp to SVGObserverUtils.h/.cpp. r=longsonr
--HG--
rename : layout/svg/nsSVGEffects.cpp => layout/svg/SVGObserverUtils.cpp
rename : layout/svg/nsSVGEffects.h => layout/svg/SVGObserverUtils.h
2017-08-30 14:14:46 +01:00
Andrew Halberstadt 7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
JW Wang 02c39abdd3 Bug 1401460 - update principals in OnStartRequest(). r=gerald
See comment 0 for the rationale.
The principal will not change after OnStartRequest().

MozReview-Commit-ID: K2HyWBBzGmC

--HG--
extra : rebase_source : 1d913390b1b94923d859bdb5f6e8d34d3f0ed60d
2017-09-20 14:23:59 +08:00
JW Wang 81acc3c247 Bug 1400166. P2 - Flush() should dispatch a task to clear arrays. r=gerald
If mBlockChanges is cleared when PerformBlockIOs() is dropping the data lock,
blockIndex will become an invalid index after it acquire the data lock again.

MozReview-Commit-ID: 5Cu2TgEO3F5

--HG--
extra : rebase_source : 1b3dce490acee6d034c3b85741deda79d209d21a
2017-09-18 11:07:52 +08:00
JW Wang 20c0330a15 Bug 1400166. P1 - move re-initialization code to Flush() for it is confusing to call Init() twice. r=gerald
MozReview-Commit-ID: 6KolHyGkqXo

--HG--
extra : rebase_source : 98ee1e8a4bebde33149e2dd6d8d0469be7ca11e9
2017-09-18 10:52:17 +08:00
Wes Kocher 519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Joel Maher b2d10f4be8 Bug 1389983 - Disable dom/media/tests/mochitest/test_getUserMedia_addtrack_removetrack_events.html on linux debug for frequent failures. r=me, a=test-only 2017-09-18 12:00:25 -04:00
Joel Maher 3effc6f2a5 Bug 1282262 - Disable dom/media/tests/mochitest/test_getUserMedia_mediaStreamClone.html for frequent failures. r=me, a=test-only 2017-09-18 12:00:24 -04:00
Andrea Marchesini b0b73ddd29 Bug 1388125 - CloneableWithRangeMediaResource for streams implementing nsICloneableInputStreamWithRange, r=jya 2017-09-18 13:34:43 +02:00
Andrea Marchesini 5f79fe9d48 Bug 1388125 - Move ChannelMediaResource to separate files, r=jya 2017-09-18 13:33:49 +02:00
Andrea Marchesini 3ad3aaae76 Bug 1388125 - Move FileMediaResource to separate files, r=jya 2017-09-18 13:31:08 +02:00
Andrea Marchesini 052284c159 Bug 1388125 - FileMediaResource should use BlobImpl->Size() instead of stream::Available() to know the size, r=jya 2017-09-18 13:31:00 +02:00
Sebastian Hengst 7dba57e6b9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DYPstPArJWR
2017-09-18 11:34:59 +02:00
Jean-Yves Avenard 6367aea01f Bug 1400537 - P2. Pass video framerate to decoder. r=gerald
Continuation on bug 1397307 which was incomplete.

MozReview-Commit-ID: JGGHQyjnALI

--HG--
extra : rebase_source : 067652250dcd0904c8436eebc50068c7fb8d8cbb
2017-09-17 18:06:47 +02:00
Jean-Yves Avenard 3e790e2a55 Bug 1400537 - P1. Don't assume that the PDM will properly report an error. r=alwu
Only the Windows H264 decoder supports CreateDecoderParam::mError, all the other PDM leave the value untouched.

As such, it can't be assumed that in case of failure, the mError attribute will be set.

MozReview-Commit-ID: GWHGP6Wv3fl

--HG--
extra : rebase_source : 081b71c7a53c41d9a13904e4182e3cfdb876ae43
2017-09-17 18:01:37 +02:00
Bharat Raghunathan 1880a2c631 Bug 1396794 - Removed aPacket and aLength change r=kentuckyfriedtakahe
MozReview-Commit-ID: JG9vo3dbMB

--HG--
extra : rebase_source : d699868284c5929aee3b26544fc99f454dd114ed
2017-09-16 07:18:56 +05:30
Sebastian Hengst 9f35e3578f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-17 23:35:08 +02:00
Jean-Yves Avenard afd0595779 Bug 1400598 - P1. Stop parsing bytesteam as soon as we have found the necessary data. r=gerald
MozReview-Commit-ID: 9APhbRHIMUP

--HG--
extra : rebase_source : 5f62596fab23c2b832d6cdb85764f3b4b37aa7ad
2017-09-16 23:35:17 +02:00
Jan-Ivar Bruaroey c0da003175 Bug 1381638 - Prevent sharing multiple input devices in the same process. r=jesup 2017-09-15 23:00:39 -04:00
Sebastian Hengst 1d35d25f21 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1Wa3jV6n7Wj
2017-09-16 11:35:02 +02:00
Randell Jesup eea2736c27 Bug 1396879: don't dynamically switch to/from fast-path gUM audio r=jib 2017-09-16 00:06:07 -04:00
Jean-Yves Avenard 19ca46af01 Bug 1400614 - P2. Change string output content. r=gerald
Doesn't look as nice as I had hoped.

MozReview-Commit-ID: 6GAXsVKC2sQ

--HG--
extra : rebase_source : bc06616f22f08a6ae6d14dc2fb8b4b60448120f2
2017-09-17 09:56:38 +02:00
Jean-Yves Avenard 56de0134f7 Bug 1400614 - P1. Handle case where we have no video track. r=gerald
MozReview-Commit-ID: KcHMH3pOouc

--HG--
extra : rebase_source : 5b8135156a535ea75d13c2568123d242b79dd5cc
2017-09-17 00:57:17 +02:00
John Lin ac062e7031 Bug 1394239 - don't return video frames that MDSM won't show. r=jya
In some Android ROMs, MediaCodec doesn't allocate additional buffers to reduce
consumer starvation and will not work when MDSM grips most recently returned
frame before rearching seek target. Implement SetSeekThreshold() to get actual
seek target to check if video buffers can be released back to remote decoder
immediately.

MozReview-Commit-ID: 7IetuVxCXc0

--HG--
extra : rebase_source : 8e8643dbde757d41a26de45663a8232b4c66c386
2017-09-11 12:50:48 +08:00
James Cheng 7789212fcf Bug 1399754 - [Part2] Fix wrong format string. r=cpearce
MozReview-Commit-ID: 5oXE0UvGeFt

--HG--
extra : rebase_source : 92ecf466b49f4062a85f058b802c37887cabf23a
2017-09-14 17:18:00 +08:00
James Cheng 1d71cf11e9 Bug 1399754 - [Part1] Replace CDM_LOG with GMP_LOG. r=cpearce
MozReview-Commit-ID: IG3qsRGW42E

--HG--
extra : rebase_source : 0b0cd4a394a5c15ed8fa8b631c149c962297e55e
2017-09-14 16:00:58 +08:00
Jean-Yves Avenard 83780d15b6 Bug 1400254 - Don't apply fuzz workaround when appendWindowEnd is set. r=gerald
Someone changing the attribute appendWindowStart and appendWindowEnd can be expected to know what they are doing. As such, we don't need to make sure playback starts when content timestamps are broken.

MozReview-Commit-ID: EcPORuDHpF5

--HG--
extra : rebase_source : 2e29f07d8c4c52dfee360bac9e83b4d92b3eae38
2017-09-17 15:30:34 +02:00
Alastor Wu da413dafe6 Bug 1400758 - part3 : report the error description with InitPromise for ffmpeg decoders. r=jya
MozReview-Commit-ID: 3MGmU34JY3t

--HG--
extra : rebase_source : 154697238162ff92f861e7cbaa1a6d22b1ee13f4
2017-09-18 18:10:05 +08:00
Alastor Wu 9d25af9bef Bug 1400758 - part2 : report the error description with InitPromise for agnostic decoders. r=jya
MozReview-Commit-ID: BxTTHJPwDNq

--HG--
extra : rebase_source : e634e0a7d61da02f258b7736e69afa249dd2c6ee
2017-09-18 18:10:00 +08:00
Alastor Wu 1dc98ba99e Bug 1400758 - part1 : report the error description with InitPromise for Apple's decoders. r=jya
MozReview-Commit-ID: 8rifWLm8BPt

--HG--
extra : rebase_source : 44dcc34ba665a238a3bc72a7c610484e860ddb8a
2017-09-18 18:05:21 +08:00
James Cheng 277ad84673 Bug 1400180 - Fix CID 1417508 Uninitialized members of TextTrackCue::mLine and mPosition by giving them default values. r=alwu
MozReview-Commit-ID: CB6980MNqP1

--HG--
extra : rebase_source : 732149b1fa7d5a30b662ac179e8db59f12f4f2f6
2017-09-15 17:12:38 +08:00
Jean-Yves Avenard f170080ea4 Bug 1397307 - P10. Remove uncessary loop. r=gerald
We only process a demuxed sample at a time. Waiting until one is decoded to do the next pending ones.

MozReview-Commit-ID: JlXhyPzso8U

--HG--
extra : rebase_source : c11185ca75fd5950aa4273dd9ec03d2cf9b217ba
2017-09-14 14:45:10 +02:00
Jean-Yves Avenard f1c09e4a82 Bug 1397307 - P9. Pass video frame rate to RemoteVideoDecoder and GPU process. r=mattwoodrow
MozReview-Commit-ID: BDSO332f3B6

--HG--
extra : rebase_source : 1ef2b6d7b1c4e237fa90afa99a446678f0f16e25
2017-09-12 18:29:40 +02:00
Jean-Yves Avenard b787f86de0 Bug 1397307 - P8. Pass averaged video frame rate to constructor. r=mattwoodrow
MozReview-Commit-ID: FMFz3RdFsHA

--HG--
extra : rebase_source : 868c4177da4aecbf5b7c13e441aa15fe865fd66e
2017-09-12 17:55:03 +02:00
Jean-Yves Avenard e1eaa06ce9 Bug 1397307 - P7. Display video resolution and frame rate in debug data. r=gerald
MozReview-Commit-ID: 9vsheKkAm4p

--HG--
extra : rebase_source : 701231cbb976f72819eab7de20c9a5d9c5780136
2017-09-12 17:40:42 +02:00
Jean-Yves Avenard a73b2aa424 Bug 1397307 - P6. Calculate average video frame rate as video is playing. r=gerald
We unfortunately can't store this information in the VideoInfo as typically the framerate isn't found in the container's metadata. Additionally, the VideoInfo object is readable-only as it is shared across threads.

As such, we can only estimate it as we demux samples.

MozReview-Commit-ID: 5HB33ubfGAs

--HG--
extra : rebase_source : 1d6d09da76a99524422b14d50db477a9aa222da0
2017-09-12 21:20:09 +02:00
Jean-Yves Avenard 6940b5e2e4 Bug 1397307 - P5. Avoid creating two decoders on first sample. r=gerald
Don't unnecessarily, create a decoder, flush, shutdown and create a new one on the first sample.

MozReview-Commit-ID: 8utEX5JEmq8

--HG--
extra : rebase_source : e40548e7ef4ad1a8e3c57f3070a2ffc77bf81a3f
2017-09-12 21:02:24 +02:00
Jean-Yves Avenard ac903423a4 Bug 1397307 - P4. Fix style. r=gerald
MozReview-Commit-ID: 1Q3kwsDlAhI

--HG--
extra : rebase_source : 1de597c71be3793000fc5787e1cd276bb7d2704a
2017-09-12 11:09:15 +02:00
Jean-Yves Avenard aa5caa2ae1 Bug 1397307 - P3. Remove unused method. r=gerald
Code was incorrect anyway.

MozReview-Commit-ID: Bf0O4Mhu1P6

--HG--
extra : rebase_source : 79ff66e3bec257b9f72e8af9b06b023715172d69
2017-09-11 17:37:44 +02:00
Jean-Yves Avenard c59188889b Bug 1397307 - P2. Wrap boolean in structure to prevent unwanted conversion. r=gerald
Automatic conversion (say from int to bool) makes DecoderParam difficult to extend.

MozReview-Commit-ID: G0T7jPogskN

--HG--
extra : rebase_source : 59437fd2b430ccd6be50b18c98b5a5c4ed2c8240
2017-09-08 15:45:38 +02:00
Jean-Yves Avenard d9036ddaef Bug 1397307 - P1. Make method const. r=gerald
MozReview-Commit-ID: 2UrTZroXpRG

--HG--
extra : rebase_source : d3c95c1c07fb46d28d7aea9fc8891894e7024b5a
2017-09-08 12:49:01 +02:00
JW Wang 04279e9849 Bug 1399751. P3 - pass the offset of range request to ChannelMediaResource::OnStartRequest(). r=gerald
So we don't have to look at GetOffset(). We want to reduce the use of
MediaCacheStream::mChannelOffset so it is easier to fix data races about it.

MozReview-Commit-ID: 3GAbKYA9xi4

--HG--
extra : rebase_source : bfaceb190da30e3276085fb7930468ad51e3a98f
2017-09-14 14:33:15 +08:00
JW Wang 93ecd70b5b Bug 1399751. P2 - pass a block index to FindBlockForIncomingData() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: 7VltaDyxndl

--HG--
extra : rebase_source : 09516f6379bb5f0e6e949e150cc74d373a889464
2017-09-14 10:42:54 +08:00
JW Wang a00d1e2c0a Bug 1399751. P1 - pass a block index to AllocateAndWriteBlock() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: EJmxrE5X6nA

--HG--
extra : rebase_source : 0d89f6e1de8082ebe0fa3a20c1c8d2e34d4e1982
2017-09-14 10:39:06 +08:00
Bryce Van Dyk 5a880668fb Bug 1336367 - Fix unified build issues from previous changes. r=pehrsons
MozReview-Commit-ID: E82sCwkCxGT

--HG--
extra : rebase_source : 7ceace01c2d91b1f65f7ab9d34ebb08dd1edb48b
2017-09-14 14:15:22 +12:00
Bryce Van Dyk 1d69fbd829 Bug 1336367 - Rename TestTrackEncoder to TestAudioTrackEncoder. r=pehrsons
The TestTrackEncoder file only contained audio encoder tests. This makes the
distinction between the already existing TestVideoTrackEncoder and these audio
tests clearer.

MozReview-Commit-ID: KmM616S72Gm

--HG--
rename : dom/media/gtest/TestTrackEncoder.cpp => dom/media/gtest/TestAudioTrackEncoder.cpp
extra : rebase_source : abd0965fd27ef0f51575ac20e908b4cc908bca47
2017-09-14 13:54:43 +12:00
Bryce Van Dyk 2cc5363e39 Bug 1336367 - Add gtest for new AudioTrackEncoder init method and behaviour. r=pehrsons
MozReview-Commit-ID: 1IWPu2lD2u6

--HG--
extra : rebase_source : 4daeef0555e637f561025440591b7954641add1d
2017-09-14 13:21:31 +12:00
Bryce Van Dyk 1f1b9997c8 Bug 1336367 - Move AudioTrackEncoder Segment init logic into new method. r=pehrsons
The AudioTrackEncoder has logic to attempt to init when given an AudioSegment.
This logic has previously been part of NotifyQueuedTrackChanges. This
changeset moves the logic to its own method. This allows for finer testing of
the init attempt behaviour.

MozReview-Commit-ID: Der1iM9J8fr

--HG--
extra : rebase_source : bb47dd483d69349482a6d8882e9768b1a8d09480
2017-09-14 07:19:27 +12:00
Bryce Van Dyk fc034c8d9f Bug 1336367 - Significantly lower TrackEncoder timeout, make best effort init audio encoder on timeout. r=pehrsons
MozReview-Commit-ID: 2J5DPfkulIF

--HG--
extra : rebase_source : 06fffca2f1fb60971d204e0dfa773d1373eb0e89
2017-09-12 09:32:17 +12:00
Sebastian Hengst 71720207e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JHeyFz4rx1v
2017-09-14 23:58:56 +02:00
Ryan VanderMeulen 277d6a438f Merge m-c to inbound. a=merge 2017-09-14 10:52:18 -04:00
Dan Minor b155d6c5ca Bug 1393687 - Add mochitest for max-fs; r=jesup
This adds a mochitest to verify that the max-fs constraint results in smaller
video for VP8 and H.264.

MozReview-Commit-ID: Hk6uyqoiwUY

--HG--
extra : rebase_source : 99602d3d98f8f17b8d71fd94ef3198d43abb7541
2017-09-12 08:24:48 -04:00
Sebastian Hengst 006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Sebastian Hengst 7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst dd669d05e1 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JWKcdNfAFqk
2017-09-13 11:25:59 +02:00
Sebastian Hengst a3ed708553 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 11:44:38 +02:00
Joel Maher 7806465584 Bug 1398244 - run mochitest-media on windows 10 instead of windows 8. r=rwood 2017-09-13 05:18:46 -04:00
Ryan VanderMeulen 68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Sebastian Hengst ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
James Cheng be5b995e78 Bug 1397123 - [Part2] Decouple ChromiumCDMProxy from ChromiumCDMParent. r=cpearce
1. Pass ChromiumCDMCallback interface to ChromiumCDMParent instead of ChromiumCDMProxy directly.
2. Wrap dispatching to main thread function to clean up the redundant code.

MozReview-Commit-ID: 5HxS9Fc1yr

--HG--
extra : rebase_source : 3ac4c4b260f3196bd862e97aaf12c2422d43ad11
2017-09-11 12:17:36 +08:00
James Cheng e3b97ecea3 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : 40a0bd4d5cc20210322daed0eba04dec2273fbd7
2017-09-11 12:16:18 +08:00
Bill McCloskey fe8e58f308 Bug 1397941 - Fix DecodedStream labeling bug (r=jwwang)
MozReview-Commit-ID: KL5XzLJuWgz
2017-09-11 19:10:59 -07:00
Alastor Wu 7ed84d4e89 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 30b9dc35f5754d6ecc7cddaf7f5a9fabf9965889
2017-09-13 15:38:24 +08:00
Alastor Wu 10f4de4d65 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 9Sb5ogX2Bf2

--HG--
extra : rebase_source : 8a2ae32439097c583c63290009b8ca5de36b49a8
2017-09-13 15:38:06 +08:00
Alastor Wu 116ce6a963 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: 80yEAbxqvWu

--HG--
extra : rebase_source : 51a56b571767c6b64f0c92353585261b28ea5616
2017-09-13 15:37:50 +08:00
Alastor Wu 686b38b20a Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: 9aKyYftBnUo

--HG--
extra : rebase_source : a497e12d98e3a2b0e0ec2afa60298cacbe1a5ea9
2017-09-13 15:37:24 +08:00
Alastor Wu 1df67c03cc Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu b89748ad91 Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu 0eecc91949 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu 95cde08ed5 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
Sebastian Hengst f992c70670 Backed out changeset 6f22cc93383c (bug 1397141) for bustage at dom/media/ipc/VideoDecoderParent.cpp:87 (undeclared variable). r=backout on a CLOSED TREE 2017-09-13 09:26:39 +02:00
Sebastian Hengst 483665f6a4 Backed out changeset 81a987374ac7 (bug 1397141) 2017-09-13 09:25:55 +02:00
Sebastian Hengst 4492018f6a Backed out changeset 57ab4c51c72b (bug 1397141) 2017-09-13 09:25:50 +02:00
Sebastian Hengst f550df3a8e Backed out changeset 9140f22570ea (bug 1397141) 2017-09-13 09:25:44 +02:00
Sebastian Hengst 7d84900829 Backed out changeset 6dade48b3326 (bug 1397141) 2017-09-13 09:25:39 +02:00
Sebastian Hengst 2e68cb77ba Backed out changeset c78c096d0be9 (bug 1397141) 2017-09-13 09:25:33 +02:00
Sebastian Hengst 6f1ea8f932 Backed out changeset eab2e401c60f (bug 1397141) 2017-09-13 09:25:28 +02:00
Sebastian Hengst d7f084f99d Backed out changeset f6f5863e50a8 (bug 1397141) 2017-09-13 09:25:22 +02:00
Alastor Wu d3b21ca470 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 36cdd1e18cd41516319989b56e4e83888b0ecf50
2017-09-13 15:06:22 +08:00
Alastor Wu 0fc4a508a5 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 5QPdFCMesi5

--HG--
extra : rebase_source : e62040cbeccd55a30ffe3b7b2d16010f7c86ee6f
2017-09-13 15:06:14 +08:00
Alastor Wu 3da04770d6 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: HrI3QKlSJC

--HG--
extra : rebase_source : 6aba73c887e3068bf2a3f031a9a3b0698decc2e3
2017-09-13 15:06:07 +08:00
Alastor Wu 45f6a63ccf Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: CuBZOtjh4g2

--HG--
extra : rebase_source : 82c68ea3fe54b148b0cf98fe37d954efd4acbcbe
2017-09-13 15:05:59 +08:00
Alastor Wu 6db87eb5d6 Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu 8b50e7758a Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu 8c01968e21 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu 34ef9f5aa2 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
Jean-Yves Avenard f33ffdaa12 Bug 1352016 - P5. Also check AMD cards with 0x1002 device id. r=mattwoodrow
MozReview-Commit-ID: DjCMDNfsfXe

--HG--
extra : rebase_source : de6814743e405d396d9ae479ed7646fa8de021d1
2017-09-10 18:17:14 +02:00
Jean-Yves Avenard 9f62aa3667 Bug 1352016 - P1. Add method to check if NV12 rendering is usable. r=mattwoodrow
It will allow to blacklist all NVidia Tesla and AMD UVD3 GPU.

MozReview-Commit-ID: LaJqyIj0Yau

--HG--
extra : rebase_source : aa93c4379181e2cb09733f0053de55bf64787ef6
2017-09-10 17:51:35 +02:00
Sebastian Hengst 0987151cd8 merge mozilla-central to autoland. r=merge a=merge 2017-09-12 11:36:32 +02:00
JW Wang fbbf253722 Bug 1398711. P2 - write to mClosed only when the cache monitor is held. r=gerald
This fixes the data race when Seek() read mClosed off the main thread.

MozReview-Commit-ID: GO7Kk5VgVpg

--HG--
extra : rebase_source : e29353aea1e077e30fd284a80a56472d6772e9e1
extra : intermediate-source : 20a5860220a6eb54616cbe059afdaebc81e07e1f
extra : source : 0722d581e2d03eb140ea722527975534471c31b5
2017-09-08 17:46:56 +08:00
JW Wang 0c7c4a09c5 Bug 1398711. P1 - remove unused methods. r=gerald
MozReview-Commit-ID: HHezNUArhVd

--HG--
extra : rebase_source : 4e139d0640dd7335e23332af9d56b88ae499a6e2
extra : intermediate-source : cb1e92dbd1f53874c8d41e36f317c4c5c61bbacf
extra : source : e24555972c08b134654847d950a523c1a836bdb5
2017-09-08 17:35:11 +08:00
James Cheng fd751ffde2 Bug 1398102 - [Part2] Fix test fail due to wrong assumption. r=gerald
MozReview-Commit-ID: 1wRNQ2oIY1w

--HG--
extra : rebase_source : f2822a79a2af2a0a2f2e0db0000f885c550db8d7
2017-09-12 17:28:48 +08:00
JW Wang 8fb5559c5f Bug 1395855. P2 - store the offset of range request. r=cpearce
So we know what to pass to SetupChannelHeaders()
when the channel is redirected.

MozReview-Commit-ID: DbCPGA3qIyn

--HG--
extra : rebase_source : 4b8a5b620344fa261b243c0935ce49ebb7a9b4aa
extra : source : dfe1a9fe59a623f4d1972f3184a5861cfef62ffd
2017-09-09 00:37:40 +08:00
JW Wang 7a2d2e198c Bug 1395855. P1 - remove ChannelMediaResource::mOffset so we have less data race to worry about. r=cpearce
We have MediaCacheStream::mChannelOffset to keep the download positon.
We don't need 2 variables for the same purpose.

MozReview-Commit-ID: IpnEJWuA9A9

--HG--
extra : rebase_source : 8e720d878c12555d0a5528167c183ddb881b249e
extra : source : 623cf4cc3ab5ad0d9d263bac05a58699b3577277
2017-09-08 15:09:37 +08:00
JW Wang 7f866dd54e Bug 1399372 - update the principal only once per OnDataAvailable() call. r=cpearce
MozReview-Commit-ID: BWyDmKglWsl

--HG--
extra : rebase_source : a9563cf9c04e462dc4c80779b8a587f420bb5499
extra : intermediate-source : 9d12fff4917b308011d37de8172f8f5036308271
extra : source : 4150f78ba66d820509b0bae87cc47e39c2f4ade1
2017-08-29 17:57:00 +08:00
Chris Pearce 52ca837455 Bug 1399559 - Include nsXULAppAPI.h in AudioStream.cpp. r=jwwang
This ensures XRE_IsContentProcess() is defined, as it's used in this file.

MozReview-Commit-ID: JFCmvZ8aZdT

--HG--
extra : rebase_source : 5852da1b4b76f767e7d36071cdfa1f97eaedbf8c
2017-09-14 15:56:35 +12:00
Wes Kocher 7a8b3e02a0 Backed out 4 changesets (bug 1352016) for gfx crashes in test_TelemetryEnvironment.js a=backout CLOSED TREE
Backed out changeset dd7342e18e67 (bug 1352016)
Backed out changeset ebc7c92e8dc0 (bug 1352016)
Backed out changeset e79e512f803f (bug 1352016)
Backed out changeset 9eed6a69298c (bug 1352016)

MozReview-Commit-ID: CYDuqu0Hmtb
2017-09-12 17:09:40 -07:00
Jean-Yves Avenard 17b5da90db Bug 1352016 - P4. Also check AMD cards with 0x1002 device id. r=mattwoodrow
MozReview-Commit-ID: DjCMDNfsfXe

--HG--
extra : rebase_source : 671c9ae8bbf36ac825f68485072df7afd464f4c1
2017-09-10 18:17:14 +02:00
Jean-Yves Avenard 0d3f904559 Bug 1352016 - P1. Add method to check if NV12 rendering is usable. r=mattwoodrow
It will allow to blacklist all NVidia Tesla and AMD UVD3 GPU.

MozReview-Commit-ID: LaJqyIj0Yau

--HG--
extra : rebase_source : aa93c4379181e2cb09733f0053de55bf64787ef6
2017-09-10 17:51:35 +02:00
Munro Mengjue Chiang bb4430fa36 Bug 1399395 - skip devicechange event handler in shutdown stage. r=pehrsons
MozReview-Commit-ID: 8skWP7LuGvR

--HG--
extra : rebase_source : 4003690eedd10ee1676aecfc8f304593004f66ce
2017-09-14 11:16:42 +08:00
Sebastian Hengst be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Phil Ringnalda 2387b87164 Backed out 2 changesets (bug 1397123) for Android build bustage
Backed out changeset 803c2d6f4be4 (bug 1397123)
Backed out changeset 2d41a6eb4df4 (bug 1397123)

MozReview-Commit-ID: A45nVCrhbQA
2017-09-11 20:23:22 -07:00
James Cheng 48f1756606 Bug 1397123 - [Part2] Decouple ChromiumCDMProxy from ChromiumCDMParent. r=cpearce
1. Pass ChromiumCDMCallback interface to ChromiumCDMParent instead of ChromiumCDMProxy directly.
2. Wrap dispatching to main thread function to clean up the redundant code.

MozReview-Commit-ID: 5HxS9Fc1yr

--HG--
extra : rebase_source : ff3227b01003398d0410bdde5f43621f44d9e477
2017-09-11 12:17:36 +08:00
James Cheng 7cfecdecc8 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : e165dd24b22a06f5a7a9ebe2797136b4109a203f
2017-09-11 12:16:18 +08:00
James Cheng 9fcb294cc3 Bug 1398628 - Remove VIDEO_CDM_CREATED telemetry and the related code. r=cpearce,francois
MozReview-Commit-ID: 3xDiz9S90bY

--HG--
extra : rebase_source : 78c88ef859fbf402cb7f1c168663c63f3eb5073d
2017-09-11 11:51:12 +08:00
Bryce Van Dyk 347e311683 Bug 1378826 - Add test for removal of video tracks during recording. r=jesup
MozReview-Commit-ID: 7IGx27Z2jsN

--HG--
extra : rebase_source : a1f86dc1d73fe125ac72fc05de4af8c192704ad4
2017-08-22 15:28:00 +12:00
Samael Wang a175a57a4e Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : ce6e27c7d422f32dec858712eba5ed8011ee8039
2017-09-05 16:02:04 +08:00
Samael Wang 252b861c8b Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 59bcddcb0eaf0c335ded6df90b497f1fa97a63c0
2017-09-05 15:57:21 +08:00
JW Wang 0fd21f3cb8 Bug 1398659. P12 - remove unused MediaCacheStream::mHasHadUpdate. r=gerald
MozReview-Commit-ID: 98Nhi924Jip

--HG--
extra : rebase_source : f70d17d516f16b5959d8fd41e40f354843c02b04
extra : source : 9f4cf1dfc0a8588f96f2b1f7934ba5d9e5a4fbca
2017-09-08 15:46:53 +08:00
JW Wang 97ea54a3df Bug 1398659. P11 - replace mCacheStream.GetLength() with GetLength(). r=gerald
MozReview-Commit-ID: BGgObe2XG5C

--HG--
extra : rebase_source : a9dddd16ca071cef11a4546b5f9bc649b6e47e5b
extra : source : 100d0443ff9cab14ddc17eba13d824ff2b2bbef5
2017-09-08 14:38:22 +08:00
JW Wang ef21878fba Bug 1398659. P10 - remove ChannelMediaResource::mIgnoreClose. r=gerald
mIgnoreClose is always set in conjunction with a call to CloseChannel().
Since mListener->Revoke() will prevent future OnStopRequest() calls from coming,
it is unnecessary to set mIgnoreClose and therefore we can remove this member.

MozReview-Commit-ID: HEXIhIUG8WN

--HG--
extra : rebase_source : 656c1bb67fcddcca4c2c17b0bb783ad325ab52ec
extra : source : b852f796c1ba6a8bc442013b7b6058a24a33634b
2017-09-08 11:20:39 +08:00
JW Wang d53c2e2ba6 Bug 1398659. P9 - remove unused member. r=gerald
MozReview-Commit-ID: 5SSnbYQXxKD

--HG--
extra : rebase_source : 7470f0ee0a507a549be630c3f5471f576dfe098a
extra : intermediate-source : c173519b75dce7818b75fc901a3a9a1b844e4439
extra : source : c10cd05c569b09e209dc4ec6cc1df7564ab05309
2017-09-07 16:08:10 +08:00
JW Wang f6430f39ef Bug 1398659. P8 - remove the call to mCacheStream.NotifyDataLength() from OpenChannel(). r=gerald
MediaCacheStream::mStreamLength has been set either in Init() or InitAsClone().

MozReview-Commit-ID: L259ecDgjN7

--HG--
extra : rebase_source : 7df74d388808492faac73c3e41a972cb22cdb187
extra : intermediate-source : d834e02c15ed9361a02977349459fad079910642
extra : source : 45df347e1fd6b67d60212f2d87312d597656a7d6
2017-09-07 15:23:57 +08:00
JW Wang fff2af86d2 Bug 1398659. P7 - tighten up the assertions in OpenChannel(). r=gerald
MozReview-Commit-ID: IPCLOJKx3f3

--HG--
extra : rebase_source : 22e5114ebb2e37c1bcc39f87ea634a54745a52e7
extra : intermediate-source : a2fda2578d6e1264d7035196b8de5c1b92fc1427
extra : source : 4094121a462346abeaf3d5423cba28dd28ce080c
2017-09-07 15:15:18 +08:00
JW Wang 47cd403db0 Bug 1398659. P6 - remove the nsIStreamListener** parameter from OpenChannel(). r=gerald
The only caller is CacheClientSeek() which always passes nullptr to it.

MozReview-Commit-ID: 3CTkbF6ktp2

--HG--
extra : rebase_source : f53fe82ca0fc5e2926c4d2cf1346630098a9614f
extra : intermediate-source : a4823926a983af9293c9fe9857e39527735ea226
extra : source : 88a08faec452614217bebe80fc2b00a2b08f7f38
2017-09-07 15:12:15 +08:00
JW Wang c5630e40b2 Bug 1398659. P5 - let ChannelMediaResource::Open() set mListener without calling OpenChannel(). r=gerald
This is more efficient because aStreamListener won't be null.

MozReview-Commit-ID: 4b22l7cTK6y

--HG--
extra : rebase_source : 5e2366eaa79ccff2aacaf47d67805e3f939cc362
extra : intermediate-source : f6a6c58325085ce47e41a189d2e14239695bdaed
extra : source : 16b0c9ebdc4102fcd07d28a2c1a1a3b26d607f47
2017-09-05 17:51:22 +08:00
JW Wang 6dcbfcbee7 Bug 1398659. P4 - remove unused code and add some assertions. r=gerald
MozReview-Commit-ID: LRgF9qjdMXz

--HG--
extra : rebase_source : af8b8bb4272c9be0f0ab8b51356362e9676c7076
extra : intermediate-source : 640d38acf9d3cf4aa583c67fc20ea487c849a570
extra : source : 0faec6a6b214ce4d5ca59ac2b098d4a5bfe4470b
2017-09-05 17:39:57 +08:00
JW Wang be83fdf7b4 Bug 1398659. P3 - ChannelMediaResource::Open() is a no-op for a cloned resource. r=gerald
1. mChannel is null.
2. mCacheStream has been initialized by InitAsClone().

So ChannelMediaDecoder::Load() doesn't need to call OpenResource(nullptr) at all.

MozReview-Commit-ID: FeARp9fu65L

--HG--
extra : rebase_source : ee3ae9bfa6830ed18fea152e12da18e181870d2d
extra : intermediate-source : 6b78ae143afa325b378d7cc2cbd2e3e0bcfdfe93
extra : source : 098787b9606b70697a3b1762b35a488799995475
2017-09-05 17:35:24 +08:00
JW Wang 25d23f8eab Bug 1398659. P2 - remove the if statement since new() is infallible. r=gerald
MozReview-Commit-ID: 9GobL4M2mjc

--HG--
extra : rebase_source : d0ce65d3a3b29a6842009ac248ad71c16b458b56
extra : intermediate-source : 6003e4a7519bd844a2a265ea2afc2f26510ad4ad
extra : source : c2530f00a0eaee4e3ff58c96a87bffdf97517554
2017-09-05 17:31:09 +08:00
JW Wang b8f562f05e Bug 1398659. P1 - tighten up the assertions in InitAsClone(). r=gerald
We also make it return void since it now always succeeds.

MozReview-Commit-ID: H1oQWoguEzF

--HG--
extra : rebase_source : b5c6714832bed6fceb80c4afcdf4a590cc7dc567
extra : intermediate-source : 01aa9da848391bbf0b39f8dca874c0234f3202fb
extra : source : af04510d8603ffe407069ef342fdb4d3bca33509
2017-09-05 17:28:14 +08:00
Andreas Pehrson 3e7a54981e Bug 1360334 - Improve error handling. r=padenot
MozReview-Commit-ID: 5tIXzzisg0V

--HG--
extra : source : 0dc85355af3d166038ccf6e0fd161bd614b0ead2
2017-09-08 16:41:36 +02:00
Sebastian Hengst 3a76476175 Backed out changeset a3eabb355005 (bug 1360334) for build bustaget at dom/media/GraphDriver.cpp:200: cannot pass non-trivial object of type 'RefPtr<mozilla::GraphDriver>' to variadic function. r=backout on a CLOSED TREE 2017-09-09 18:00:49 +02:00
Andreas Pehrson 0bdbb7d2aa Bug 1360334 - Improve error handling. r=padenot 2017-09-08 16:41:36 +02:00
Alastor Wu 8c76ba6b0a Bug 1400195 - remove xp constraint for tests. r=jya
MozReview-Commit-ID: BawMiEVPNFA

--HG--
extra : rebase_source : 0f653a020a2cdfaff76c8ef2ee477e02796c646b
2017-09-16 02:14:23 +08:00
Alastor Wu 97421a2047 Bug 1398139 - part4 : enable test. r=jya
Fix the fail by patch1, so we can re-enable it.

MozReview-Commit-ID: It3JkvQzAdk

--HG--
extra : rebase_source : 5ad433012750c8f6c92b16b787e87b32ee03d7a6
2017-09-15 18:05:21 +08:00
Alastor Wu 3ec0a4b45b Bug 1398139 - part3 : check current time should be increased correctly in new chained part. r=jya
MozReview-Commit-ID: 3ctF8SAVcs9

--HG--
extra : rebase_source : 5557458d0615bf763cc9a093c0a5dfaefbfc377c
2017-09-15 18:05:18 +08:00
Alastor Wu a08c8019d2 Bug 1398139 - part2 : adjust sample's start time for chained ogg. r=jya
For chained ogg files, the new part would contain new timestamp from zero, so
we need to add the duration of previously decoded data to make sure the current
time is correct.

MozReview-Commit-ID: Bb1lCiKz4uQ

--HG--
extra : rebase_source : 5cfd81eb092a042e6394aa5209516ad75e741a37
2017-09-15 18:05:10 +08:00
Alastor Wu f2df60108c Bug 1398139 - part1 : revert the changing of bug 1386478. r=jwwang
This changing causes the resampling rate tolerance so that the ME.current time
might not be the same as ME.duration depending on the different resampling rate.

MozReview-Commit-ID: H2dpyw5Bghv

--HG--
extra : rebase_source : 850efb46c7980ec4234e239e38bc7dbb233cd573
2017-09-15 17:07:08 +08:00
Chris Manchester fab07bc443 Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0

--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Jean-Yves Avenard 4de97bd6f6 Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : dcfb26420f2aa2b3b8972f2a9ad35a141b37e74a
2017-09-06 17:02:21 +02:00
Wes Kocher 4d3b3a806c Backed out 6 changesets (bug 1392143) for lint failures in SanityTest.js a=backout
Backed out changeset 5e167360b1f9 (bug 1392143)
Backed out changeset c1fcfceeefae (bug 1392143)
Backed out changeset 5220b19f1fc0 (bug 1392143)
Backed out changeset ff3a335e7111 (bug 1392143)
Backed out changeset b1627a3a5d77 (bug 1392143)
Backed out changeset 40e16e34df00 (bug 1392143)

MozReview-Commit-ID: KWifvOL8d9s
2017-09-07 16:17:11 -07:00
Jean-Yves Avenard 4c2d89a946 Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : da34be08b67716ebb84f249ead571cc171d8d2f7
2017-09-06 17:02:21 +02:00
Sebastian Hengst de667b9463 Backed out changeset d89fe870c4a8 (bug 1364364)
--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-07 16:49:28 +02:00
Sebastian Hengst e32d31055b Backed out changeset 0458fccefb5c (bug 1364364) 2017-09-07 16:49:22 +02:00
Samael Wang 593ae22cd9 Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 5dcc252160694a72e30ae41689f173cc0886edd6
2017-09-05 16:02:04 +08:00
Samael Wang c1f17dd82a Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 59bcddcb0eaf0c335ded6df90b497f1fa97a63c0
2017-09-05 15:57:21 +08:00
Sebastian Hengst 544909dd55 Backed out changeset acf2ccf34d75 (bug 1392143) 2017-09-07 14:51:01 +02:00
Sebastian Hengst 6b5abf8cab merge mozilla-central to autoland. r=merge 2017-09-07 12:40:32 +02:00
Sebastian Hengst 8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
JW Wang ac6ee9f873 Bug 1395802. P4 - we don't need lock since mChannelStatistics is always accessed on the main thread. r=cpearce
MozReview-Commit-ID: KHnhPaSTSFr

--HG--
extra : rebase_source : 0129e5d729f2ed6f5ed8b9f1c4e89b128c9f6868
extra : intermediate-source : 8c093999ba40f7ce48dc3c3cc0d10117b710868a
extra : source : b5b2a5d89b2aa25ee644e8ea3c06804d2c63cdba
2017-09-01 14:32:00 +08:00
JW Wang d3f14ac69d Bug 1395802. P3 - ensure mChannelStatistics.AddBytes() to happen on the main thread. r=cpearce
MozReview-Commit-ID: CbDl9mWZDFs

--HG--
extra : rebase_source : 6f66f540146ea7ff43543f66d4f7c450c98d7a68
extra : intermediate-source : 1834aa47f8ff342e36a1fe4e8f73c7a0aa1906c6
extra : source : de6706f3fcd29ca81254e9b20f391cc28bc3a57a
2017-09-01 14:28:06 +08:00
JW Wang 959a1c210a Bug 1395802. P2 - assert ChannelMediaResource::GetDownloadRate() runs on the main thread. r=cpearce
The only caller is ChannelMediaDecoder::GetStatistics() which runs on the main thread.

MozReview-Commit-ID: CYg3Z3rmlHd

--HG--
extra : rebase_source : c3bf0083522256a6c4f3e83bc817ee7d0ce398bf
extra : intermediate-source : 12bad420f0f3eb9a3993fada2f919d61f60ad392
extra : source : 6044445039445631bbb6cd66607b6f7f72547f18
2017-09-01 14:19:51 +08:00
JW Wang 7183d8c7c6 Bug 1395802. P1 - add AbstractMainThread() to MediaResourceCallback. r=cpearce
This is required by P3 to preserve the ordering. E.g. we want
mChannelStatistics.AddBytes() to happen before the new data is consumed
by the decoder and is made observable to the main thread. Using
SystemGroup::Dispatch() won't guarantee the ordering.

MozReview-Commit-ID: 7MP0CzTGpOs

--HG--
extra : rebase_source : 1161b7c713f57625f38b70714bb8684c2edecb2a
extra : source : 22b362b56f218acb70cc7ce3c0fd0ea113563681
2017-09-06 15:12:34 +08:00
Wes Kocher a14d71906d Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJ4WkYrJ9g6
2017-09-06 17:24:48 -07:00
Jean-Yves Avenard f7197c027f Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : 20cf3ae8bf62709711ac0e76e348c6e28d678025
2017-09-06 17:02:21 +02:00
JW Wang 407e3c1e2a Bug 1395842 - tighten up assertions in ChannelSuspendAgent which runs on the main thread only. r=alwu
MozReview-Commit-ID: AK3YHAz750D

--HG--
extra : rebase_source : d555164f54c3498d29b1ad408ce8f18b22497653
extra : source : acd6401380d82101d8e4b650730b49bf126bb80b
2017-09-01 15:44:38 +08:00
Phil Ringnalda c0f8dd917a Backed out 3 changesets (bug 1395017) for frequent failures in test_video_crossorigin.html
Backed out changeset 438657f4637d (bug 1395017)
Backed out changeset 243ef641e6c3 (bug 1395017)
Backed out changeset 78625f947f69 (bug 1395017)

MozReview-Commit-ID: DeBaUOPQrAD
2017-09-05 22:39:50 -07:00
Alastor Wu a1171573f0 Bug 1396547 - use Supports() in PDMFactory::CreateDecoder() instread of SupportsMimeType(). r=jya
The TrackInfo [1] created in WMFDecoderModule::SupportsMimeType() doesn't contain valid image's width and height, because the TrackInfo is created without width and height [2] and the default width and height are both -1 [3].

Thesefore, we can't correctly check whether this resolution is supported by MFT [4]. We should use Supports() instead of SupportsMimeType().

[1] https://goo.gl/QV8Jgm
[2] https://goo.gl/4siShn
[3] https://goo.gl/BDoXYf
[4] https://goo.gl/BZh4QA

MozReview-Commit-ID: 4dIJ84eaytq

--HG--
extra : rebase_source : 1ac63d25d3c7473f9bfd595432273460649a26f1
2017-09-04 18:50:23 +08:00
JW Wang 07961dc53c Bug 1395017. P3 - always dispatch a task to run UpdatePrincipal() even when CacheClientUpdatePrincipal() already runs in the main thread. r=cpearce
When MediaCacheStream::NotifyDataReceived() runs off the main thread,
there is no guarantee that the principal will be updated before the new
data is observable to the consumer because the principal can only be
updated on the main thread while the consumer can access the data off
the main thread.

To make the code simpler, we always dispatch a task to run UpdatePrincipal()
even when CacheClientUpdatePrincipal() already runs in the main thread.

This also avoid the deadlock because ChannelMediaResource::UpdatePrincipal()
will never run with the cache monitor held.

MozReview-Commit-ID: 9CdrJnaV0hl

--HG--
extra : rebase_source : 128d54f4583199e7bfa8c72895583ab7fb668706
extra : intermediate-source : c2310f99bdc7529f1e1c67edbb8274b20b679cb2
extra : source : b6cc234d83e7b18ab69502af78d27ce5eda3b350
2017-08-30 11:42:25 +08:00
JW Wang 3da879e10c Bug 1395017. P2 - assert ResourceStreamIterator should either run in the main thread or with the lock held. r=cpearce
MozReview-Commit-ID: Jm9alyQFFtA

--HG--
extra : rebase_source : 7e9c880d6d1f30440ea1ddb65db57b0d6503c186
extra : intermediate-source : d30bc071a565283823be5fbd27c59da0242e8c18
extra : source : 1f69aab306347acce8e4d927c6315658a8af7a3b
2017-08-30 11:26:01 +08:00
JW Wang eef07d01d2 Bug 1395017. P1 - dispatch a task to the main thread to update the principal when necessary. r=cpearce
MozReview-Commit-ID: BWyDmKglWsl

--HG--
extra : rebase_source : 5931a534ac880828a03a39afda87402c2b81dbbc
extra : intermediate-source : fc38148a0fb851d714da7ed477c8232a327daac0
extra : source : 4150f78ba66d820509b0bae87cc47e39c2f4ade1
2017-08-29 17:57:00 +08:00
Jean-Yves Avenard 3358fb824a Bug 1396629 - P5. Show container type in debug info. r=cpearce
MozReview-Commit-ID: 3olXuGeqqoS

--HG--
extra : rebase_source : bc61d8f67eb4e726ba1d200d731a7740f80f8f82
2017-09-04 22:47:36 +02:00
Jean-Yves Avenard e5379b16fc Bug 1396629 - P4. Show sourcebuffer mimetype in debug info. r=cpearce
MozReview-Commit-ID: 2FLWa7Tidzy

--HG--
extra : rebase_source : 1c839e9b2a837294eb4dd24ce10812cfce1b7f3c
2017-09-04 22:46:37 +02:00
Jean-Yves Avenard 4d30575929 Bug 1396629 - P3. Make member const. r=cpearce
MozReview-Commit-ID: CwOh3BZj0vG

--HG--
extra : rebase_source : 698bdb76c3c713bd956448f0fc15eeeeab015b0e
2017-09-04 22:43:50 +02:00
Jean-Yves Avenard c69eab3317 Bug 1396629 - P2. Change string type. r=cpearce
MozReview-Commit-ID: Jl8t60Qh600

--HG--
extra : rebase_source : 99ba93b18adf4e9b1c4bb29a9626a166c63ede98
2017-09-04 22:43:12 +02:00
Jean-Yves Avenard 089160d545 Bug 1396629 - P1. Use nsCString. r=cpearce
The default string is over 400 bytes long, it will never fit in the default 64 bytes buffer of an nsAutoCString.

MozReview-Commit-ID: 3FHPQDgCtMF

--HG--
extra : rebase_source : 13d6070acc9f29afab922d9e37c215114729aef4
2017-09-04 21:07:11 +02:00
Karl Tomlinson 39d02c6b7c bug 1394341 replace xmalloc with operator new(size_t) to match AudioBlock deallocation in delete r=padenot
MozReview-Commit-ID: EqDe41PBf3C

--HG--
extra : rebase_source : e88f0ae221e1d5985e292f891ab033d5a048ea72
2017-08-30 12:17:07 +12:00
Bryce Van Dyk 2dd8bf74ac Bug 1395022 - Add test to check only one start event is fired by MediaRecorder when erroring. r=pehrsons
MozReview-Commit-ID: 1JJY0eQMSDn

--HG--
extra : rebase_source : f97bc71009022279b7e6b5b497c1dbf6fc5931b5
2017-09-04 10:10:32 +12:00
Bryce Van Dyk 885710fcc9 Bug 1395022 - Fix MediaRecorder firing unnecessary start event when erroring. r=pehrsons
MozReview-Commit-ID: 6ULFqlEHaqx

--HG--
extra : rebase_source : 1179446840c81d7ef1bed90ce798bc7ec22e18a2
2017-09-04 08:28:01 +12:00
Nils Ohlmeier [:drno] e3c345fd9b Bug 1264479: added mochitest to test current and pending descriptions from JS. r=bwc
MozReview-Commit-ID: 8fSvyiPz2Tv

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_promiseSendOnly.html => dom/media/tests/mochitest/test_peerConnection_verifyDescriptions.html
extra : rebase_source : afe7ab872b3daf83bef3afd86a9387f8dbde28c3
2017-08-30 14:30:24 -07:00
Alex Chronopoulos 087f9c1689 Bug 1392837 - Support multichannel audio input on gUM. r=padenot
MozReview-Commit-ID: FKCIAo4a8jy

--HG--
extra : rebase_source : 2f72331514909f418580e3c7c8bcc445e74167c8
2017-09-04 17:26:03 +03:00
Sebastian Hengst 45cb996f32 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 12:37:56 +02:00
Sebastian Hengst a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Jean-Yves Avenard 9349efba14 Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre
Includes some side 80 columns fix.

MozReview-Commit-ID: IXRoQfM0Hjc

--HG--
extra : rebase_source : 918cf87b2ce82c8de245dcb23cc359289ac5f21f
2017-09-04 11:27:43 +02:00
JW Wang a40c88e159 Bug 1348634 - wait for the 'suspend' event to ensure resource cloning work as expected. r=cpearce
MozReview-Commit-ID: BeGGnUfFDcN

--HG--
extra : rebase_source : bd8192f09cd088a430437f34674d579859d0194a
2017-09-04 13:20:05 +08:00
Bryce Van Dyk 521b6759e8 Bug 1388909 - Update tests to reflect updated MediaRecorder error handling. r=pehrsons
The MediaRecorder should now transition to inactive immediately upon an error
being encountered. This contrasts with the previous behaviour where onerror
would be called before performing this transition. This changeset updates
tests to reflect this new behaviour.

MozReview-Commit-ID: 5V2JkoMb0wB

--HG--
extra : rebase_source : cdd61c7fe128089458fd93f18d6b133a52b9b8aa
2017-09-04 07:07:54 +12:00
Bryce Van Dyk 9fec9bfac9 Bug 1388909 - Rework MediaRecorder to tranisition to inactive upon error. r=pehrsons
The MediaRecorder should transition to a 'inactive' state immediately upon
error. This changeset updates the recorder to do so. Previously the recorder
would fire an error event before transitioning, resuling in the state still
being 'recording' for handling of the the thrown error.

MozReview-Commit-ID: KMkaPOnEBYx

--HG--
extra : rebase_source : 4d05d46de775029d307ac2460700ce28c4e8321a
2017-09-01 11:38:52 +12:00
Jean-Yves Avenard a02e8d83ce Bug 1396643: Fix compilation when warning as error is set. r=cpearce
MozReview-Commit-ID: Ar2Ttk5hkGD

--HG--
extra : rebase_source : 6ebcafbbb3509b8f10f3173092cdead5cbcadfc6
2017-09-04 21:03:57 +02:00
Andreas Farre 2a3cdfc4f6 Bug 1393359 - Register active user media on top level window. r=smaug,jib 2017-09-04 14:40:30 +02:00
bechen@mozilla.com 0169d13c5b Bug 1393260 - Reftest for the 55th frame of gizmo.mp4. r=alwu
Since the street.mp4 is a fragment mp4, the duraion is unstable when seeking in the testcase, change the test file to gizmo.mp4.

MozReview-Commit-ID: 8eQ9tfKwxZF

--HG--
extra : rebase_source : a15dfd0994456809241f9dd5a0c44239beda4e16
2017-09-04 11:03:49 +08:00
Kilik Kuo 3d9fbae6bd Bug 1279171 - Do not use WMF when application is in Windows pre-2000 compatibility mode. r=froydnj
MozReview-Commit-ID: BPiz2WWrshF

--HG--
extra : rebase_source : c5e78e94c542a5b00b06e177aa088ad3bb56da57
2017-08-24 11:46:56 +08:00
James Cheng daea8f027c Bug 1395468 - [Part3] Remove WidevineAdapter and its related classes. r=cpearce
We now only use the Chromium CDM interface, so there is no need to check isWidevine.
We don't use WidevineAdapter anymore so remove the related check and unused classes.

MozReview-Commit-ID: 3y1lH3OMhwL

--HG--
extra : rebase_source : 955395f3bbbd523236e9ac2480ef21093a281084
2017-08-29 17:42:25 +08:00
James Cheng b01615f4a0 Bug 1395468 - [Part2] Remove the EMEVideoDecoder and GMPCDMProxy related files. r=cpearce
We remove the instantiation of EMEVideoDecoder and GMPCDMProxy in Part1. Just delete it and its h/cpp from moz.build

MozReview-Commit-ID: 8kGQK967pR0

--HG--
extra : rebase_source : 77750e6a92e6b649c41e7a8f769fa14c810e8e18
2017-08-29 16:52:09 +08:00
James Cheng 9d0d797c01 Bug 1395468 - [Part1] Remove media.eme.chromium-api.enabled preference and its related code. r=cpearce
1. Delete MediaPrefs::EMEChromiumAPIEnabled() and related logic.
2. We now only use the Chromium CDM interface so delete the opposite side check of MediaPrefs::EMEChromiumAPIEnabled().

MozReview-Commit-ID: GDFrrf4WlWf

--HG--
extra : rebase_source : 987667dd47757afd58e7da10b60c0e1e1ec89d39
2017-08-29 16:13:15 +08:00
Jean-Yves Avenard 64a4b87c4c Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Jean-Yves Avenard 1559f6a705 Bug 1394591 - P5. Remove need for atomic members. r=mattwoodrow
Instead set members after initialising the child decoder, and only ever access the child decoder on the same thread.

MozReview-Commit-ID: 4mfhVWbNLEu

--HG--
extra : rebase_source : 90a8e7bc8975fd08fc6b262c81cbf43a45751a06
2017-09-01 22:51:20 +02:00
Jean-Yves Avenard 19333d8da8 Bug 1394591 - P4. Pass decoder description to RemoteVideoDecoder. r=mattwoodrow
This makes it easier to determine the actual decoder in use within the GPU process.

MozReview-Commit-ID: 5TF6AsyXYWW

--HG--
extra : rebase_source : 0e73dc17206a83006040cf422182da560b3cf70a
2017-09-01 18:22:55 +02:00
Jean-Yves Avenard 831c4202f5 Bug 1394591 - P3. Add codec type to decoder description name. r=gerald
MozReview-Commit-ID: 8vQUFhhMtqO

--HG--
extra : rebase_source : 5d6d6ff3f360bac1cbabccda6bdeb41328831529
2017-09-01 14:58:19 +02:00
Jean-Yves Avenard 2a45c11cd9 Bug 1394591 - P2. Fix style. r=gerald
MozReview-Commit-ID: Jmyrf7d8hGW

--HG--
extra : rebase_source : 5fef879c0f2847a98e72ae8a30e176bdeea3b780
2017-09-01 14:27:39 +02:00
Jean-Yves Avenard f2acd77b7c Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v

--HG--
extra : rebase_source : d126b8b956ff1f54c33a838834aee9cc6340de95
2017-09-01 14:25:28 +02:00
JW Wang 94fcc0f623 Bug 1395431 - dispatch a task to call MediaResourceCallback::NotifyDataArrived() in CacheClientNotifyDataReceived(). r=cpearce
Since MediaResourceCallback is ref-counted, we don't need nsRevocableEventPtr
to handle the case ChannelMediaResource might go away before mCallback->NotifyDataArrived()
is run. This also avoid the data race in accessing mDataReceivedEvent on different threads
when OMT data delivery is enabled.

MozReview-Commit-ID: 1Tbjxrm1ar5

--HG--
extra : rebase_source : 235bca5f578aac0e586754596eaa0e0fa6325df4
extra : source : 74edc45577859a3f4593a6957880778df732d8eb
2017-08-30 11:58:43 +08:00
Sebastian Hengst 94169d21f8 Backed out changeset 409dbe62d0ea (bug 1394591) for asserting GLBlitHelper requires vertex_array_object in dom/media/mediasource/test/test_FrameSelection.html on Android 4.3. r=backout 2017-09-04 00:08:33 +02:00
Sebastian Hengst a5febec2a2 Backed out changeset 74209b2b69b7 (bug 1394591) 2017-09-04 00:07:13 +02:00
Sebastian Hengst 82383978f8 Backed out changeset 478ba48df051 (bug 1394591) 2017-09-04 00:07:07 +02:00
Sebastian Hengst c6ac74c855 Backed out changeset b741cbca23bd (bug 1394591) 2017-09-04 00:07:02 +02:00
Sebastian Hengst 239e4df31a Backed out changeset ba1a3d16916b (bug 1394591) 2017-09-04 00:06:56 +02:00
Sebastian Hengst e9bfcd79f9 Backed out changeset de401d17868d (bug 1394591) 2017-09-04 00:06:51 +02:00
Jean-Yves Avenard 9b2818843f Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Jean-Yves Avenard e23a2d9405 Bug 1394591 - P5. Remove need for atomic members. r=mattwoodrow
Instead set members after initialising the child decoder, and only ever access the child decoder on the same thread.

MozReview-Commit-ID: 4mfhVWbNLEu

--HG--
extra : rebase_source : 90a8e7bc8975fd08fc6b262c81cbf43a45751a06
2017-09-01 22:51:20 +02:00
Jean-Yves Avenard ec392e67b8 Bug 1394591 - P4. Pass decoder description to RemoteVideoDecoder. r=mattwoodrow
This makes it easier to determine the actual decoder in use within the GPU process.

MozReview-Commit-ID: 5TF6AsyXYWW

--HG--
extra : rebase_source : 0e73dc17206a83006040cf422182da560b3cf70a
2017-09-01 18:22:55 +02:00
Jean-Yves Avenard 23c55d9a28 Bug 1394591 - P3. Add codec type to decoder description name. r=gerald
MozReview-Commit-ID: 8vQUFhhMtqO

--HG--
extra : rebase_source : 5d6d6ff3f360bac1cbabccda6bdeb41328831529
2017-09-01 14:58:19 +02:00
Jean-Yves Avenard 4098ebe21b Bug 1394591 - P2. Fix style. r=gerald
MozReview-Commit-ID: Jmyrf7d8hGW

--HG--
extra : rebase_source : 5fef879c0f2847a98e72ae8a30e176bdeea3b780
2017-09-01 14:27:39 +02:00
Jean-Yves Avenard 15e988718f Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v

--HG--
extra : rebase_source : d126b8b956ff1f54c33a838834aee9cc6340de95
2017-09-01 14:25:28 +02:00
Jean-Yves Avenard eccbe26070 Bug 1396428 - Fix end of lines. r=jya
MozReview-Commit-ID: 3reYozTMKk0

--HG--
extra : rebase_source : 1b9d259eca5609ffa68cf6a0d269dfa44aace038
2017-09-03 21:28:52 +02:00
Jeff Gilbert e8ed9905f9 Bug 1322746 - Expose DXGI HANDLEs for GPU_VIDEO. - r=mattwoodrow
MozReview-Commit-ID: Aea0xGesaQi
2017-09-02 21:52:10 -07:00
Kaku Kuo a79890cbb6 Bug 1393399 P5 - report the recovery time telemetry; r=gerald
MozReview-Commit-ID: 3Z0Esl1F6fV

--HG--
extra : rebase_source : a0c88bfdf53e17fdebb9d0b33457ce649ba54a7c
2017-08-31 18:02:06 +08:00
Kaku Kuo 8a35a5cc36 Bug 1393399 P4 - implement GPUProcessCrashTelemetryLogger helper class; r=gerald
GPUProcessCrashTelemetryLogger is used to report telemetry of the time used to recover a decoder from GPU crash.

It uses MediaDecoderOwnerID to identify which video we're dealing with.
It uses MediaDataDecoderID to make sure that the old MediaDataDecoder has been deleted and we're already recovered.
It reports two recovery times, one is calculated from GPU crashed (that is, the time when VideoDecoderChild::ActorDestory() is called) and the other is calculated from the MFR is notified with NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER error.

MozReview-Commit-ID: 82BRc2Vs3cw

--HG--
extra : rebase_source : 8c92501f625d44e9391a2432b98842769ed8a199
2017-08-31 17:56:17 +08:00
Kaku Kuo e738871d59 Bug 1393399 P3 - keep the MediaDecoderOwner's identification in MFR; r=gerald
When GPU process crashes, the MediaDecoder, MDSM, and MFR are all destroyed.
So, we use MediaDecoderOwner to identify which video we're dealing with.

MozReview-Commit-ID: 1cv08M7Cpcf

--HG--
extra : rebase_source : 62f7be874d97a58eb4c1d7a98b4e9fe83a9313d3
2017-08-31 17:31:51 +08:00
Kaku Kuo 15e39cee1b Bug 1393399 P2 - keep the GPU process crash time and send back to MFR; r=gerald
We keep the GPU crash time and send back to MFR through MediaResult.

We cannot save the information in VideoDecoderChild as a static member because we are going to read it in MFR's task queue and the data was written in VideoDecoderManager's thread. This is going to be racing.

MozReview-Commit-ID: FXqOgelWY6e

--HG--
extra : rebase_source : 5c0561e009ad16983e1ff910216f9cf7901b5542
2017-08-31 17:21:28 +08:00
bechen@mozilla.com 51322d988c Bug 1392196 - Enable tests which tag is "promise-play" on fennec. r=alwu
MozReview-Commit-ID: DoIkwyUrrg5

--HG--
extra : rebase_source : 53fd1d1df0804d50f73f8e6db3d65858cdde6249
2017-08-30 16:43:41 +08:00
Navid 275812fbcb Bug 1397440 - Added a very useful comment r=rillian
This is a practice commit to clarify what arguments we're accepting.

MozReview-Commit-ID: 2qQbNAYzGwr

--HG--
extra : rebase_source : 26527c08c32d79f794601afdd7832fa0ed53ecf7
2017-09-06 16:36:22 -04:00
Wes Kocher 2ffe3f0783 Backed out 7 changesets (bug 1364364) for failures in test_multi_sharedWorker_lifetimes.html a=backout
Backed out changeset 6298563c1a81 (bug 1364364)
Backed out changeset 285633e277cb (bug 1364364)
Backed out changeset 6abd3298188a (bug 1364364)
Backed out changeset 6a0ec9eff8c3 (bug 1364364)
Backed out changeset f23aa9861e9b (bug 1364364)
Backed out changeset 5d6bf02b495a (bug 1364364)
Backed out changeset c9420f4e27f7 (bug 1364364)

MozReview-Commit-ID: IAFeH325T14

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-06 13:07:13 -07:00
Samael Wang 72673db64d Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 567e01703983ef91a66fb35fdb7702d06ed3c6e4
2017-09-05 16:02:04 +08:00
Samael Wang c89347b1c0 Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 59bcddcb0eaf0c335ded6df90b497f1fa97a63c0
2017-09-05 15:57:21 +08:00
Ralph Giles 2b58558fef Bug 1396158 - Remove pocketsphinx. r=kdavis,chmanchester
This was used for speech recognition in b2g builds. It is no longer
enabled by default and the associated interaface code no longer
compiles.

The dom interface code remains, pref'd off. This simply removes
the third-party backend implementation we have in-tree.

MozReview-Commit-ID: Fzwp6Cs9ePE
2017-09-06 08:37:01 -07:00
Ralph Giles 4fa6c9dd7a Bug 1396158 - Remove pocketsphinx references from the build system. r=chmanchester
These were used by b2g and are no longer needed.

MozReview-Commit-ID: DQontDwwlJ5
2017-09-06 08:37:00 -07:00
Nathan Froyd 76e682299c Bug 1396865 - eliminate -Wunused-private-field warning in RemoteDataDecoder; r=gerald
clang warns about RemoteDataDecoder::mImageContainer being unused, which
it is, so let's remove it.
2017-09-06 08:57:09 -04:00
Jean-Yves Avenard 4786e18bb6 Bug 1395858 - Use gfxPrefs to read AMD VP9 preference. r=padenot
MediaPrefs isn't initialised in the GPU process, so use gfxPrefs instead.

MozReview-Commit-ID: CgDSTtVo6GL

--HG--
extra : rebase_source : 7bac527573f8d85c0ea88334c8691d27e95ee53c
2017-09-01 17:05:47 +02:00
Sebastian Hengst 43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Boris Zbarsky 056d8fe612 Bug 1395421 part 2. When a get() happens on a JS-implemented maplike, notify the JS implementation so it can take some sort of action (e.g. logging or warning). r=peterv
MozReview-Commit-ID: 9G115wOyzvm
2017-08-31 22:45:53 -04:00
Tim Taubert 178ae7e0b0 Bug 1353762 - Revert RTCCertificate changes and remove unnecessary null-check r=keeler 2017-08-31 16:14:37 +02:00
Paul Adenot 202ba7566b Bug 1335029 - Take into account SystemClockDrivers in fallback mode when dealing with AudioContext promises. r=jesup
MozReview-Commit-ID: HBS6XGXDGf1

--HG--
extra : rebase_source : 00ea5cd91d0c96d352239fdd1fa89e332399fe04
2017-08-30 15:18:10 +02:00
Jean-Yves Avenard 738b66b34c Bug 1395139 - Put AMD VP9 decoder behing pref. r=cpearce
Pref used is media.wmf.amd.vp9.enabled

MozReview-Commit-ID: JiPGUUaT8AG

--HG--
extra : rebase_source : da9bb5ed452e1f36a170acb7bf7d4f5333ca1791
2017-08-30 17:16:25 +02:00
Sebastian Hengst c916e44e05 Backed out changeset 28bcad7387a0 (bug 1395139) for debug build bustage on Linux and Windows, e.g. failing test_child_assertions.js, and mass asserting on OS X at dom/ipc/ContentParent.cpp:2008. r=backout on a CLOSED TREE 2017-08-31 09:40:55 +02:00
Wes Kocher cf93b6ca0d Merge m-c to autoland, a=merge
MozReview-Commit-ID: BlE0HFQUP9c
2017-08-31 16:56:58 -07:00
Alfredo.Yang 77323453fe Bug 1377278 - test case for 'matroska' doctype webm. r=kinetik
MozReview-Commit-ID: LmQWsFrCeL8

--HG--
extra : rebase_source : e11320207721d0d24d9a685f5da7e6fd65ab80ff
2017-08-30 11:49:35 +08:00
JW Wang e24fdf16a7 Bug 1395014 - remove MediaSourceResource. r=jya
MozReview-Commit-ID: D3W2u4MBize

--HG--
extra : rebase_source : 7c610abc5c42c80ea8abc081f200c35647b81730
extra : source : c525cc941fb2504eee00b8237defe5fef2eea934
2017-08-29 14:03:19 +08:00
Jean-Yves Avenard 4468063328 Bug 1395139 - Put AMD VP9 decoder behing pref. r=cpearce
Pref used is media.wmf.amd.vp9.enabled

MozReview-Commit-ID: JiPGUUaT8AG

--HG--
extra : rebase_source : 20583443ab6452af7d857411fc519c7a616815b9
2017-08-30 17:16:25 +02:00
Jean-Yves Avenard b0289605b0 Bug 1394590 - Attempt using VP9 MFT when service is present. r=cpearce
MozReview-Commit-ID: HvM8u3DhhmF

--HG--
extra : rebase_source : 396268eadec537e3402973dda040b7d6ac7ba0b6
2017-08-30 15:17:33 +02:00
Jean-Yves Avenard 9baa86edb7 Bug 1394589: Load AMD VP9 decoder using CLSID. r=cpearce
MozReview-Commit-ID: xrUywFk4bu

--HG--
extra : rebase_source : 508852b0907185e8b8ccd22a692b2bce8a995137
2017-08-30 15:13:33 +02:00
JW Wang 07c73f15a7 Bug 1394724. P4 - merge MediaCacheStream::Close() and CloseInternal(). r=cpearce
MozReview-Commit-ID: Fo43lKYPA0m

--HG--
extra : rebase_source : b9f82c410c842c9ad6ad6d0eb04d22fdd0dcaed9
extra : source : b28530622cf885d5e6f987300333a9bf62edf615
2017-08-29 16:46:42 +08:00
JW Wang 14d7dd5668 Bug 1394724. P3 - fix data race in reading mClosed in MediaCacheStream::NotifyDataReceived(). r=cpearce
1. mCacheStream.Close() should happen after CloseChannel() to avoid data race
   in reading mClosed in MediaCacheStream::NotifyDataReceived().
2. MediaCache::Update() and CloseStreamsForPrivateBrowsing() should call
   ChannelMediaResource::Close() to ensure mCacheStream.Close() happens
   after CloseChannel().

MozReview-Commit-ID: 1o3yPbm3Gy6

--HG--
extra : rebase_source : 0a39af9ae228bdf4098ad16793bb6eccd15c3ec7
extra : source : f4b6deb231be5915dc42318ec22d850d20562b0e
2017-08-29 16:41:17 +08:00
JW Wang b336472dda Bug 1394724. P2 - mListener->Revoke() should happen after mChannel->Cancel() to avoid data race. r=cpearce
http://searchfox.org/mozilla-central/rev/cd82cacec2cf734768827ff85ba2dba90a534c5e/netwerk/base/nsIRequest.idl#56
All OnDataAvailable() calls should happen before Cancel().
It is safe to modify mResource after a call to Cancel().

MozReview-Commit-ID: KoeLth1zlZM

--HG--
extra : rebase_source : 49ff3e08ba74d6d200673fea04cb22ad85e77a59
extra : source : 1c327787519a463ea6599dfb69eea5a6f348b774
2017-08-29 15:55:20 +08:00
JW Wang 696ee533d1 Bug 1394724. P1 - assert the channel is already closed in ~ChannelMediaResource(). r=cpearce
MozReview-Commit-ID: 4lJNEEBsv4r

--HG--
extra : rebase_source : 0d6aad3544a2d3f9e74ee366099e193060f5e836
extra : source : e6f540139314ef9841ed85578c08f15e4a084a3d
2017-08-29 15:41:40 +08:00
Wes Kocher 940bdbc699 Merge autoland to central, a=merge
MozReview-Commit-ID: Jz9iBkuBrpV
2017-08-30 19:52:39 -07:00
Wes Kocher ed7c10b582 Backed out changeset be5d0598f77d (bug 1335029) for crashtest failures in 1185192.html a=backout CLOSED TREE
MozReview-Commit-ID: 9wzZ9KwfoDB
2017-08-30 12:13:01 -07:00
Paul Adenot c159686ac3 Bug 1335029 - Take into account SystemClockDrivers in fallback mode when dealing with AudioContext promises. r=jesup
MozReview-Commit-ID: HBS6XGXDGf1

--HG--
extra : rebase_source : a57a55552011406310cc10a1a1fb305f8c356488
2017-08-30 15:18:10 +02:00
Kris Maglione 8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
Chun-Min Chang b0e140e2a2 Bug 1392930 - part 3: Make AudioCallbackDriver inherit from DeviceChangeListener; r=padenot
--HG--
extra : rebase_source : a6d87257004fe4954044c0ccd70ca4b4f597099a
2017-08-29 17:45:44 +08:00
Chun-Min Chang b7f3746bab Bug 1392930 - part 2: Make AudioStream inherit from DeviceChangeListener; r=jwwang
--HG--
extra : rebase_source : 384f30c0fe923609b1c1f0822179f0165d987d4a
2017-08-29 18:08:46 +08:00
Chun-Min Chang e1fbc3f90d Bug 1392930 - part 1: Replace AudioStream by DeviceChangeListener in AudioNotificationReceiver; r=jwwang
--HG--
extra : rebase_source : b8484a25147ea1cf034b63039b5b3c4c09991958
2017-08-29 17:40:06 +08:00
Chris Pearce 50bc88ccf9 Bug 1395021 - Fix up includes to account for StreamTracks.h not being indirectly included in so many places. r=jwwang
With MediaInfo.h no longer including StreamTracks.h, some things that include
MediaInfo.h now use things that are no longer included. This patch adds the
includes back in, so the build works again.

MozReview-Commit-ID: INpH3vnBAmk

--HG--
extra : rebase_source : 8b91a999c71242c1eb5030f86c2a1f1c85d5fb27
2017-08-30 15:38:56 +12:00
Chris Pearce e4e1189f9a Bug 1395021 - Move TrackID definition from StreamTracks.h into TrackID.h. r=jwwang
This means that MediaInfo.h doesn't need to include StreamTracks.h, which pulls
in MediaSegment.h and the MSG and a bunch of DOM bindings stuff.

MozReview-Commit-ID: 6JSO1dxJq8k

--HG--
extra : rebase_source : c5ca38a6e0b297e4e05db3b23c7c2ead49e9f8bc
2017-08-30 15:24:54 +12:00
James Cheng 6dd36073da Bug 1395015 - Remove HLSResource. r=jwwang
Move the dependent method into HLSDecoder.
Remove the class entirely.

MozReview-Commit-ID: F9eOFQvgeLQ

--HG--
extra : rebase_source : a45407d88513883245f429c5f4bd09c78bef6f10
2017-08-30 14:14:32 +08:00
JW Wang 29df163b4e Bug 1394705 - let HTMLMediaElement::MediaLoadListener implement nsIThreadRetargetableStreamListener. r=cpearce
This is required to use nsIThreadRetargetableRequest::RetargetDeliveryTo().

MozReview-Commit-ID: GFuAjovabpY

--HG--
extra : rebase_source : 4fbc7877f2548dcf0777c820ee724f41c46de688
2017-08-29 14:28:13 +08:00
Karl Tomlinson c793bd812d bug 1391482 delay conversion of output of decodeAudioData() from int16_t to float until necessary r=padenot
On platforms with MOZ_SAMPLE_TYPE_S16, decode and resampling was already
performed in 16-bit arithmetic.  Keeping the potentially large buffer in
16-bit format halves the memory usage.

This patch does not affect other platforms.

MozReview-Commit-ID: DWZdiPNasie

--HG--
extra : rebase_source : 5df87fd343bbfba035f6b57d3025c0b89b661a8a
2017-08-17 13:28:25 +12:00
Karl Tomlinson 732dd0380a bug 1391482 generalize WebAudioDecodeJob buffer as AudioChunk r=padenot
MozReview-Commit-ID: 4H3F0SzAknc

--HG--
extra : rebase_source : 28733ccc1ff7a66659f4b2ae691c68a91dee66f3
2017-08-16 18:10:06 +12:00
Karl Tomlinson d17ceb8a8f bug 1391482 permit AudioChunk channel data initialization when mBuffer is not shared r=padenot
MozReview-Commit-ID: AZ30fTVHHce

--HG--
extra : rebase_source : 313f0e643c9fce3500fe4c238929c4636560834e
2017-08-16 18:37:30 +12:00
Karl Tomlinson 9a6e4c2741 bug 1391482 accept int16_t-sample initialization of AudioBuffer r=padenot
MozReview-Commit-ID: 5UaVZYneN2b

--HG--
extra : rebase_source : b6a5e28572c44f14a1bcdb13a950e78bb46eda41
2017-08-17 17:23:27 +12:00
Karl Tomlinson be26c78f56 bug 1391482 add a method to create an AudioBuffer from AudioChunk data r=padenot
MozReview-Commit-ID: GkJJo6UW4gl

--HG--
extra : rebase_source : bc407ba59d8c509b6226faa84b4f11ac0a6feb07
2017-08-16 17:45:48 +12:00
Karl Tomlinson 5556ab72c8 bug 1391482 move AudioBuffer parameter checking to constructor r=padenot
for sharing with a new factory method in a future patch.

MozReview-Commit-ID: LAtbRVttMh8

--HG--
extra : rebase_source : 120f2d52ad693aa0853d5058fa7418544878aac4
2017-08-16 17:38:43 +12:00
Karl Tomlinson 8c9f6a5188 bug 1391482 accept int16_t sample buffers in ConvolverNode r=padenot
MozReview-Commit-ID: LvYkiSvhQdP

--HG--
extra : rebase_source : afc72106b1e5aa05ddbe65c57506a54c61fc4b25
2017-08-10 19:55:36 +12:00
Karl Tomlinson 447ca09de3 bug 1391482 accept int16_t sample buffers in AudioBufferSourceNode r=padenot
MozReview-Commit-ID: I2gCBQdfOEx

--HG--
extra : rebase_source : d25b272c6c80305db22af2f1688cab9f94bc344c
2017-08-10 17:26:40 +12:00
Karl Tomlinson 7f4db3ca56 bug 1391482 remove now-unused ThreadSharedFloatArrayBufferList SetBuffer() variant r=padenot
MozReview-Commit-ID: 184qw9JUONH

--HG--
extra : rebase_source : c8f603d043c094e28eb2403e5b1bf2747a5ee129
2017-08-10 17:49:38 +12:00
Karl Tomlinson 1e60f9e8e2 bug 1391482 use AudioChunk to store and pass PeriodicWave data to engine r=padenot
This is mostly to be consistent with other nodes so that only a single
SetBuffer method is required to pass buffers from nodes to engines.

AudioChunk also has the advantage of ThreadSharedFloatArrayBufferList that it
keeps a record of the length of the buffer in the same struct, and so this is
passed to the engine with the buffer.

SharedBuffer needs one fewer allocation than ThreadSharedFloatArrayBufferList,
but this is not a hot path.

MozReview-Commit-ID: JsLcuFdFvRO

--HG--
extra : rebase_source : 1a09fd12edc2b519faac59229bf383e025008d1c
2017-08-10 20:26:20 +12:00
Karl Tomlinson cc82cd1d91 bug 1391482 keep custom oscillator data buffer on graph thread only long enough to initialize the PeriodicWave r=padenot
MozReview-Commit-ID: 6gdBZDruCc6

--HG--
extra : rebase_source : ad78bbffd0ee8b6c85558e50518cd6331d496f0f
2017-08-10 21:03:59 +12:00
Karl Tomlinson b823558f4c bug 1391482 add a fallible SharedBuffer::Create() r=padenot
The existing infallible Create() is also changed to use operator new(size_t)
to match the non-array delete when the ref count drops to zero.

MozReview-Commit-ID: HZGjSKnV8I2

--HG--
extra : rebase_source : f327facf481fee7d2e543e3160e3aebe05885cca
2017-08-11 10:57:04 +12:00
Karl Tomlinson 6ffb9a235f bug 1391482 generalize shared channel data from AudioBuffer as AudioChunk r=padenot
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, 16 bit buffers will be permitted in a future
patch.

MozReview-Commit-ID: FPZ6VcX4C1q

--HG--
extra : rebase_source : dc0d82d5495383ab2aaca37a09d282dd3c747e83
2017-08-09 16:39:40 +12:00