Commit Graph

9442 Commits

Author SHA1 Message Date
JW Wang
ffe2db6667 Bug 1321198 - this is a debugging patch which crashes when test_seek* time out to get the stack trace about what's stuck. r=jya
MozReview-Commit-ID: L7Q3Fyapkzf

--HG--
extra : rebase_source : 7738d13e5ab6e72b89f18423ae056dcccb485f6c
2017-01-11 11:15:24 +08:00
JW Wang
bc485dd0e2 Bug 1330238 - remove the calls to requestLongerTimeout() and expectAssertions(). r=jya
1. requestLongerTimeout() is not needed because we don't have slow machines as B2G anymore.
2. Bug 634747 and 846769 are already fixed.

MozReview-Commit-ID: JbKtxHLdr8I

--HG--
extra : rebase_source : 7603c61637b8b142c8013bb8f431a49a93fac0c1
2017-01-11 11:01:28 +08:00
Ralph Giles
d5608e0a47 Bug 1277037 - Make AudioCallbackDriver::StartStream fallible. r=jesup
Avoid crashing in the case that cubeb stream start fails and report
an error instead.

MozReview-Commit-ID: 75M392POyHo

--HG--
extra : rebase_source : 2c083cf129f12ad1e18d9065152cfee13987b071
2017-01-11 11:51:23 -08:00
Nico Grunbaum
526e90ef9f Bug 1329762 - stronger deprecation warnings on old PeerConnection.getStats usage. r=jib
MozReview-Commit-ID: 4M8AejNGWex

--HG--
extra : rebase_source : abca62e857e11f640108dbf254baf7b21df7d207
2017-01-09 12:44:22 -08:00
Carsten "Tomcat" Book
c9889851e8 Merge mozilla-central to autoland 2017-01-09 10:45:10 +01:00
Randell Jesup
3fa45d2f9b Bug 1326311: Avoid races in destroying MediaRecorder sessions - destroy on MainThread r=jib
MozReview-Commit-ID: 3DA4HxUuzje
2017-01-08 22:08:09 -05:00
pierre.brochard.1982@m4x.org
f3a18dbce1 Bug 1326311: Fix thread and Track listener leaks starting and stopping MediaRecorder r=jesup
MozReview-Commit-ID: 3q6RgA4Ehtc
2017-01-08 22:06:28 -05:00
JW Wang
61f01c2630 Bug 1329098. Part 5 - remove unnecessary checks and temps. r=kaku
For mSentFirstFrameLoadedEvent is true in DecodingState.

MozReview-Commit-ID: 8zpsMAME8p6

--HG--
extra : rebase_source : fea2a795481628b5bd7eaf841fcf6a8bc377fbbc
extra : source : d54b4f06b497408a0225d708bc749101d778ca4f
2017-01-06 15:49:02 +08:00
JW Wang
5c3ba7d181 Bug 1329098. Part 4 - move DispatchDecodeTasksIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: LT9xNdTAtOW

--HG--
extra : rebase_source : faf2d7dac84374d47a6d2e210881d0355cbd86f5
extra : source : f681710dc58aac1053d06adaeb1865fceeabde23
2017-01-06 15:43:31 +08:00
JW Wang
75547a6b1d Bug 1329098. Part 3 - remove some temp vairables. r=kaku
MozReview-Commit-ID: 3gz79Tzidtf

--HG--
extra : rebase_source : 76ebb3752e71883cbdc7df916453792bff6a0bb0
extra : source : a63557c857d9ca8cfd1280c986a5d2f99f4e7668
2017-01-06 15:36:38 +08:00
JW Wang
d683161210 Bug 1329098. Part 2 - remove unnecessary checks. r=kaku
1. mSentFirstFrameLoadedEvent is true in BufferingState.
2. mMinimizePreroll is false in BufferingState for buffering happens after playback starts and we reset mMinimizePreroll once playback starts.

MozReview-Commit-ID: ABE7TvNEetD

--HG--
extra : rebase_source : 53c507ff9cd8ea028c5ff7f8b5b8c049cb8a7ebf
extra : source : e87a70953f6eb8d4a9e31ab06ac73afcc90da923
2017-01-06 15:22:52 +08:00
JW Wang
664dfb82d2 Bug 1329098. Part 1 - copy DispatchDecodeTasksIfNeeded() into BufferingState. r=kaku
MozReview-Commit-ID: 2q8FhTFTJ6g

--HG--
extra : rebase_source : 989fb40a86b0358c8843082abc9ef2dea20e3a2d
extra : source : 13d0e5e6e1ddf5fff6a0b8a0da7a85e5694c5be7
2017-01-06 15:00:36 +08:00
JW Wang
1f9deb245d Bug 1329554. Part 2 - remove |mMaster->mMinimizePreroll| checks from BufferingState::Step(). r=kikuo
mMinimizePreroll is false in BufferingState because we enter buffering only
after playback starts.

