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

12221 Коммитов

Автор SHA1 Сообщение Дата
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
Nils Ohlmeier [:drno] f16dee0822 Bug 1394078: reject SDP with non-ASCII chars. r=bwc
MozReview-Commit-ID: 3s5gpcDNK4W

--HG--
extra : rebase_source : 4ee35312e76709d587bc87a4760f0481f41ac6e6
2017-08-25 22:58:25 -07:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Karl Tomlinson 3e8252b5b1 bug 1391482 add a mechanism to pass an AudioChunk from node to engine r=padenot
MozReview-Commit-ID: Akfy9xDKzXg

--HG--
extra : rebase_source : 97830e6e2b134c049439c3a0ed5f2684df1f7ee5
2017-08-01 20:04:56 +12:00
Karl Tomlinson efe8fa6093 bug 1391482 use AudioChunk to generalize AudioBuffer shared channel storage r=padenot
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, buffers with 16-bit data will be permitted
in a future patch.

MozReview-Commit-ID: FEGKMiQOCpR

--HG--
extra : rebase_source : 29680252fac272feda26ba65dd1ca86e0e9d5883
2017-08-03 17:58:23 +12:00
Kaku Kuo d7d6aaab9d Bug 1393392 P4 - report telemetry when we shutdown a remote HW decoder; r=gerald,mattwoodrow
MozReview-Commit-ID: HEgv9s3JsXB

--HG--
extra : rebase_source : 1b30e4908048f7aa59dd7c8364763520ba6c1c33
2017-08-29 15:51:22 +08:00
Kaku Kuo 9b6ce81f30 Bug 1393392 P3 - keep DXVA driver information in VideoDecoderChild; r=mattwoodrow
MozReview-Commit-ID: 3uFTC1U5g76

--HG--
extra : rebase_source : 1092f7ce1463e57eaa3345bf617cbe96814b746b
2017-08-29 15:19:05 +08:00
Kaku Kuo da586051ca Bug 1393392 P1 - a preference to ignore hw-decoding blacklist in gpu process; r=gerald,mattwoodrow
Gecko still finds out the current driver is blacklisted or not if we set "media.wmf.deblacklisting-for-telemetry-in-gpu-process" = true.
But this is only for telemetry usage.

MozReview-Commit-ID: 2Ydg527uQhe

--HG--
extra : rebase_source : d516f12674aa5532416635d6b95950786b74f6a2
extra : intermediate-source : ed0c0f7e47aca0ab962922f5e9ac58d6486ebc87
extra : source : b24c06b2b9854f68b60ba4a73755cf65c5266ae9
2017-08-24 19:02:06 +08:00
Kaku Kuo 7e944f5372 Bug 1393392 P0 - fix compiling error; r=gerald
MozReview-Commit-ID: 6DN1mciwPv

--HG--
extra : rebase_source : 069ee969594c205b5834827d80273c852842fffb
extra : intermediate-source : fb8c4cc599f67c74e160fe925e394ed651ecae88
extra : source : 32ee6f5d242cdf45d4b902f523b67a0eb4d0ad50
2017-08-25 11:11:47 +08:00
Jed Davis 4622976612 Bug 1394052 - Fix reading media.cubeb.sandbox pref. r=kamidphish
Previously this would always treat the pref as false, due to a slight
mistake in how Preferences::GetBool is called, and it could try to read
prefs off the main thread in some cases.

MozReview-Commit-ID: CcnVevHvqye

--HG--
extra : rebase_source : 11a3e91c5c684e6e45b9a4f1e773a92868ec1dd5
2017-08-25 19:08:32 -06:00
Sebastian Hengst 2a9cc8e3be merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Karl Tomlinson cfa54b56e1 bug 1024182 test normalization of convolution buffers via response concatenation r=dminor
MozReview-Commit-ID: AktlZvTXvWn

--HG--
extra : rebase_source : 627ed8baf0efcd9bcac0eb1bcfdf0a0903d31b41
2017-08-16 12:55:16 +12:00
Wes Kocher d03d9bee49 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJmeuDcuHke
2017-08-28 17:45:07 -07:00
Eric Rahm 9398bd6f43 Bug 1393235 - Fix improper usages of string functions. r=njn
This fixes usages of `Find`, `RFind` and the equality operator that kind of
work right now but will break with the proper type checking of a templatized
version of the string classes.

For `Find` and `RFind` it appears that `nsCString::(R)Find("foo", 0)` calls
were being coerced to the `Find(char*, bool, int, int)` versions. The intent was
probably to just start searching from position zero.

For the equality operator, the type of nullptr is nullptr_t rather than
char(16_t)* so we'd need to add an operator overload that takes nullptr_t. In
this case just using `IsVoid` is probably more appropriate.

--HG--
extra : rebase_source : 50f78519084012ca669da0a211c489520c11d6b6
2017-08-22 19:30:46 -07:00
Sebastian Hengst c46e62224e merge mozilla-central zo mouilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-28 17:10:37 +02:00
Sebastian Hengst 9769c22d10 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AeoHOxZLi6m
2017-08-28 16:53:53 +02:00
John Lin d40baf7687 Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang
MozReview-Commit-ID: 6x7um7F8omr
2017-08-28 18:13:57 +08:00
Tim Taubert 70d6a12be6 Bug 1353762 - Check for OOM when creating WebCryptoTasks r=keeler,mt 2017-08-28 14:26:10 +02:00
Sebastian Hengst 7668fe8729 Backed out changeset 92092cde72e1 (bug 842782) for eslint failure at toolkit/content/widgets/videocontrols.xml:1261: Unexpected if as the only statement in an else block. (no-lonely-if). r=backout 2017-08-28 10:00:29 +02:00
JW Wang b634b53e60 Bug 1393379. P2 - remove MediaResource::SizeOfIncludingThis/SizeOfExcludingThis. r=gerald
MozReview-Commit-ID: MMhVOaSUuX

--HG--
extra : rebase_source : a158bbd9c718212247896e299f6063773ca81d1a
extra : source : ff3aef3a67c67e281aac244206aeb15eccbace29
2017-08-24 17:52:21 +08:00
JW Wang 2c37ac8f7c Bug 1393379. P1 - make MediaDecoder::AddSizeOfResources pure virtual. r=gerald
We will move the implementation to sub-classes which have more details
about how to calculate the resource size.

MozReview-Commit-ID: 7lfiz5GNtPE

--HG--
extra : rebase_source : bf14ef91a6de456d65bee7cb1f53f8e542f55247
extra : source : 22640df9dd3a1491594a82b3d0bd175e46073fa3
2017-08-24 17:35:24 +08:00
John Lin d3de182650 Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang
MozReview-Commit-ID: 6x7um7F8omr

--HG--
extra : rebase_source : b7d11f01d19b32ce226814a0d25553d934715264
2017-08-25 14:25:49 +08:00
JW Wang 470f887d6d Bug 1393369. P4 - remove MediaSourceResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: J96wBGLBQ45

--HG--
extra : rebase_source : 269edf22f54b0a81331c7b3c8b264a350cac1a91
extra : source : daddcd406a1f61cae957ba941247d602a1f7d3bf
2017-08-24 17:13:03 +08:00
JW Wang 17c492ee07 Bug 1393369. P3 - remove unused code. r=gerald
MozReview-Commit-ID: IFxx8AEdDju

--HG--
extra : rebase_source : 83be99a6fd1514d1ffff469418cde3a2ac38b935
extra : source : b13cdacfa389d5ef6b349e1e030e2bdff2b92f98
2017-08-24 17:04:59 +08:00
JW Wang db3e1718f7 Bug 1393369. P2 - remove MediaResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: 9as5ya2xXdL

--HG--
extra : rebase_source : 7141cec4f3e9c38253b85e71d3b5efe5a5d7dddd
extra : source : 9d9f1de4db95a353040f7c7c484e7d9d79f275fa
2017-08-24 17:01:08 +08:00
JW Wang 59d7107e86 Bug 1393369. P1 - virtualize MediaDecoder::GetCurrentPrincipal() so the sub-classes know how to calculate the current principal. r=gerald
MozReview-Commit-ID: EOUtPE4hfgO

--HG--
extra : rebase_source : d15166e373fdd3a8490e2c794215aeb2551a7397
extra : source : 5f627ea709d24c8b7c5ddd0115524ef734378e66
2017-08-24 16:58:06 +08:00
Chris Pearce c511200e11 Bug 1392508 - Don't include nsRect.h, nsSize.h and nsIMemoryReporter.h in MediaData.h as they're unused. r=gerald
Including these also causes us to include a bunch of headers about points,
margins, and nsISupports/XPCOM/js, which we don't need.

MozReview-Commit-ID: 167YidMaeUQ