MozReview-Commit-ID: 9vRuogzvV7x

--HG--
extra : rebase_source : f43eb5af15d6ae969a6269c7adf68780d9b3b659
extra : intermediate-source : 0dd36842a3ae6ad9b5421bbd277e9ee05ec2e110
extra : source : eae56fe516563a2675f0492c56c6a01b6f38149f
2017-01-05 18:13:54 +08:00
JW Wang
84f38029d4 Bug 1329554. Part 1 - let DecodingState decide whether to dispatch decoding tasks when mMinimizePreroll changes. r=kikuo
MozReview-Commit-ID: 6QnH2vOHid1

--HG--
extra : rebase_source : 2b5485539a22a8157fc826761199092ab099d0b8
extra : intermediate-source : 329b13f1aa7025f35450417c658bcacd2b42996a
extra : source : 160616eaabf48efac98868c767f704b98415d3b9
2017-01-05 18:12:06 +08:00
JW Wang
f4605f76d9 Bug 1328836 - Remove MDSM::DispatchMinimizePrerollUntilPlaybackStarts. r=kaku
MozReview-Commit-ID: 1EGHVhZqUTA

--HG--
extra : rebase_source : c90c245683c50364d869566540f47927e0f64d04
extra : intermediate-source : ceb0660e9f35a0dbbd361a4dc4eb6bcef8add385
extra : source : e1dfbdac70feedc99a950c00aeda683e38919247
2017-01-05 17:59:19 +08:00
Gerald Squelart
b3e89a3af9 Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.

MozReview-Commit-ID: BEtc3spK9Yh

--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
JW Wang
a2f0f971ab Bug 1328782. part 3 - remove the |VideoQueue().GetSize() > 0| check. r=kikuo
Since |GetAmpleVideoFrames() * mPlaybackRate + 1| is positive,
|VideoQueue().GetSize() >= GetAmpleVideoFrames() * mPlaybackRate + 1| must imply
|VideoQueue().GetSize() > 0|

MozReview-Commit-ID: 6cZ2XfUrmj

--HG--
extra : rebase_source : fc77e2cdebc4621fa68f94c6c3db81d4d921b851
2017-01-05 12:09:55 +08:00
JW Wang
e6bb1d40a3 Bug 1328782. part 2 - some more tweaks to the expression. r=kikuo
MozReview-Commit-ID: I1IcV88amob

--HG--
extra : rebase_source : a1be8f5496582c2117b3e30cd8010b769d970db7
2017-01-05 12:07:15 +08:00
JW Wang
dbaf1d1389 Bug 1328782. part 1 - some tweaks to the expression. r=kikuo
MozReview-Commit-ID: 3Mt1c7TrSYy

--HG--
extra : rebase_source : 75cc57e6b0fec9698e874846ad1670f31124685f
2017-01-04 17:37:34 +08:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Markus Stange
927eee33e9 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : b2a55afe65d9a68d1d20d08806cb016ce040d044
2016-12-21 23:06:56 +01:00
Markus Stange
942cdc08a8 Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : 6dee759440f94e63a82c43ec295b9a6e9c020d21
2016-12-21 23:06:45 +01:00
Markus Stange
692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
JW Wang
a9218bbb8e Bug 1328811. Part 4 - remove the |mState != DECODER_STATE_SEEKING| check. r=kaku
When mState is SEEKING, DispatchDecodeTasksIfNeeded() is a no-op.

MozReview-Commit-ID: 3sV6RdUwFBV

--HG--
extra : rebase_source : 12f01ab491b5f4326b08b44dd0789139db174d99
extra : source : 89cccddea7603912e264405040071ba0a98bf8de
2017-01-05 14:48:42 +08:00
JW Wang
0a36f808bc Bug 1328811. Part 3 - inline NeedToDecode{Audio,Video} for DispatchDecodeTasksIfNeeded is the only caller. r=kaku
MozReview-Commit-ID: H1K6LJCjk4B

--HG--
extra : rebase_source : 382293f2aa91a134b895458866cc590798d36edd
extra : source : c0971794c58515b498d93caeccf8d8932f48614f
2017-01-05 14:44:45 +08:00
JW Wang
38ceee4499 Bug 1328811. Part 2 - remove the comment that is not valid anymore. r=kaku
MozReview-Commit-ID: JxrBRtKPAau

--HG--
extra : rebase_source : d62438f5546a67bac9004c9dea74580e23b4dd62
extra : source : d0e189f19de690e1244ab22b922ff0b70fd55e60
2017-01-05 14:39:35 +08:00
JW Wang
ba927c6dfe Bug 1328811. Part 1 - remove the assertion. r=kaku
http://searchfox.org/mozilla-central/rev/82ebc0c5ea45477ef4a4bfb3bbff35069bd18cee/dom/media/MediaDecoderStateMachine.cpp#2980
The if statement ensures |mState != DECODER_STATE_COMPLETED|.