--HG--
extra : rebase_source : ab9ab45699451bb3fef613f401ae0e3853487ef5
2017-08-22 03:44:32 +12:00
Chris Pearce 4ffa31745b Bug 1392498 - Move TimeIntervals to dom::TimeRanges conversion into TimeRanges class. r=jya
If TimeUnits.h includes mozilla/dom/TimeRanges.h, then the build ends up
pulling in the Gecko DOM bindings, which pulls in a whole lot of JavaScript and
DOM bindings code. That makes it trickier to import GeckoMedia into Servo, and
makes Gecko's build slower, so move the code to convert TimeIntervals into
dom::TimeRanges.

Also remove an extraneous "virtual" and add "const" to some functions in TimeRanges.

MozReview-Commit-ID: BLeehaf9gCE

--HG--
extra : rebase_source : 84ef054cf8fd5b4434dc761a1b0a39803d3231f5
2017-08-21 15:08:25 +12:00
Phil Ringnalda e6458e1fee Merge m-i to m-c, a=merge
MozReview-Commit-ID: AYBlGJan6UL
2017-08-26 18:18:02 -07:00
Wes Kocher 7a8adb69f4 Merge m-c to inbound, a=merge
MozReview-Commit-ID: jMFiwJkgHA
2017-08-25 17:27:14 -07:00
Chris Pearce 008b91fc79 Bug 1392485 - Hook QueryDosDeviceW() in GMP process so it works inside the sandbox. r=bobowen,r=dmajor
We hook in kernelbase.dll rather than kernel32.dll, as hooking QueryDosDeviceW
kernel32.dll is failing on our Win8 tests, it seems because QueryDosDeviceW in
kernel32.dll redirects to kernelbase32.dll, and the redirect has insufficient
space for our hook in Win8. So hook in kernelbase.dll, where the redirect
redirects to instead.


MozReview-Commit-ID: JKRiKCd7Ibn

--HG--
extra : source : 635dedbff7ceebc1e71bf397228da87bf5c6a0dc
2017-08-23 10:56:41 +12:00
Gabriele Svelto 7387dc791b Bug 1393435 - Remove unnecessary inclusions of the crash reporter header files; r=mconley
MozReview-Commit-ID: 3tdFDrTYql8

--HG--
extra : rebase_source : cc862688f19afb8a5cf8c7cf915a5d3d45f041b5
2017-08-07 14:10:02 +02:00
Nils Ohlmeier [:drno] 70a26bb194 Bug 1383814: throw exception for too long TURN username. r=mjf
MozReview-Commit-ID: 2K9lU5Ycbny

--HG--
extra : rebase_source : b292db0a2993d5156408041f072cdcd98218c0ba
2017-07-25 15:47:27 -07:00
Ralph Giles 2cd2074378 Bug 1380118 - aom: Don't resample 8-bit images. r=kinetik
The libaom av1 decoder will return 16 bit per channel
aom_image_t structures with only 8 significant bits.

Detect this case and use the mSkip fields of PlanarYCbCrImage
to handle the extra data instead of allocating and performing
an extra copy to obtain the necessary 8 bit representation.

MozReview-Commit-ID: 8H9YZe86Qzu

--HG--
extra : rebase_source : 2d397bc65d410c001a33835aec2a2751ff7fe32c
2017-08-14 14:21:03 -07:00
Ralph Giles a4cea13c80 Bug 1380118 - aom: Resample high bit depth frames. r=kinetik
The libaom av1 decoder can return high bit depth frame
data now. Handle those frames by downsampling them
to 8 bits per channel so they can be passed to our
normal playback pipeline.

MozReview-Commit-ID: 97XYeh3YvQw

--HG--
extra : rebase_source : 04592c06f2f71bd4e54cd1650a237564f76d868c
2017-08-08 17:20:36 -07:00
Sebastian Hengst 4f808a0fde Backed out changeset c1ba8d240af2 (bug 1392485) for asserting and failing browser_eme.js on Windows 8 x64 debug. r=backout 2017-08-25 20:53:58 +02:00
Sebastian Hengst 5e563a8a4f Backed out changeset 92764d6eca17 (bug 1392485) 2017-08-25 20:53:12 +02:00
Ralph Giles 0b52422ebc Bug 1380118 - Update aom library. r=kinetik
Vendor upstream commit id f5bdeac22930ff4c6b219be49c843db35970b918
to pick up changes since the last import.

--HG--
extra : rebase_source : 6c03c7fcbffbdcf07b2b2819aee6dade2f0e2a0f
2017-07-10 15:33:39 -07:00
JW Wang 9ba52292a9 Bug 1393346. P2 - move IsTransportSeekable() from MediaResource to BaseMediaResource. r=gerald
MozReview-Commit-ID: KqpzIRH31gz

--HG--
extra : rebase_source : e9303347b34d3cbfbd8d6a6f2a474dd8f0fb1447
2017-08-24 00:08:41 +08:00
JW Wang 3202c8815c Bug 1393346. P1 - virtualize IsTransportSeekable(). r=gerald
MozReview-Commit-ID: LIwEEbH3tBT

--HG--
extra : rebase_source : e02954fb3b6ddf40259bc6c69221192e01fc1410
2017-08-24 00:06:23 +08:00
Dan Glastonbury 45ee5ece48 Bug 1391523 - P6: Integrate audioipc into CubebUtils. r=kamidphish
Enable client/server using: media.cubeb.sandbox = true

This pref is only read at start up, so requires restarting firefox for
a change in value to take effect.

MozReview-Commit-ID: 36L4vR5QEDJ

--HG--
extra : rebase_source : 501ddea24f6425372930fbf02ca4d15bc91e5de4
2017-07-27 18:12:07 +10:00
JW Wang 4e06f9291a Bug 1393365 - MediaResource doesn't need to inherit nsISupports. r=cpearce
MozReview-Commit-ID: LoSctajrULP

--HG--
extra : rebase_source : 69b6a1db6e41092408814699996f2995d153c526
2017-08-24 16:44:23 +08:00
JW Wang e8dd02d4f8 Bug 1393345 - remove MediaResource::IsSuspended() which has no callers. r=gerald
MozReview-Commit-ID: Jn6TIXpFflR

--HG--
extra : rebase_source : 0efc64660523f1e846feb247075ab69e54f5f24a
2017-08-23 15:52:33 +08:00
JW Wang c62c2c21b4 Bug 1392919. P3 - remove unused code and fix naming. r=gerald
MozReview-Commit-ID: 36PqGtOpAbf

--HG--
extra : rebase_source : 9ff9234f1f5db9151808d9a2ee33ced6d9e089c6
2017-08-23 14:42:25 +08:00
JW Wang da66e5c214 Bug 1392919. P2 - remove MediaResource::IsSuspendedByCache(). r=gerald
MozReview-Commit-ID: E1lkfLARMhS

--HG--
extra : rebase_source : 354adbb22db9bdacec74a824bf04bfce0775faad
2017-08-23 14:38:00 +08:00
JW Wang c960cfcc65 Bug 1392919. P1 - include the suspend status when notifying NotifySuspendedStatusChanged. r=gerald
MozReview-Commit-ID: GwzIBNLjcZr

--HG--
extra : rebase_source : 7673ba535636b3442f3987d3fe30f7e00822c621
2017-08-23 14:32:51 +08:00
Wes Kocher 4ea67d0e07 Backed out changeset e774700fe070 (bug 1392787) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FRRUDa6rIuS
2017-08-24 13:58:52 -07:00
Andrew Halberstadt cae249f833 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : d907a5b2192687d86e3291a936c943948ed6793f
2017-08-22 16:56:02 -04:00
Alastor Wu 2cb38665e3 Bug 1382780 - part4 : modify tests. r=cpearce
* test_playback_rate.html
In the patch2, we would honestly return the value of playback rate.

* test_info_leak.html/test_load.html

According to [1], we should only dispatch event "ratechange" when playbackRate or
defaultPlaybackRate attribute has just been updated. In these tests, they didn't
change the playbackRate or defaultPlaybackRate, we should not expect for the
"ratechange" event.

[1] https://html.spec.whatwg.org/multipage/media.html#event-media-ratechange


MozReview-Commit-ID: LjVDNnf4YX4

--HG--
extra : rebase_source : 3b58649212c24ccd5e17a64c3dc7fce8a9600207
2017-08-24 17:41:15 +08:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
David Major 406287685a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 15:05:40 -04:00
Sebastian Hengst 142b3bf28b Backed out changeset 109e89a7d561 (bug 1391420) for busting Linux pgo builds. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 6a4421254e4de31071785b73abdd1186638e31f2
2017-08-23 18:12:46 +02:00
David Major 8cb2cb650a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 11:10:39 -04:00
Dan Minor dfc22964d2 Bug 1391316 - Remove VoEHardware from MediaEngineWebrtc; r=jesup
The VoEHardware interface has been removed upstream. This replaces it with
calls to the AudioDeviceModule through VoEBase. This code is only used on the
non-full duplex code path.

MozReview-Commit-ID: m5ftmXm3CS

--HG--
extra : rebase_source : ee99440fa6616bc52d42c01b6b264c95e8b2ad89
2017-08-17 13:26:33 -04:00
James Cheng d2336908c9 Bug 1392976 - Do not assert IsOnMessageLoopThread() in ChromiumCDMChild::GetCurrentWallTime(). r=cpearce
MozReview-Commit-ID: Je4uTzFtLih

--HG--
extra : rebase_source : d602bc311d5bbddc1563c4d637f7e513b4efae8d
2017-08-23 17:40:14 +08:00
Jean-Yves Avenard 33058da3e1 Bug 1347518 - P2. Don't attempt to determine frame type when encrypted. r=cpearce
The data being encrypted, is nonsensical. So we always rely on the container information

MozReview-Commit-ID: 4uQ9l3Q1Ebl

--HG--
extra : rebase_source : 675f9d23d73765387735212f8894235d5ba668e5
2017-08-21 18:54:44 +02:00
bechen@mozilla.com 69fdded22d Bug 1374183 - Add a reftest to verify seeking to 0.466667 of street.mp4 should be the 15th frame. r=alwu
MozReview-Commit-ID: 39UUIkoH38S

--HG--
extra : rebase_source : b82e4bc3c2da305e4eaaa0c4dfb49b8825d2fa0c
2017-08-22 14:12:12 +08:00
Kilik Kuo 216e7acf63 Bug 1393336 - Remove WaitForCDM state from MDSM. r=jwwang,jya
MozReview-Commit-ID: 7XofvBZTerH

--HG--
extra : rebase_source : 99a7c9459bf1c3f0fe8a27e57595d8bebf8ac9c3
2017-08-25 17:11:14 +08:00
Chris Pearce ec0ac75c45 Bug 1394648 - Switch from nsInt{Point,Rect,Size} to gfx::Int{Point,Rect,Size} in dom/media. r=jwwang
The nsRect.h and nsSize.h headers typedef nsIntRect to gfx::IntRect etc, so the
rect/size objects we use will be the same, just under a different name.
However the old headers #include a bunch of things we don't use, so we if we
use the gfx objects directly we end up with a smaller include graph.

MozReview-Commit-ID: 7S4OSqBJK9m

--HG--
extra : rebase_source : 7cc48507356ce754e8395af957fa68a28711e00a
2017-08-29 14:00:33 +12:00
Chris Pearce 5bf7ddfc19 Bug 1394656 - Don't include nsCOMPtr.h in SharedBuffer.h as its unused. r=jwwang
Including nsCOMPtr also pulls in cycle collection stuff, which complicates the
include graph.

MozReview-Commit-ID: 7YqrkwrVfds

--HG--
extra : rebase_source : 32b865ec1e1ceecba2014d3cdfdd58a92b0ce8fb
2017-08-29 11:09:06 +12:00
Chris Pearce f15f9218c7 Bug 1394656 - Don't include nsAlgorithm.h in AudioSampleFormat.h. r=jwwang
There's nothing in nsAlgorithm.h that we're using in AudioSampleFormat.h,
though it does pull in the definition of NS_ASSERTION(), which we can
replace with an MFBT assertion to simplyfy the include graph.

MozReview-Commit-ID: EXOv2t0hKDc

--HG--
extra : rebase_source : 466afc8922dbe9c209a07073c4946c8b568fd2c1
2017-08-29 11:07:09 +12:00
JW Wang c8952581e9 Bug 1394653 - remove MediaResource from the base class of MediaSourceResource. r=jya
MozReview-Commit-ID: 9Pmp7K6zp13

--HG--
extra : rebase_source : b6ce308423c530f6c0b5c71127fc9343561f0fdb
extra : intermediate-source : b443c01608e693905afb69db2ae24bde162a65b9
extra : source : 3fc73f9bd173467c50159bc12ea2274013338b71
2017-08-25 14:08:07 +08:00
JW Wang c26c18e8c8 Bug 1394651 - remove MediaResource from the base class of HLSResource. r=gerald
MozReview-Commit-ID: 3RaLXA1kKzA

--HG--
extra : rebase_source : 9cc0d22671ff866ece5d3773e1efcda15c966fa4
extra : intermediate-source : 51fb3c2b3834f04b3fa944f02b230b4365557060
extra : source : 08a811cbddc2477f79985b5a9b5c20743a718b12
2017-08-25 14:03:45 +08:00
Phil Ringnalda 2f26d0e9a4 Backed out 15 changesets (bug 1391482) for rooting hazard
Backed out changeset 4d4ed9b64bdb (bug 1391482)
Backed out changeset c02da061fc56 (bug 1391482)
Backed out changeset 7f096b0d1d0e (bug 1391482)
Backed out changeset 497e04031fc3 (bug 1391482)
Backed out changeset cb6ac4267562 (bug 1391482)
Backed out changeset b9a522cc88c9 (bug 1391482)
Backed out changeset 6feba222e86b (bug 1391482)
Backed out changeset ee13302be6c8 (bug 1391482)
Backed out changeset 0e12a1bdb2fa (bug 1391482)
Backed out changeset 7ffc044e742a (bug 1391482)
Backed out changeset fc35c12c815f (bug 1391482)
Backed out changeset 527ea972cdf3 (bug 1391482)
Backed out changeset a9c7abf92455 (bug 1391482)
Backed out changeset fea3e5cd3590 (bug 1391482)
Backed out changeset ca07d3a43b11 (bug 1391482)

MozReview-Commit-ID: 9Cq8e7pr2SP
2017-08-28 20:40:11 -07:00
JW Wang 2cbbe83757 Bug 1393386. P2 - remove MediaDecoder::GetResource(). r=gerald
MozReview-Commit-ID: 7OfkJthwfoM

--HG--
extra : rebase_source : 88b63f6ebbab3a4df15febede377e427e32e065e
extra : intermediate-source : 39514e130ddbda604a9fdc69fd99d0248ed40420
extra : source : 91eded128b33b655d023f8aa73f9eaf2a38aac4a
2017-08-24 18:10:31 +08:00
JW Wang 4af519df25 Bug 1393386. P1 - make PinForSeek/UnpinForSeek pure virtual. r=gerald
Sub-classes should know how to pin/unpin the resource.

MozReview-Commit-ID: 50S8oSD5oEU

--HG--
extra : rebase_source : 5e1b7c657b759c0d1dfdd7b5c0a4b7dbc4077ffe
extra : intermediate-source : 3000b76a3b97c08955c2d584ac215114c8e8f59a
extra : source : a56b9846db916ff85a0cae09736c3284bd895506
2017-08-24 18:08:37 +08:00
JW Wang 3c7ce1ac45 Bug 1394316 - provide default implementation to MediaDecoderOwner methods that involve Gecko specific types. r=cpearce
MozReview-Commit-ID: 7hhJgeYH7ys

--HG--
extra : rebase_source : bc8ad684bae13e9cd4a45ba73cea92b5214ae157
2017-08-28 14:36:00 +08:00
JW Wang f8f989dd93 Bug 1394313 - replace use of nsAutoPtr with UniquePtr in MediaDecoderOwner.h. r=cpearce
MozReview-Commit-ID: 49lyvMzg7oY

--HG--
extra : rebase_source : b83cd03b0026c73d0293ef937a3c2544349f464d
2017-08-28 14:10:35 +08:00
Karl Tomlinson 2ebded1547 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 : b6a7191357c64888455ee111f02da75f208d2df7
2017-08-17 13:28:25 +12:00
Karl Tomlinson 5de6db32a5 bug 1391482 generalize WebAudioDecodeJob buffer as AudioChunk r=padenot
MozReview-Commit-ID: 4H3F0SzAknc

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

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

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

--HG--
extra : rebase_source : 457919cd769d20f193c64140f7b63fb08e715949
2017-08-16 17:45:48 +12:00
Karl Tomlinson 1cd9d48de3 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 : 72283c49fd713d0aef3add0eae344da0733149a1
2017-08-16 17:38:43 +12:00
Karl Tomlinson 580aed4daa bug 1391482 accept int16_t sample buffers in ConvolverNode r=padenot
MozReview-Commit-ID: LvYkiSvhQdP

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

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

--HG--
extra : rebase_source : 38c0e3765770fd08b94a22e144f604e416661eef
2017-08-10 17:49:38 +12:00
Karl Tomlinson da0bcd087f 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 : 00ffc0a357ec248641063e77dbe63e8d2a4a0911
2017-08-10 20:26:20 +12:00
Karl Tomlinson 1db308ff4d 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 : 9deb1f929b1cbba507be21b16a9e95f1a18d9bba
2017-08-10 21:03:59 +12:00
Karl Tomlinson aa8c1ad575 bug 1391482 add a fallible SharedBuffer::Create() r=padenot
MozReview-Commit-ID: HZGjSKnV8I2