MozReview-Commit-ID: CyvfXj94E8s

--HG--
extra : rebase_source : 10007fda9e4c09647a7142b77415c332a69001b3
extra : source : 5936c72d33e155a2a942602b610e6d6407f9bef6
2017-01-05 14:38:52 +08:00
JW Wang
da1657f4f3 Bug 1328810 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::StopPlayback(). r=kaku
MozReview-Commit-ID: mZL1FJmea3

--HG--
extra : rebase_source : f1c22d86d60c4078e8c9bef389d0c6f3247154f0
extra : source : ab2eb5c6f2ba7de8be8e21b1a09a2c43efeffc62
2017-01-05 14:32:53 +08:00
Wes Kocher
0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
JW Wang
f6c88fe5f9 Bug 1328831 - Remove MDSM::DispatchAudioOffloading. r=jolin
MozReview-Commit-ID: JVJOpmUHNp6

--HG--
extra : rebase_source : 7bcca5c52938b9e429c1e1833500bd85b64dc229
2017-01-05 17:38:17 +08:00
JW Wang
12437440a3 Bug 1328547. part 3 - inline NeedToDecode{Audio,Video} and remove some checks. r=kaku
1. |mState != DECODER_STATE_SEEKING| is true in DecodingState.
2. mSentFirstFrameLoadedEvent is true in DecodingState.
3. mMinimizePreroll is false because pop events fire only after MDSM starts playing.

MozReview-Commit-ID: FTkXmtEnzY5

--HG--
extra : rebase_source : 30392be881ebdb96469189a584a57b89d60cc2b4
2017-01-04 17:23:28 +08:00
JW Wang
55f78f10f6 Bug 1328547. part 2 - remove checks for IsShutdown() which is false in DecodingState. r=kaku
MozReview-Commit-ID: CmU79bt4XoR

--HG--
extra : rebase_source : 4580449f41a23924d887ff4f1d28cecf0ed77ee9
2017-01-04 17:13:49 +08:00
JW Wang
7bbc498596 Bug 1328547. part 1 - Move MDSM::Dispatch{Audio,Video}DecodeTaskIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: I2gT77VHutm

--HG--
extra : rebase_source : 39daa2eb03b780cd44e8e461d90ea38c5f163394
2017-01-04 17:10:37 +08:00
JW Wang
7e82a51137 Bug 1328781. part 2 - don't convert a double to an int64_t to avoid rounding errors. r=kikuo
MozReview-Commit-ID: 83Zxqr4aiMa

--HG--
extra : rebase_source : baadaff80de366e2ed6a88b2a8bbfaaf54b66c9d
2017-01-05 11:50:20 +08:00
JW Wang
0077fc4f6c Bug 1328781. part 1 - somewhat rewrite the expression. r=kikuo
MozReview-Commit-ID: 5959ZdWKI4k

--HG--
extra : rebase_source : 927c0edda7ff9870c555830e3f022d26e588e258
2017-01-04 17:35:04 +08:00
JW Wang
1bc32335e9 Bug 1328541 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::MaybeStartPlayback(). r=kikuo
MozReview-Commit-ID: 9Qj01MSw4Ia

--HG--
extra : rebase_source : 5751a3f681f17656cca1bb28700a3a15ca96c6a6
2017-01-04 16:38:01 +08:00
JW Wang
8c79a1d34c Bug 1326294 - this is a debugging patch which checks if mOwner points to a valid media element object. r=gerald
MozReview-Commit-ID: HRUigVOLdx

--HG--
extra : rebase_source : d44b4315a34b60c1d1a6ba98730a938ed375a937
2017-01-04 16:18:37 +08:00
Carsten "Tomcat" Book
b4e6d275b7 merge mozilla-inbound to mozilla-central a=merge 2017-01-04 16:09:56 +01:00
JW Wang
b550988fa4 Bug 1326335 - Ensure MDSM only decodes metadata once. r=kaku
MozReview-Commit-ID: AqKbR6OuQ40

--HG--
extra : rebase_source : b8da9e4a47ae79b01ed6fc878f4232244c555aef
extra : intermediate-source : 3ce2a998b1abc4acac397b653c721f96d84452b1
extra : source : 94103894f26463ac8ab4a8a59957ccf4f79ebecf
2016-12-23 19:23:58 +08:00
Edgar Chen
68253477ee Bug 1328206 - Do not use binding_detail things in AudioContext, use Sequence instead; r=dminor 2017-01-03 11:54:37 +08:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Andreas Pehrson
4e5007c1c2 Bug 1314886 - Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset. r=jwwang
MozReview-Commit-ID: 1i5VIfCWWRy

--HG--
extra : rebase_source : 00e78dc0214557bd53b773e918a56de8a56e9682
2016-12-30 10:56:49 +01:00
JW Wang
dae2fad218 Bug 1325317. Part 2 - rename the function and fix comments. r=kikuo
MozReview-Commit-ID: 3GUkH5OpSmJ

--HG--
extra : rebase_source : 421c16cf75bde625b158571439fb9b4d29e8046f
extra : intermediate-source : 22b22702bafca7da4f12e3abdb08cabcf9eff20c
extra : source : e7b0f09a40bf5f148496470bb019c11dc5431856
2016-12-22 16:56:59 +08:00
JW Wang
7b71dd0944 Bug 1325317. Part 1 - move StopMediaSink() out of MediaDecoderStateMachine::Reset(). r=kikuo
MozReview-Commit-ID: 6Bso8uxM7Ee

--HG--
extra : rebase_source : e255128028e33b2aad3566f5a3a3a09a07ac2d68
extra : intermediate-source : a3be598566377928746b5e37800d788cdcab6942
extra : source : f46b24e31cbb07243ca74206bd2e05e99b070286
2016-12-22 16:48:54 +08:00
Jan-Ivar Bruaroey
0fb5c6dc68 Bug 1329193: Use es6 classes in PeerConnection.js. r=mt
MozReview-Commit-ID: FtVZXPA9ckJ

--HG--
extra : rebase_source : 0c5d1ba14a83b553cc9cb4473035811173f9c9c8
2017-01-05 22:47:25 -05:00
Nils Ohlmeier [:drno]
2ca25c39f6 Bug 1318180: turn network offline events into ice disconnected event. r=bwc,jib
MozReview-Commit-ID: Kqbicl2goL2

--HG--
extra : rebase_source : 4ed7d1364af8bd1575e2ced1bd8512405e0dd669
2016-11-17 23:16:33 -08:00
Wes Kocher
6e269458be Merge inbound to central, a=merge
MozReview-Commit-ID: KIm8XUkfyZW
2016-12-30 16:56:03 -08:00
Andreas Pehrson
df4d42fabb Bug 1326386 - Restore test_gUM_active_autoplay.html. r=jesup
MozReview-Commit-ID: HKNgBRENrcY

--HG--
extra : rebase_source : ea1803f832b586e0bf10e3a9fbec96a0f0410bf2
2016-12-29 19:05:39 +01:00
Ryan VanderMeulen
9f48ae4f9f Merge inbound to m-c. a=merge 2016-12-30 10:04:47 -05:00
JW Wang
4eb1252534 Bug 1326330. Part 2 - add assertions and checks. r=JamesCheng
1. ensure the 'finish' event is notified only once.
2. assert pushing items to a finished queue.

MozReview-Commit-ID: 9lYWPANVz0m

--HG--
extra : rebase_source : c05b0c77fdee324798579e0e2ebec6ce6303cbf6
extra : intermediate-source : 80be35003c76fc9cc74f206576394b46317b7880
extra : source : 14f5d5c064fddbbcf5728fb4d19e9c0a4e45fac7
2016-12-23 19:19:04 +08:00
JW Wang
3985fd7208 Bug 1326330. Part 1 - remove unused functions. r=JamesCheng
MozReview-Commit-ID: 66XDaghbKUy

--HG--
extra : rebase_source : a25d3413d6f076366373b92fd51ff850bb1dd79e
extra : intermediate-source : a9f7a68b4bff23ec0a059f5cc2a7fca92c1501bd
extra : source : d2dbc97390bc85fba1bd0a53d780f6122cc96ac7
2016-12-23 19:17:11 +08:00
JW Wang
7be77921c0 Bug 1325321 - let DecodingState handle audio/video pop events. r=kaku
MozReview-Commit-ID: 9EjeOfn1vBU

--HG--
extra : rebase_source : 52efab5c60df935de35fb049926c639aa053e389
extra : intermediate-source : d760746364b9585128a74bf284246418eb024280
extra : source : 0537651366abb8524a3436f0208d28b3248a1c52
2016-12-22 17:28:14 +08:00
Wes Kocher
26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange
48513de60f Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : dffab11abf7d4b57fa54475fd22e71b84375cd7b
2016-12-29 22:32:52 +01:00
Markus Stange
11eb304af2 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : 6ebeba2b28f643a4b555e889b2f4f99a55e68485
2016-12-21 23:06:56 +01:00
Markus Stange
4e6ca03c5d Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : ce8fe0481c8e3c3d3efd3d1c15480490943ee202
2016-12-21 23:06:45 +01:00
Haik Aftandilian
7e7b9330e3 Bug 1322716 - Remove /private/var regex from GMP sandbox rules. r=jesup, r=cpearce, r=gcp
MozReview-Commit-ID: I1Y2MOum5T3
2016-12-19 18:16:31 -08:00
Markus Stange
1b72f37c98 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : ad47978ef81d048a90b9803803201eee32974024
2016-12-21 11:43:50 +01:00
Wes Kocher
2045ef4aab Merge m-c to inbound, a=merge
MozReview-Commit-ID: ESXuJFW2Tgr
2016-12-29 12:08:05 -08:00
Kilik Kuo
c0c0027fee Bug 1325543 - Avoid unnecessarily awaiting procedure for Widevine CDM installation. r=jwwang
Currently, gecko doesn't support download and installation for Widevine CDM on Android.
Returning Cdm_not_supported avoids the subsequent call to AwaitInstall() while requesting MediaKeySystemAccess.