--HG--
extra : rebase_source : e12b4912392803b37c8ae7648cb1e0e76b2f78d8
2017-08-11 10:57:04 +12:00
Karl Tomlinson a372b3e655 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
Karl Tomlinson 18eaddeade bug 1391482 add a mechanism to pass an AudioChunk from node to engine r=padenot
MozReview-Commit-ID: Akfy9xDKzXg

--HG--
extra : rebase_source : 97830e6e2b134c049439c3a0ed5f2684df1f7ee5
2017-08-01 20:04:56 +12:00
Karl Tomlinson 964d9e565d bug 1391482 use AudioChunk to generalize AudioBuffer shared channel storage r=padenot
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, buffers with 16-bit data will be permitted
in a future patch.

MozReview-Commit-ID: FEGKMiQOCpR

--HG--
extra : rebase_source : 29680252fac272feda26ba65dd1ca86e0e9d5883
2017-08-03 17:58:23 +12:00
Tom Ritter ae930caa79 Bug 1393535 Fix unused variable warnings in dom/ r=cpearce
MozReview-Commit-ID: 1Ql20AHx1Jz

--HG--
extra : rebase_source : 21105b4fc70953ecdccd4c1e7fe9c9d5564795c4
2017-08-24 11:52:36 -05:00
Jean-Yves Avenard 5b2fae07c7 Bug 1332234 - P1. Add support for AMD's VP9 hardware decoder. r=cpearce
This enables VP9 decoding on Windows with AMD graphic adapters supporting it.
The AMD VP9 MFT only works 720 and more pixels high.

The system will attempt the following decoding configuration:
1- AMD VP9 MFT
2- Microsoft VP9 MFT (only if DXVA is enabled)
3- FFmpeg ffvp9 software decoder

MozReview-Commit-ID: IP2eHZEQ7Tj

--HG--
extra : rebase_source : 6d193aa8b9d22f8df5778c7e62f66c30e9dc600c
2017-08-04 18:33:20 +02:00
Chris Pearce 17d154d1f6 Bug 1392485 - Fixup nits. r=bobowen
MozReview-Commit-ID: HdqUCcV3z0p

--HG--
extra : rebase_source : 741876acea568825731579936697b50b5ad4be48
extra : amend_source : 92b0d5759fbb66e5747e41143e07e9cfa9594cc9
2017-08-25 22:28:16 +12:00
Sebastian Hengst de6f7dc3a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-25 13:21:40 +02:00
Chris Pearce 6c8aad0850 Bug 1392485 - Hook QueryDosDeviceW() in GMP process so it works inside the sandbox. r=bobowen
MozReview-Commit-ID: JKRiKCd7Ibn

--HG--
extra : source : e20dc9d1df72189e83c2961674aaaccba378697c
2017-08-23 10:56:41 +12:00
Bryce Van Dyk 38681499ef Bug 1368490 - Add crashtest for media recorder when reducing number of source stream channels. r=jesup
MozReview-Commit-ID: Fi5h2ESokBV

--HG--
extra : source : 6a3f54a2a0f6594f978edb2b2623c0047dbe6d19
extra : amend_source : 8575007fdb0fcb9e8c7b3455144cf7b9765bffbb
2017-05-31 08:58:06 +12:00
JW Wang 448e22c303 Bug 1392178 - move MediaResource::CachedReadAt to MediaResourceIndex. r=gerald
MozReview-Commit-ID: LnAXXaRQ4C

--HG--
extra : rebase_source : cc041eeb94807b4e235ca2b827d4db13f1410e09
extra : intermediate-source : fd1bff4bb32ae8cefd909d709d28a229e35fa110
extra : source : 677ede60ac88260d779502d25102c7a66bf0d65c
2017-08-21 14:33:38 +08:00
JW Wang 2834911596 Bug 1391170 - lessen the assertion in AddMediaElementToURITable() so we can move MediaDecoder::GetResource() to private. r=gerald
If AddMediaElementToURITable() is called after the decoder Load failed, mDecoder
will be reset and it is sufficient to assert mDecoder only.

MozReview-Commit-ID: 58WT8zFeiFj

--HG--
extra : rebase_source : 712579b544e9a9ce971778b85795d06e58bd4ea5
extra : intermediate-source : 470e2d8a20010e11d7a7dce5540957e89439811e
extra : source : 59f4b2b33212794aa1cf3e8782737a2d4af8c241
2017-08-17 15:41:22 +08:00
Kaku Kuo d824321d11 Bug 1388309 - let VideoDecoderChild::InitIPDL() return false if we don't want to decode video on GPU process; r=mattwoodrow
MozReview-Commit-ID: DD7xVkXT6fk

--HG--
extra : rebase_source : 0db172786e24d358640112e6a3461e8308103665
extra : intermediate-source : ce7e905e0ef5fdbc584c1e63cc6b62df9d566ec4
extra : source : 546c8abe515b4fc887d355c165643862346aff78
2017-08-14 18:03:12 +08:00
JW Wang 41cd273f4e Bug 1391142. P3 - remove IsLiveStream() from MediaResource. r=gerald
MozReview-Commit-ID: DBFrYfj2lGB

--HG--
extra : rebase_source : 18532f55f38c5ac54660c11f078741e09273a30a
extra : source : 0e45bca0cdc0b2428216e6c9a55f8651e5b21017
2017-08-17 15:20:40 +08:00
JW Wang b8ff3673d9 Bug 1391142. P2 - remove MDSM::mResource and related functions. r=gerald
MozReview-Commit-ID: 4od7b8YNrMh

--HG--
extra : rebase_source : 2a471cc2e8049f98e65b96af626a00de4e4919f4
extra : source : a8dd8625a688555448cdc4c5429a23278e3e21c4
2017-08-17 11:52:29 +08:00
JW Wang b5f3c097c3 Bug 1391142. P1 - dispatch IsLiveStream changes from MediaDecoder to MDSM. r=gerald
This allows us to remove the dependency on MediaResource from MDSM in P2.

MozReview-Commit-ID: I46fWXfnGQK

--HG--
extra : rebase_source : 4808c7218d8c48c7425da16fadf4fd748cb2932f
extra : source : 10ac012e4c252438db1f64bb57dff181aff42a65
2017-08-17 11:48:08 +08:00
Wes Kocher 91f1f19054 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IMdYxijQ9ie
2017-08-21 17:20:06 -07:00
Wes Kocher 88c4efea2a Merge inbound to m-c a=merge
MozReview-Commit-ID: 7PZEeFIzle5
2017-08-21 16:39:56 -07:00
Sebastian Hengst 02a34cdd40 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-21 13:43:53 +02:00
Paul Adenot a202254933 Bug 1388243 - r=jesup
MozReview-Commit-ID: Jexghw0QFrB

--HG--
extra : amend_source : 624073ea6dc7c13728945a0feebf10f891c33174
2017-08-21 11:56:13 +01:00
Nicholas Hurley d4f64ba24e Bug 1391467 - Remove --enable-necko-protocols. r=gps,valentin
This patch removes the ability to select which protocols you want
included in necko, a wholly untested configuration that is broken in
practice. We have no need of this kind of configurability in necko.

In addition, this removes the final vestiges of rtsp support, which was
originally removed in bug 1295885 but still had some stuff hanging
around behind some ifdefs (that were never true).

MozReview-Commit-ID: KOEaDmit2IL

--HG--
extra : rebase_source : f6c2fdb972aaba46e922cda801252dc953550b94
2017-08-17 17:30:57 -07:00
JW Wang 9bfb2b1c06 Bug 1390443. P2 - remove unused IsExpectingMoreData(). r=cpearce
MozReview-Commit-ID: KTxmjIrD1WB

--HG--
extra : rebase_source : 8c1fc9b4da08290f7a177ef60793c831b0cc7a25
extra : intermediate-source : a86b94e4bdc04bae34f6e8966dfe9b5e11f98677
extra : source : 498e2844d2d0d1cee087552f5aaf5aac7e34c3bf
2017-08-16 15:37:29 +08:00
JW Wang 6ce3e3224c Bug 1390443. P1 - don't change nextFrameStatus when MDSM reaches the end of playback. r=cpearce
Instead, MediaDecoder::NextFrameStatus() checks IsEnded() and returns
NEXT_FRAME_UNAVAILABLE to ensure we have HAVE_CURRENT_DATA when playback
is ended on the main thread.

This will fix the timing issue (comment 0) which causes 'waiting' to fire.

MozReview-Commit-ID: 7O21x2q0lb8