MozReview-Commit-ID: 3mOEf9iWE1G

--HG--
extra : rebase_source : 59649e5048424c38033c3c6e6c48f89ea4997a8e
2016-12-29 20:30:31 +08:00
JW Wang
51911743dc Bug 1325905. Part 7 - add assertions to ensure Ensure{Audio,Video}DecodeTaskQueued is never called by DecodingFirstFrameState. r=kaku
MozReview-Commit-ID: 9zSuH4p0aqg

--HG--
extra : rebase_source : 315b05e6acda578f7e4ba76478ea3096cb196b1c
extra : intermediate-source : 1849928297d4fd028bd53010f6f2dc1a2af85950
extra : source : ed06f086bb403ddfa0296b6be87601188ada81c6
2016-12-21 18:26:31 +08:00
JW Wang
2942cc95b4 Bug 1325905. Part 6 - let DecodingFirstFrameState::Enter() call Request{Audio,Video} instead. r=kaku
MozReview-Commit-ID: AH1F9hMJorM

--HG--
extra : rebase_source : ffd3b9711fa7be5db2445b75a7e875bd6b44c1b5
extra : intermediate-source : 1477500ceba6772fe5b93f318f1a13f03d3dff03
extra : source : 240f60c1c35b92facdec77f22022fed4babf4f84
2016-12-22 04:32:47 +08:00
JW Wang
354ad927a8 Bug 1325905. Part 5 - let DecodingFirstFrameState override Handle{Audio,Video}Waited. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 5oydItSvnMF

--HG--
extra : rebase_source : 5da4ad2f0fbf010a78c6b4e7cbab70378a002758
extra : intermediate-source : 0a882fb53fd51a71f9a3914074e9020d4eb87c4f
extra : source : 9927e37c9383e9204cbaf1b0dbc6fbfdff48df82
2016-12-21 18:23:00 +08:00
JW Wang
5f9c0a1f53 Bug 1325905. Part 4 - let DecodingFirstFrameState override Handle{Audio,Video}NotDecoded. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 87CwSdtTwi4

--HG--
extra : rebase_source : a16404e208ae5cd9b008728249cea444a7b229e7
extra : intermediate-source : 3fbfa4532f6a54ea9e1aa7b0e9880539ca57c811
extra : source : 22a75175dd957605e70096b029a677b4d2ac2d42
2016-12-21 18:16:25 +08:00
JW Wang
8901ee07af Bug 1325905. Part 3 - split HandleNotDecoded() into HandleAudioNotDecoded() and HandleVideoNotDecoded(). r=kaku
MozReview-Commit-ID: 3RcG43pxGSv

--HG--
extra : rebase_source : 75460198f494efd087f7b16816ece042c50873c8
extra : intermediate-source : c61d6b5eab101c7e978d9253e9ef524a1b8d92f8
extra : source : 8a8878c5fdcc7d40b48c66c4efda303f2e569ba5
2016-12-21 18:00:37 +08:00
JW Wang
6b395243f2 Bug 1325905. Part 2 - move IsWaitForDataSupported() assertions into MediaDecoderReaderWrapper. r=kaku
MozReview-Commit-ID: 6KwjHONHKo

--HG--
extra : rebase_source : f6da0198c63f27d002d5118ac8a12d436d9c2586
extra : intermediate-source : 1100a896ff400a101ac166cc82e75e28b37e2c5e
extra : source : 19cab6225fc2969fd5f1f445f48c90b2de2481e7
2016-12-21 17:37:56 +08:00
JW Wang
9d8e66b8c1 Bug 1325905. Part 1 - add assertions to MDSM::Request{Audio,Video}Data. r=kaku
MozReview-Commit-ID: JjRsv2wdLUq

--HG--
extra : rebase_source : 6393b2650bec9e157ebe20cccc7d8242df34cec1
extra : intermediate-source : 0bb565e52e2bf69d64cc37b88e0cc6342d98442d
extra : source : 893f204d72ffa399a85bde9de97649a531ed54ba
2016-12-21 17:21:21 +08:00
Andreas Pehrson
c66e1073f9 Bug 1305949 - Use the same path for passing on missed data to video sink, as during normal operation. r=ctai
MozReview-Commit-ID: FDKFf1skYVe