--HG--
extra : rebase_source : bbd898edfb5f4a47a5062dd2bc916c911caf0c8e
extra : intermediate-source : 2b3e413db02a7aad00d13fdf274b346bccafc414
extra : source : 6f60fad11b65e75b456e128f8414fe2ea545455f
2017-08-16 15:33:58 +08:00
Wes Kocher c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm 9732475fe0 Bug 1389598 - Part 3: Remove gonk references from dom/ r=bkelly
--HG--
extra : rebase_source : 94a2b34b21cfde0c0ebda1045e9d30c6b88a1557
2017-08-11 17:42:11 -07:00
Chris Pearce bb04014877 Bug 1391469 - Remove unused SimpleImageBuffer. r=rbarker
MozReview-Commit-ID: 8lil5UYlPNN

--HG--
extra : rebase_source : 72f7b959bad2779ff5511e2ca830787ce7487bf8
2017-08-18 11:43:50 +12:00
Wes Kocher c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
Sebastian Hengst 2b4455ab3b Backed out changeset e9e36f27b698 (bug 1374164) for failing e.g. mda's test_getUserMedia_mediaElementCapture_tracks.html and browser-chrome's browser_devices_get_user_media_unprompted_access.js. r=backout
MozReview-Commit-ID: LEOMm0nytXd

--HG--
extra : source : 806d980dba310e653175973bd7f7e1c31b73c2d1
2017-08-17 23:24:56 +02:00
Chris Pearce 38854683c2 Bug 1390748 - Remove unnecessary includes in *Decoders. r=jwwang
MozReview-Commit-ID: 3bfAdpopOfp

--HG--
extra : rebase_source : c9b0a0991d731b38d3f077f90cd4f79b6470fe38
2017-08-16 17:19:39 +12:00
Chris Pearce 344a04e025 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : b2e3f66a20f431b8a2b0dc88b65dd5da9433da2f
2017-08-16 17:18:39 +12:00
Chris Pearce 09b9dbe471 Bug 1390748 - Remove ChannelMediaDecoder::CloneImpl() and remove subclasses of ChannelMediaDecoder. r=jwwang
MozReview-Commit-ID: 6nlBArYgwEJ

--HG--
extra : rebase_source : 5a87dfe0d77fc23d36a4f57452322c39d720698c
2017-08-15 17:52:17 +12:00
Chris Pearce 48645410e3 Bug 1390748 - Create DecoderTraits::IsSupportedType(const MediaContainerType&). r=jwwang
Most ChannelMediaDecoder::CloneImpl() functions just check to see whether
their "is enabled" pref is still true, and then clone their true type.

If we had a function to check whether the decoder for an arbitrary type
was still enabled, we'd not need the "is enabled" checks in the CloneImpl()
implementations. We'd then have removed the last custom behaviour in the
ChannelMediaDecoder subclasses.


MozReview-Commit-ID: D7kW6kb6ztW

--HG--
extra : rebase_source : 88f259ea0245a4405897959d5c115b0b79dc45e2
2017-08-15 17:38:16 +12:00
Chris Pearce fcd4613526 Bug 1390748 - Pre-declare MediaDecoder in HTMLMediaElement. r=jwwang
I noticed that touching MediaDecoder rebuilds a lot of seemingly unrelated
code. This is because HTMLMediaElement includes MediaDecoder.h, and
HTMLMediaElement is included in a number of places. Having HTMLMediaElement.h
predeclare rather than include fixes it.

MozReview-Commit-ID: I0vrPgqvvge

--HG--
extra : rebase_source : 505f9dce979aad0529b07d2c046dca5028af6de6
2017-08-15 17:09:06 +12:00
Chris Pearce 185ab4fc70 Bug 1390748 - Create default MediaDecoder::GetMozDebugReaderData() implementation. r=jwwang
We have three implementations, in the MP4, WebM and MediaSource decoders.  The
WebM and MP4 are the same. Ogg and other decoders don't have an implementation,
but if we create a default implementation in MediaDecoder, they'll get it for
free. MediaSourceDecoder needs a custom override still.

MozReview-Commit-ID: AXxn2Xhn0Jn

--HG--
extra : rebase_source : 83d0facbe26f8385c7163dc85d5512e7a43e80f4
2017-08-15 17:07:13 +12:00
Chris Pearce 0443bef16a Bug 1390748 - Remove unnececssary 'public:' in MediaDecoder.h. r=jwwang
There's an existing 'public:' further up.


MozReview-Commit-ID: 7CMmpVkZ7oz

--HG--
extra : rebase_source : e402ec2efd081c8acee3f46925e167323494377e
2017-08-15 16:38:05 +12:00
Chris Pearce 7bf74ce2b5 Bug 1390748 - Make MediaDecoder::CreateStateMachine() non-virtual. r=jwwang
MediaDecoder::CreateStateMachine is only virtual so that Ogg can attach
the reader's metadata/seekable produces to its chaining event.

The MediaSourceDecoder also overrides CreateStateMachine(), but it's not
called by anything external, so its implementation doesn't actually need
to be virtual.

MozReview-Commit-ID: 2x6bpK6Fdzd

--HG--
extra : rebase_source : 5a9932bf98992e13ba850dd640d2623ad8bcccbb
2017-08-15 16:37:00 +12:00
Chris Pearce 502cbde454 Bug 1390748 - Remove OggDecoder::CreateStateMachine(). r=jwwang
MozReview-Commit-ID: 2JgZ2Ppv6as

--HG--
extra : rebase_source : 5ce2fe9136dcd32f62f7de0e85523cdcda8fa206
2017-08-15 16:21:35 +12:00
James Cheng 10d6dbd3e6 Bug 1390453 - Don't call VerifyCdmHost_0 in non-official builds. r=cpearce
MozReview-Commit-ID: 3rzMDq0upBm
2017-08-17 14:41:54 -04:00
Randell Jesup 8914671bb9 Bug 1374164: Clear mImageContainer as well as mImage when stopping a gUM stream r=jib 2017-08-17 13:54:06 -04:00
Alastor Wu d5273690a3 Bug 1388660 - part1 : AudioData::IsAudible() should return false when its data is super small and near to zero. r=jwwang
When the value of data is too small to be heard, AudioData::IsAudible() should return false so that we won't show the sound indicator for silent media.

In this case, the loudness of reported video is -673 dBFS, it's impossible to be heard.

MozReview-Commit-ID: Ewiko7RpkeX

--HG--
extra : rebase_source : 692e1af570648546deabc3fe4ae4c4b36bf8f356
2017-08-17 11:02:11 +08:00
Carsten "Tomcat" Book c6627dee5c Backed out changeset 57be2e971ae2 (bug 1390748) for bustage
--HG--
extra : rebase_source : d698de5ec05677e010c0a47f27a1753c40acb90d
2017-08-17 08:37:17 +02:00
Carsten "Tomcat" Book fd8d71864f Backed out changeset b86afd45a710 (bug 1390748)
--HG--
extra : rebase_source : 3567c5675e1506f5c46ffbe626f5f128118cf4c7
2017-08-17 08:35:38 +02:00
Carsten "Tomcat" Book 9619955a2f Backed out changeset ad5c7eb1bfe1 (bug 1390748)
--HG--
extra : rebase_source : 8aaefbb511c4e003a68fe2cf57541d8c3d2d29f2
2017-08-17 08:35:36 +02:00
Carsten "Tomcat" Book bb63604dba Backed out changeset 2964dba33ef8 (bug 1390748)
--HG--
extra : rebase_source : f42c1924d26ca39d2fbe926055f53ff92bb25b69
2017-08-17 08:35:33 +02:00
Carsten "Tomcat" Book 2b8080e2fc Backed out changeset 4a31e4302e03 (bug 1390748)
--HG--
extra : rebase_source : 9571466ebc151a9788a380008c5d8941e3e24665
2017-08-17 08:35:30 +02:00
Carsten "Tomcat" Book d559b237c9 Backed out changeset 94c0ec4bf19e (bug 1390748)
--HG--
extra : rebase_source : 2bdfa0f8d9829b6501a068f3c3d046ae4835503c
2017-08-17 08:35:28 +02:00
Carsten "Tomcat" Book cdf7a88921 Backed out changeset d3c000525403 (bug 1390748)
--HG--
extra : rebase_source : e8fcead7d669d02c1696a522777c83e4b0def623
2017-08-17 08:35:25 +02:00
Carsten "Tomcat" Book a16900ac51 Backed out changeset 9172b8d6ce3e (bug 1390748)
--HG--
extra : rebase_source : 44c2361c7247fe7d1948ff3e7f47f165e8368483
2017-08-17 08:35:23 +02:00
Carsten "Tomcat" Book ce6b956372 Backed out changeset 3f9350bf23ff (bug 1390748)
--HG--
extra : rebase_source : 8f8f504428a69d6f91f86fa7bf944402180a6d82
2017-08-17 08:35:20 +02:00
Chris Pearce 343a77339a Bug 1390748 - Remove unnecessary includes in *Decoders. r=jwwang
MozReview-Commit-ID: 3bfAdpopOfp