--HG--
extra : rebase_source : 83a1b9ec57e3b83807a482009558a78c80e1774a
extra : histedit_source : b4f61d91f7832c70585a79ce5381eafcdc5c761f
2016-10-13 11:18:53 +02:00
Andreas Pehrson
63cefa6875 Bug 1305949 - Refactor code that feeds video stream sink when it gets added. r=ctai
This mostly simplifies the code, but there are two changes to the logic as well.

1) The decision to install the listener or not used to be based on if the track
   existed in mUpdateTracks, while feeding the sink would look at the
   StreamTracks as well. This now looks at StreamTracks since an ended track is
   kept there but removed from mUpdateTracks. That means that we also
   NotifyEnded() if the track was in the StreamTracks but not in mUpdateTracks.

2) I removed the code that feeds a video stream sink with the last chunk in
   case the graph's current time has passed the end of the track. Tests should
   be written so that we have guarantees that there will be video data when a
   video stream sink gets added. If this fails we should fix the root cause of
   such a timing issue instead of wallpapering it with an old frame. I think
   this could be masking other issues. We'll see how this acts out on try.

MozReview-Commit-ID: KKr9JhVpxZt

--HG--
extra : rebase_source : f775fcfbe9647e29ee107ecc7b1f39c2d91f3b0d
extra : histedit_source : 4fa675ce93dc67d7db972a07bb3236f34707e7d3
2016-09-28 16:12:20 +02:00
Phil Ringnalda
ce22845813 Merge m-c to m-i
MozReview-Commit-ID: 28f3Y4WDMFL
2016-12-27 20:38:00 -08:00
JW Wang
21a9b72957 Bug 1325004. Part 7 - remove Push(). r=kikuo
MozReview-Commit-ID: 7fNAGwKhKSN

--HG--
extra : rebase_source : b4c1b541e9a60420f1dd3f07d364881d05059d82
extra : intermediate-source : 5ddd990ae771bedabd12a86c1fa86b79d42199c9
extra : source : f619a366739ccf00692dcfa0fa1bfa02ef3ae938
2016-12-21 16:06:58 +08:00
JW Wang
75c6cf0698 Bug 1325004. Part 6 - let DecodingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: boYTgSK4hw

--HG--
extra : rebase_source : 7e7bed1edf4cde0e4e47295f20815a05ccbbe087
extra : intermediate-source : 57cd629c425d628ce65b9ea9943d9e56e866b710
extra : source : 176b75c814a4f08dc8fb88ffd3ae714ee90337fa
2016-12-21 16:05:08 +08:00
JW Wang
a0227d9704 Bug 1325004. Part 5 - let BufferingState call Push{Audio,Video} instead. r=kikuo
BufferingState will call DispatchDecodeTasksIfNeeded() if not done buffering.

MozReview-Commit-ID: Kzqqn8lXPLm

--HG--
extra : rebase_source : fa4e4d4c4b9d637b7ca577b371e8561ffc87f9b2
extra : intermediate-source : a843f7147b2cf06bd2aebaf737e59838ad7cd20a
extra : source : 7459d72992ecbd9ea45109bf57da31c8da3b57dd
2016-12-21 16:03:16 +08:00
JW Wang
aa131689bf Bug 1325004. Part 4 - let NextFrameSeekingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: 6E2BfLNh91r

--HG--
extra : rebase_source : 77c10ef30b7d65d227b91a2c2226ff89fcbd1e3e
extra : intermediate-source : dac931a547edc1398762e7c49517bb4d7b9ea015
extra : source : fa74c3a186074452e63c0bd7c50664ff04983cca
2016-12-21 15:56:18 +08:00
JW Wang
1b1f735190 Bug 1325004. Part 3 - let DecodingFirstFrameState call Push{Audio,Video} instead. r=kikuo
DecodingFirstFrameState needs only at most one audio or video sample.

MozReview-Commit-ID: 2pRrPlCUBSf

--HG--
extra : rebase_source : 16dfce121c1e1c151a6dbcbee49f179d3793b22b
extra : intermediate-source : 2be72f13608fd5029991f6ae79cc73c86f7f1a0b
extra : source : 61f35a1275101a222cea89d4dd6d873181f33e57
2016-12-21 15:54:30 +08:00
JW Wang
0ea283e2a4 Bug 1325004. Part 2 - let AccurateSeekingState call Push{Audio,Video} instead. r=kikuo
AccurateSeekingState can stop decoding once there is one sample in the queue.

MozReview-Commit-ID: 76C7vX7ua14

--HG--
extra : rebase_source : 507410f3873ed9de2166344e99e03f9b43b46ad7
extra : intermediate-source : dd7d2547486711cdd1a9c7adc2a48e1ffec168bf
extra : source : 0285b6fc5dbed808cd30375defbc415e875647a1
2016-12-21 15:51:45 +08:00
JW Wang
c9965372e4 Bug 1325004. Part 1 - add PushAudio() and PushVideo(). r=kikuo
MozReview-Commit-ID: KJdOy1Ke6Xg

--HG--
extra : rebase_source : 6e25e69c3cbdd3c2bc47e203926f2844b802747e
extra : intermediate-source : 57bfb6a53b9e4d2f7a0b21c21df5bc3f29ac9c3a
extra : source : 47cf0437e38243bb0c1b2ba3bf2bc54af2302fbb
2016-12-21 15:36:44 +08:00
Randell Jesup
ac570b16c4 Bug 1250356: rollup of changes for webrtc after applying webrtc.org v49 update r=pkerr,ng,pehrsons,etc
See ssh://hg.mozilla.org/users/paulrkerr_gmail.com/webrtc49_merge/ for the
patch development history.
2016-12-27 19:41:02 -05:00
James Cheng
4e7969fe5b Bug 1325558 - [EME][Fennec] Handle Sample wait for key for OOP decoding case. r=kikuo
MozReview-Commit-ID: KqdAdqdpAvX

--HG--
extra : rebase_source : 7c627de1ec571e4634cca9c910cb5e7353a669f2
2016-12-23 15:47:58 +08:00
Phil Ringnalda
b94a0cbd73 Merge m-i to m-c, a=merge 2016-12-24 16:51:17 -08:00
Marco Castelluccio
533966fbc4 Bug 1313339 - Also use modules loaded in the process to decide about DXVA blocklisting. r=gerald 2016-12-24 10:17:46 +01:00
Kilik Kuo
c25c957225 Bug 1325356 - Remove unnecessary SamplesWaitingForKey object in VideoDataDecoder. r=jwwang
MozReview-Commit-ID: 7uYfh3F2t2e

--HG--
extra : rebase_source : fb09263e3da9e38993feb8385d810d5abb1b692e
2016-12-23 12:49:05 +08:00
JW Wang
b245f6d89e Bug 1319295. Part 3 - enable dormant for the test. r=jya
MozReview-Commit-ID: 9dvmRXbr683

--HG--
extra : rebase_source : 89757edee2d01881902583b7c54a8f9084392248
extra : intermediate-source : 487459ad82406a06b9a5d1b4a53290c8aa3ee652
extra : source : 3e90c3305c9988daa2cef10b3209f629ccc6dd2d
2016-12-20 17:05:25 +08:00
JW Wang
155621f9d6 Bug 1319295. Part 2 - reject the seek promise with WAITING_FOR_DATA so MDSM has a chance to call WaitForData() and seek again. r=jya
MozReview-Commit-ID: I8A0rQMcTya

--HG--
extra : rebase_source : 85ef759034d44e02d653a5aa71fd75fb01bb8035
extra : intermediate-source : 7a82d4beffd3247d12e13a6c11232dfa94db4d28
extra : source : 84a184466957ecf4f2107b94ca2261f706e6da5b
2016-12-16 17:30:28 +08:00
JW Wang
e6e5696cf4 Bug 1319295. Part 1 - add a field to identify audio or video seek failures. r=jya
MozReview-Commit-ID: 3PXlISED4tm

--HG--
extra : rebase_source : 18f1b074cacdacdc4dff270662e4609cdff94b76
extra : intermediate-source : 4205a6383c79d09f962853d8b4d8ddb5797bc79e
extra : source : 2e98d6a4761e4b42311fc50b9a5bcb55741eda34
2016-12-16 16:57:27 +08:00
JW Wang
7721ac45c7 Bug 1324629. Part 5 - replace some member functions with lambda. r=kaku
MozReview-Commit-ID: 8mRePsDxUWx

--HG--
extra : rebase_source : 936f6fad7c4b1de2e5c255d12398e20ba48a85cf
extra : source : e68eeaf321baa4fe2363af2966c3522326b18fe2
2016-12-22 14:01:21 +08:00
JW Wang
0323cca4c5 Bug 1324629. Part 4 - clean up some functions and comments. r=kaku
MozReview-Commit-ID: HP2Tp8KbRoq

--HG--
extra : rebase_source : e2ac1431611f30a8d9ffb1fb3bcd30b6a52e31c6
extra : intermediate-source : c281654e20d3a91f310f6bd983c3ba2c6915afe7
extra : source : 867b2f18697a1b5a1b87b95ad6af8a4fc60e6162
2016-12-20 15:48:20 +08:00
JW Wang
d1e5b672ea Bug 1324629. Part 3 - remove AudioWait and videoWait callbacks. r=kaku
MozReview-Commit-ID: 9pXLLrYLN4c

--HG--
extra : rebase_source : c66cc3f37fd3cebb0d6a9c7525f863f2ade2a67e
extra : intermediate-source : fbb3fcf20109d9caa13e556c679aee5e692e78f2
extra : source : e8eff4dc4bc1fae74e6f228d51d9677d215ff66a
2016-12-20 14:31:29 +08:00
JW Wang
08a93dbdc4 Bug 1324629. Part 2 - remove video callback. r=kaku
MozReview-Commit-ID: 92t6GoznxL5