--HG--
extra : rebase_source : 4a1c9d156c48140196aef219552b1982ad1161d0
2017-08-16 17:19:39 +12:00
Chris Pearce bd4996facd Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 0f2ff9241c643d49c8293bdbfb4ec6adb1e2cd30
2017-08-16 17:18:39 +12:00
Chris Pearce 51800b3d2a Bug 1390748 - Remove ChannelMediaDecoder::CloneImpl() and remove subclasses of ChannelMediaDecoder. r=jwwang
MozReview-Commit-ID: 6nlBArYgwEJ

--HG--
extra : rebase_source : eb7a6fedf7b118e951e5f701b2c9f54459b3f3f0
2017-08-15 17:52:17 +12:00
Chris Pearce 371cb3e4c4 Bug 1390748 - Create DecoderTraits::IsSupportedType(const MediaContainerType&). r=jwwang
Most ChannelMediaDecoder::CloneImpl() functions just check to see whether
their "is enabled" pref is still true, and then clone their true type.

If we had a function to check whether the decoder for an arbitrary type
was still enabled, we'd not need the "is enabled" checks in the CloneImpl()
implementations. We'd then have removed the last custom behaviour in the
ChannelMediaDecoder subclasses.


MozReview-Commit-ID: D7kW6kb6ztW

--HG--
extra : rebase_source : 88f259ea0245a4405897959d5c115b0b79dc45e2
2017-08-15 17:38:16 +12:00
Chris Pearce 60751f0b79 Bug 1390748 - Pre-declare MediaDecoder in HTMLMediaElement. r=jwwang
I noticed that touching MediaDecoder rebuilds a lot of seemingly unrelated
code. This is because HTMLMediaElement includes MediaDecoder.h, and
HTMLMediaElement is included in a number of places. Having HTMLMediaElement.h
predeclare rather than include fixes it.

MozReview-Commit-ID: I0vrPgqvvge

--HG--
extra : rebase_source : 505f9dce979aad0529b07d2c046dca5028af6de6
2017-08-15 17:09:06 +12:00
Chris Pearce 2e91854fcd Bug 1390748 - Create default MediaDecoder::GetMozDebugReaderData() implementation. r=jwwang
We have three implementations, in the MP4, WebM and MediaSource decoders.  The
WebM and MP4 are the same. Ogg and other decoders don't have an implementation,
but if we create a default implementation in MediaDecoder, they'll get it for
free. MediaSourceDecoder needs a custom override still.

MozReview-Commit-ID: AXxn2Xhn0Jn

--HG--
extra : rebase_source : 83d0facbe26f8385c7163dc85d5512e7a43e80f4
2017-08-15 17:07:13 +12:00
Chris Pearce 0349590c2f Bug 1390748 - Remove unnececssary 'public:' in MediaDecoder.h. r=jwwang
There's an existing 'public:' further up.


MozReview-Commit-ID: 7CMmpVkZ7oz

--HG--
extra : rebase_source : e402ec2efd081c8acee3f46925e167323494377e
2017-08-15 16:38:05 +12:00
Chris Pearce 622ee050c8 Bug 1390748 - Make MediaDecoder::CreateStateMachine() non-virtual. r=jwwang
MediaDecoder::CreateStateMachine is only virtual so that Ogg can attach
the reader's metadata/seekable produces to its chaining event.

The MediaSourceDecoder also overrides CreateStateMachine(), but it's not
called by anything external, so its implementation doesn't actually need
to be virtual.

MozReview-Commit-ID: 2x6bpK6Fdzd

--HG--
extra : rebase_source : 5a9932bf98992e13ba850dd640d2623ad8bcccbb
2017-08-15 16:37:00 +12:00
Chris Pearce e238ff328d Bug 1390748 - Remove OggDecoder::CreateStateMachine(). r=jwwang
MozReview-Commit-ID: 2JgZ2Ppv6as

--HG--
extra : rebase_source : 5ce2fe9136dcd32f62f7de0e85523cdcda8fa206
2017-08-15 16:21:35 +12:00
Phil Ringnalda 38ce1ea2a0 Backed out 10 changesets (bug 1390748) for build bustage
Backed out changeset 02b36ee5fb17 (bug 1390748)
Backed out changeset 84e8bf01c856 (bug 1390748)
Backed out changeset fc8989be30f3 (bug 1390748)
Backed out changeset 14d421ace6cc (bug 1390748)
Backed out changeset 7dadac869038 (bug 1390748)
Backed out changeset 0e77809e7bc2 (bug 1390748)
Backed out changeset bf78a8dce9c5 (bug 1390748)
Backed out changeset 5fa77990472e (bug 1390748)
Backed out changeset 5d3b637d2485 (bug 1390748)
Backed out changeset 634fe076d134 (bug 1390748)

MozReview-Commit-ID: Dxio8vXDCHg
2017-08-16 21:33:10 -07:00
Chris Pearce 162ce2ce95 Bug 1390748 - Remove unnecessary includes in *Decoders. r=jwwang
MozReview-Commit-ID: 3bfAdpopOfp

--HG--
extra : rebase_source : 0696df4f22dd261d245f905db2749ae3323460bc
2017-08-16 17:19:39 +12:00
Chris Pearce e927f10587 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 6661db3a00fc8b378aedd456950fb819f699507b
2017-08-16 17:18:39 +12:00
Chris Pearce d22c79dd24 Bug 1390748 - Remove ChannelMediaDecoder::CloneImpl() and remove subclasses of ChannelMediaDecoder. r=jwwang
MozReview-Commit-ID: 6nlBArYgwEJ

--HG--
extra : rebase_source : 5a669544b7a9c6f2d4d27a47c621c21b9317f789
2017-08-15 17:52:17 +12:00
Chris Pearce fa780c5329 Bug 1390748 - Create DecoderTraits::IsSupportedType(const MediaContainerType&). r=jwwang
Most ChannelMediaDecoder::CloneImpl() functions just check to see whether
their "is enabled" pref is still true, and then clone their true type.

If we had a function to check whether the decoder for an arbitrary type
was still enabled, we'd not need the "is enabled" checks in the CloneImpl()
implementations. We'd then have removed the last custom behaviour in the
ChannelMediaDecoder subclasses.


MozReview-Commit-ID: D7kW6kb6ztW

--HG--
extra : rebase_source : f463785d2975adceffd62037315d169736effbc0
2017-08-15 17:38:16 +12:00
Chris Pearce a0917579b4 Bug 1390748 - Pre-declare MediaDecoder in HTMLMediaElement. r=jwwang
I noticed that touching MediaDecoder rebuilds a lot of seemingly unrelated
code. This is because HTMLMediaElement includes MediaDecoder.h, and
HTMLMediaElement is included in a number of places. Having HTMLMediaElement.h
predeclare rather than include fixes it.

MozReview-Commit-ID: I0vrPgqvvge

--HG--
extra : rebase_source : 366d4e34e9c425b478b4c9058e27c9a32de36515
2017-08-15 17:09:06 +12:00
Chris Pearce ba9eb9c3bb Bug 1390748 - Create default MediaDecoder::GetMozDebugReaderData() implementation. r=jwwang
We have three implementations, in the MP4, WebM and MediaSource decoders.  The
WebM and MP4 are the same. Ogg and other decoders don't have an implementation,
but if we create a default implementation in MediaDecoder, they'll get it for
free. MediaSourceDecoder needs a custom override still.

MozReview-Commit-ID: AXxn2Xhn0Jn

--HG--
extra : rebase_source : 63513ce3b01546142357182f21fce56932b32f7f
2017-08-15 17:07:13 +12:00
Chris Pearce 68ebdda193 Bug 1390748 - Remove unnececssary 'public:' in MediaDecoder.h. r=jwwang
There's an existing 'public:' further up.


MozReview-Commit-ID: 7CMmpVkZ7oz

--HG--
extra : rebase_source : ff3f35eed59ec37adfa78528e77b80ea06fb876d
2017-08-15 16:38:05 +12:00
Chris Pearce 582456c0a6 Bug 1390748 - Make MediaDecoder::CreateStateMachine() non-virtual. r=jwwang
MediaDecoder::CreateStateMachine is only virtual so that Ogg can attach
the reader's metadata/seekable produces to its chaining event.

The MediaSourceDecoder also overrides CreateStateMachine(), but it's not
called by anything external, so its implementation doesn't actually need
to be virtual.

MozReview-Commit-ID: 2x6bpK6Fdzd

--HG--
extra : rebase_source : 01b4a59cba8ec64480779fb6849322841646ca3b
2017-08-15 16:37:00 +12:00
Chris Pearce 145246057b Bug 1390748 - Remove OggDecoder::CreateStateMachine(). r=jwwang
MozReview-Commit-ID: 2JgZ2Ppv6as