--HG--
extra : rebase_source : b1bf9053a396c501c918b8848d98ce920e3f09f6
extra : intermediate-source : 41414e1780251a382e900bb9ef5c011074278875
extra : source : 89fd50a16e61f3bfdfe445e1b49238ada801256b
2016-12-20 13:17:05 +08:00
JW Wang
6965b449bf Bug 1324629. Part 1 - remove audio callback. r=kaku
MozReview-Commit-ID: DbWwSNpYXLo

--HG--
extra : rebase_source : 901a519bc4864c61ee57bffe04ca61850422c862
extra : intermediate-source : 4db9b0aceda98d5a73b980582c12b8ae09b9c30b
extra : source : 3fadecee89e97b9cf9ffe464265c682ad5c5d28b
2016-12-20 12:54:23 +08:00
Kilik Kuo
dfa33df891 Bug 1325356 - Remove unnecessary SamplesWaitingForKey object in VideoDataDecoder. r=jwwang
MozReview-Commit-ID: 7uYfh3F2t2e
2016-12-23 16:00:35 -08:00
Wes Kocher
1f805d68a6 Backed out changeset 72f2f33715b4 (bug 1325356) for failing tests it added a=backout 2016-12-23 14:32:31 -08:00
Boris Zbarsky
d22d7aafa4 Bug 1320801 part 5. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's devicePixelRatio getter. r=bkelly 2016-12-22 11:05:54 -08:00
Carsten "Tomcat" Book
0aed7a4ac5 Merge mozilla-central to mozilla-inbound
--HG--
rename : testing/docker/base-build/HASH => taskcluster/docker/base-build/HASH
rename : testing/docker/base-test/HASH => taskcluster/docker/base-test/HASH
rename : testing/docker/centos6-build-upd/HASH => taskcluster/docker/centos6-build-upd/HASH
rename : testing/docker/centos6-build/HASH => taskcluster/docker/centos6-build/HASH
rename : testing/docker/decision/HASH => taskcluster/docker/decision/HASH
rename : testing/docker/image_builder/HASH => taskcluster/docker/image_builder/HASH
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/tester/HASH => taskcluster/docker/tester/HASH
2016-12-22 16:25:35 +01:00
Andrea Marchesini
1605ddf333 Bug 1324181 - Better implementation of PeriodicWave constructor, r=padenot 2016-12-22 15:37:33 +01:00
ctai
6db62e5479 Bug 1325053 - Remove test_source_media.html. r=jwwang
The media attribute in source element is no longer needed in media element case. Remove related test case.

MozReview-Commit-ID: 7ckvEAl6HL4

--HG--
extra : rebase_source : d5346029fb115a0445733c90d43af00fe4919aa8
2016-12-21 23:30:23 +08:00
Cykesiopka
0bdf96120a Bug 1323998 - Stop using Scoped.h NSS types in dtlsidentity.(cpp|h) and nricectx.cpp. r=mt
Scoped.h is deprecated.

MozReview-Commit-ID: IRFLV2mfN4J

--HG--
extra : rebase_source : 4c2a73ed8c1e9c695716aafb2da099f60f889454
2016-12-21 22:09:10 +08:00
Wes Kocher
b0df943433 Backed out 2 changesets (bug 1329319) because it will not build a=backout
Backed out changeset ae96a44e6a8f (bug 1329319)
Backed out changeset a75ecabf7129 (bug 1329319)

MozReview-Commit-ID: HQ3on7jlZXN
2017-01-09 15:46:42 -08:00
Gerald Squelart
189314d9cf Bug 1329319 - Allow NewRunnableMethod to method of a non-refcounted base class - r=froydnj
This is done by storing the object pointer based on the exact pointee type,
instead of as hinted by the method-pointer, which could be a non-refcounted
base class.

The stored pointer type is statically-checked to be derived from (or the same
as) the class type from the method-pointer, to prevent misuses.

One change had to be done in TrackBuffersManager, as it was passing another
type and relying on implicit pointer conversions. A simple `.get()` to pass
the raw pointer type (to be stored in a RefPtr) fixed that one issue.

MozReview-Commit-ID: 4kH0XdjB5Rk

--HG--
extra : rebase_source : 3eb7fa3cb1873f71b4d5e7118d2dc48f6fdf2874
2017-01-09 11:11:16 +11:00
Gerald Squelart
5d4cad020a Bug 1320785 - Remove obsolete 'ns' from 'StorensRefPtrPassByPtr' - r=froydnj
MozReview-Commit-ID: FuhlsLVFdLi

--HG--
extra : rebase_source : c1bb8330c4ca0dbf15a68a4dbd0dfeff615163be
2017-01-09 07:55:19 +11:00