--HG--
extra : rebase_source : fac9fc0b3904061881bf161aee7223cd5b1d14b9
2017-08-15 16:21:35 +12:00
Chris Pearce f2902bdf82 Bug 1390406 - Remove unnecessary includes in dom/media/mediasource. r=jya
MozReview-Commit-ID: 1aTncGfBicu

--HG--
extra : rebase_source : 8ad085eb81d195732c385718c283b4752e5e3c80
2017-08-15 16:13:00 +12:00
Phil Ringnalda a81f7092c3 Merge m-c to autoland
MozReview-Commit-ID: 7eiDUrdOIoC
2017-08-16 21:05:21 -07:00
Phil Ringnalda 478ce5e764 Backed out changeset 6b3566842a84 (bug 1390453) for ASan permaorange in test_eme_canvas_blocked.html
MozReview-Commit-ID: 7kGuQ4YGPuj
2017-08-16 20:58:18 -07:00
Tom Prince ff1583cdb6 Bug 1385950 - Disable test_peerConnection_captureStream_canvas_webgl.html r=kwierso
MozReview-Commit-ID: 3L1v3Mjk29S
2017-08-16 18:30:44 -06:00
Bryce Van Dyk ae6127795a Bug 1371166 - Explicitly load videos via video.load to get a cross origin requests to take place. r=jib
Change where load calls are used in media recorder principals test to more
reliably force cross origin requests.

MozReview-Commit-ID: 7La6ZIRmsTQ

--HG--
extra : rebase_source : 58b8049de46ad5800300033dd4ee101e68171c70
2017-08-11 12:32:14 +12:00
James Cheng 5f81ad1954 Bug 1390453 - Don't call VerifyCdmHost_0 in non-official builds. r=cpearce
MozReview-Commit-ID: 3eM7pBs6Jr1
2017-08-16 07:28:14 -04:00
Carsten "Tomcat" Book eea1986e03 merge mozilla-inbound to mozilla-central a=merge 2017-08-16 11:23:24 +02:00
Wes Kocher be24aec8e9 Merge m-c to inbound a=merge
MozReview-Commit-ID: JqsSD85rE4W
2017-08-15 19:15:22 -07:00
Karl Tomlinson d0d5e37ae6 bug 1389641 add 'f' to literal initializer for float const r=trivial
Address MSVC build failures.

--HG--
extra : rebase_source : 46be974a5f1afe4ee4f41ec0c2367063347516ee
2017-08-16 12:32:32 +12:00
Karl Tomlinson 80d9b272ad bug 1389641 adjust ConvolverNode buffer normalization gain calibration to match spec r=padenot
This reduces the amplitude by about 0.7%.

MozReview-Commit-ID: 7vTNg2oUXEf

--HG--
extra : rebase_source : 4cff5189665396d427c7e6c842a9a002a1734ae5
2017-08-12 08:55:05 +12:00
Karl Tomlinson 5f85b81a36 bug 1024182 remove buffer copy for short impulse responses and so correct normalization scale r=padenot
Despite the comment, this was necessary only for a direct convolver stage,
which has been removed:
https://hg.mozilla.org/mozilla-central/rev/e66105937eef190dec073f1b9859e07a0272706b#l4.29

FFT convolver stages pad the buffer to the necessary length in
FFTBlock::PadAndMakeScaledDFT().

Trailing zeros in the impulse change the scale used in normalization
and so padding the buffer before calculating the scale led to the wrong scale
being used.
https://github.com/WebAudio/web-audio-api/issues/481

MozReview-Commit-ID: LqP1x1hmLOM

--HG--
extra : rebase_source : f902190c25a7b95594d8115e43cde91f0cf00146
2017-08-09 16:52:01 +12:00
Bryce Van Dyk 709f4631a2 Bug 1275856 - Expand MediaRecorder tests to check stack traces when MediaRecorderErrorEvent is fired. r=jib
MozReview-Commit-ID: 6NnaHt24ecz

--HG--
extra : rebase_source : 9c3f7281e0156869ea44eb52997b4a4a67442ec3
2017-08-09 19:55:54 +12:00
Bryce Van Dyk df6a8a21ac Bug 1275856 - Capture MediaRecorder DOMExceptions early in order to capture JS traces. r=jib
In order to expose the JS stack on aync exceptions from the MediaRecorder,
these exceptions must be created at the time of the operation which led to the
exception. E.g. during the start() operation. This changeset creates the
exceptions ahead of time in order to expose the JS stack traces.

MozReview-Commit-ID: HgDJrpjgidD

--HG--
extra : rebase_source : 1d208a848308c819a209f4b5c33e3563e83b9518
2017-08-07 09:49:24 +12:00
Bryce Van Dyk 7914380985 Bug 1275856- Update tests to reflect new MediaRecorderErrorEvent. r=jib
MediaRecorderErrorEvent is now fired in response to async errors in the
MediaRecorder. This event wraps a DOMException and tests need to be updated to
reflect this new behaviour.

MozReview-Commit-ID: JIjIZlJJ8PE

--HG--
extra : rebase_source : b8adde26f5321b5b8a3c8e193c5744d6f3403cf5
2017-07-28 09:04:11 +12:00
Bryce Van Dyk 9878ae061e Bug 1275856 - Fire MediaRecorderErrorEvent in media recorder. r=jib
The MediaRecorder is current not behaving as per the spec in regards to async
errors. The spec states that in such a scenario a MediaRecorderErrorEvent which
wraps a DOMException should be fired. This changeset updates the recorder to do
so.

MozReview-Commit-ID: xt4ipCmbiu

--HG--
extra : rebase_source : 50124e6c878438a84c8a440bf79e50b3b7da3998
2017-08-07 09:48:42 +12:00
Bryce Van Dyk 3d0715f83c Bug 1371166 - Drive by update to update var -> let in test. r=jib
MozReview-Commit-ID: TAP46fR2HP

--HG--
extra : rebase_source : cf18f0e784ddd3bddb80239a55d7aad2dd7548c7
2017-07-21 16:00:23 +12:00
Bryce Van Dyk 33b5a6112c Bug 1371166 - Update media recorder principal test to behave more like MediaElement principal test. r=jib
Update the MediaRecorder principal test to behave more like
test_mixed_principals.html. This involves preloading metadata and using a
longer video to test with. This particular combination currently results in
multiple requests being made for the resource, however this is not a robust
solution in that the behaviour of the MediaCache and associated objects may
change and break this. This fixes the issue for now as best I can tell, but
a follow up gtest or may be a more sensible long term solution.

MozReview-Commit-ID: F9gnnzGt3Cu

--HG--
extra : rebase_source : 8444f135033fbed350266ebfe5faafc245ff5596
2017-07-21 15:59:27 +12:00
James Cheng 4c094ae65d Bug 1390725 - Change the loading path of CDM host verification file on Mac. r=cpearce
The plugin-container sig file is located in another place.
Need to handle it as a special case.

MozReview-Commit-ID: 2e2gbM4CVDG

--HG--
extra : rebase_source : 26add2e4e68a919927b9500e7e391d7bb327ee81
2017-08-17 00:13:05 +08:00
James Cheng 3bef82d85a Bug 1390739 - Dispatch the task to main thread if the callback of CDM does not on main thread. r=cpearce
MozReview-Commit-ID: E5sjEKR4bRQ

--HG--
extra : rebase_source : dccaa55c721f6da82e1cb9f6702f8099f3f4c0a3
2017-08-16 13:36:08 +08:00
Wes Kocher 366445521c Merge m-c to autoland, a=merge
MozReview-Commit-ID: DjSlrmDFfe3
2017-08-16 17:14:41 -07:00
Karl Tomlinson d7e9aa7cc4 bug 1172979 use AutoTArray for AudioChunk::mChannelData to reduce allocations r=padenot
MozReview-Commit-ID: wabk0WlLv5

--HG--
extra : rebase_source : c7477c47a50c46ffdb3f3b10c9497eaec1bf02dd
2017-08-11 11:54:36 +12:00
Karl Tomlinson 107b30b800 bug 1172979 permit retrieving const channel data from const AudioChunk r=padenot
MozReview-Commit-ID: 8mP49nONMYI

--HG--
extra : rebase_source : 0d8ec2491772a0bc2710e1aa9b4adbff57958261
2017-08-10 17:03:15 +12:00
Karl Tomlinson 2cec449882 bug 1172979 correct mBufferIsDownstreamRef documentation r=padenot
MozReview-Commit-ID: B0imfszv4CA

--HG--
extra : rebase_source : d44c842c377f939f05a3ddf4153f59e90b271688
2017-08-10 16:55:05 +12:00
Jean-Yves Avenard f247f14f15 Bug 1389844 - P3. Handle case where currentTime isn't contained in buffered range. r=gerald
When playback starts, currentTime is always 0, and even if the buffered data doesn't contain currentTime it is possible for playback to progress as we always allow up to 500ms gap in the buffered data.

As such, we must use fuzzing on the interval's start time when determining if we have future data.

MozReview-Commit-ID: Ki9QxmKhfdY

--HG--
extra : rebase_source : b7a550348b61d96f91e73b171a5dd03b16a4c152
2017-08-16 19:35:27 +02:00
Jean-Yves Avenard a4b8d6b551 Bug 1389844 - P2. Add Intervals::ContainsWithStrictEnd method. r=gerald
MozReview-Commit-ID: JnIgYlmewUw

--HG--
extra : rebase_source : d2cf398da8f7bf33bfb763a6057670df408aa1ae
2017-08-16 19:30:45 +02:00
Jean-Yves Avenard cf6931a74f Bug 1389844 - P1. Add mochitest. r=gerald
Similar to test_PlayEventsAutoPlaying.html, but here we load 10s of data and ensure autoplaying kicks in.

MozReview-Commit-ID: ImpjFIcBIo1

--HG--
extra : rebase_source : c7d280eebeb6b3398176423b9e723696c9543c7f
2017-08-16 19:20:45 +02:00
Tom Ritter 8139fd025a Bug 1390617 Fix casing of d3d11.h to fix MinGW build r=jya
MozReview-Commit-ID: 8IHb4pYo77Y

--HG--
extra : rebase_source : f8c72eeaceb72f422016945001e72c551aec6e36
2017-08-15 15:14:25 -05:00
Carsten "Tomcat" Book a6ae5910bb Merge mozilla-central to autoland 2017-08-15 13:12:22 +02:00
Carsten "Tomcat" Book 6b36e00b7c merge mozilla-inbound to mozilla-central a=merge 2017-08-15 11:42:11 +02:00
JW Wang f8ee5803f8 Bug 1388669. P2 - also rewrite the entry condition of buffering state. r=gerald
For the same reason as P1, we check mCanPlayThrough instead of IsExpectingMoreData().

MozReview-Commit-ID: FZAcWyJmaK6

--HG--
extra : rebase_source : 41e0918fea8d0fad8d3709701f5d39199a42db47
extra : intermediate-source : 89042ba53de0ca4694ef5b201d50ffb643ab6d1a
extra : source : c747849a17e84e9c9fcf01604633e85364aa824a
2017-08-09 17:45:12 +08:00
JW Wang 26c5347e05 Bug 1388669. P1 - rewrite the exit condition of BufferingState::Step(). r=gerald
Note we don't check MediaResource::IsLiveStream/IsExpectingMoreData()
for they should be included in the CanPlayThrough condition. This allows
us to remove some methods from MediaResource.

MozReview-Commit-ID: JtmRg9VeqGv

--HG--
extra : rebase_source : 5bd77047e6413af1b88776fea74eca6bc6f1c3cf
extra : intermediate-source : 9557cc7e094367075bd262e4eac8454e610c8f8b
extra : source : 514014bfc85a79590bbc2bd5a8101162637708cc
2017-08-09 17:20:53 +08:00
Karl Tomlinson 4303242be5 bug 1389638 use correct input elements for summing squares of trailing unaligned input r=dminor
MozReview-Commit-ID: HlxEBWsFQuU

--HG--
extra : rebase_source : 6662066cc4b7f1dd8cdd4396fc71e89fd60d26b9
2017-08-11 23:42:46 +12:00
Karl Tomlinson ac181b2f95 bug 1389638 include leading unaligned AudioBufferSumOfSquares input in length count and check for end of buffer r=dminor
If there were leading unaligned input elements, then excluding them from the
length count would have led to reading elements beyond the indicated array
length and summing too many squares.  In practice, there were no known cases
with leading unaligned input.

This patch also fixes the calculation for the length of the array for
AudioBufferSumOfSquares_SSE().  Previously this length was based on rounding
down the total input array length.  The result could be too long if there were
both leading and trailing unaligned input.  The length for
AudioBufferSumOfSquares_SSE is now calculated by rounding down the number of
remaining input array elements after leading unaligned elements are excluded.

MozReview-Commit-ID: FFz5RoqUtN0

--HG--
extra : rebase_source : e4ec3d321cbf20dba0d4a91676f52f8308212043
2017-08-11 23:25:56 +12:00
Karl Tomlinson cae575ab59 bug 1389638 declare length of array for AudioBufferSumOfSquares_SSE as an integral type r=dminor
MozReview-Commit-ID: CRXad6Fm9HC

--HG--
extra : rebase_source : 5b33e4cd7fa337bb46e47c6f147ab92a405def43
2017-08-11 23:33:45 +12:00
Milan Sreckovic 8ad3e52a49 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in dom/*. r=overholt
MozReview-Commit-ID: B9YWmM3C1oX

--HG--
extra : rebase_source : d7c27de968295ee13ece8bda23798cb215d60a4b
2017-08-14 08:30:10 -04:00
Chris Pearce 5fdb826497 Bug 1388668 - Replace NS_DispatchToCurrentThread call with AbstractThread dispatch. r=padenot
We should be dispatching this event to a tab group so that it can be
associated with it.


MozReview-Commit-ID: FcEQD7cN2Xj

--HG--
extra : rebase_source : fbe7c17439a9434ac1c4702f0dd21e8424a7f0c7
2017-08-09 17:02:52 +08:00
Wes Kocher 7a772df5bf Merge m-c to inbound, a=merge
MozReview-Commit-ID: BYZASFIrXxp
2017-08-14 17:58:17 -07:00
Randell Jesup 517c688524 Bug 1374164: guarantee mImage is released by video sources before final-cc shutdown r=padenot,jib 2017-08-14 10:53:11 -04:00
Sebastian Hengst 56c035fa36 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Geoff Brown 1eceaf8aa5 Bug 1377450 - Disable test test_getUserMedia_addTrackRemoveTrack.html for frequent intermittent failures; r=me,test-only 2017-08-11 14:30:31 -06:00
Wes Kocher 5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Masatoshi Kimura dec070e4cf Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx

--HG--
extra : rebase_source : 64e1a47c9366a970f20ec459dde9b379a207e802
2017-08-07 02:28:52 +09:00
Wes Kocher cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Wes Kocher 47df5726ac Backed out 6 changesets (bug 1275856) for failures in test_interfaces.html and test_all_synthetic_events.html a=backout
Backed out changeset d229d269ac55 (bug 1275856)
Backed out changeset 2fb8d23f1ece (bug 1275856)
Backed out changeset 210e8d6d5f85 (bug 1275856)
Backed out changeset 38739c5a3ae8 (bug 1275856)
Backed out changeset 1c8e6dd99100 (bug 1275856)
Backed out changeset 407dc5f8de5b (bug 1275856)

MozReview-Commit-ID: CeTwTrzfY2P
2017-08-10 16:32:12 -07:00
Sebastian Hengst 51d351f567 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-10 17:41:11 +02:00
Sebastian Hengst 7f85daeb2a Backed out changeset e9985564e081 (bug 1388162) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout 2017-08-10 14:40:20 +02:00
James Cheng ad74bc6fbc Bug 1388633 - Relax the duration constrain due to the duration may be changed in runtime. r=alwu
The original duration I wrote is calculated from the m3u8 file this is too accurate without error tolerant.
The state machine will update playback position periodically(UpdatePlaybackPositionPeriodically)
according to the clockTime or max end time from A/Vsink.
So the duration will be variant that I should consider to set the value to a more relaxed value.
MozReview-Commit-ID: GGwkhvzz8sI

--HG--
extra : rebase_source : c0465f7aef7a41e999e8c4c3429957fa56336239
2017-08-10 14:59:25 +08:00
Sebastian Hengst b0dd142237 Backed out changeset be8e60de5c0c (bug 1388656) for heap buffer overflow at AudioNodeEngine.cpp:375:12 in mozilla::AudioBufferSumOfSquares. r=backout 2017-08-10 11:18:36 +02:00
Sebastian Hengst 290327d0fb Backed out changeset 1eb9ee70ccf1 (bug 1388656) 2017-08-10 11:17:18 +02:00
Sebastian Hengst 69e0a8b3f7 Backed out changeset ece4f9694407 (bug 1388656) 2017-08-10 11:17:13 +02:00
Sebastian Hengst 64aa1882b5 Backed out changeset af73f36f7469 (bug 1388656) 2017-08-10 11:17:07 +02:00
Sebastian Hengst b461ae5e9b Backed out changeset f03833f24817 (bug 1024182) for heap buffer overflow at AudioNodeEngine.cpp:375:12 in mozilla::AudioBufferSumOfSquares. r=backout 2017-08-10 11:16:27 +02:00