Commit Graph

12249 Commits

Author SHA1 Message Date
Bryce Van Dyk
822e6a7a58 Bug 1367955 - Remove onended handler during ended handling to avoid video.ended race issues. r=pehrsons
Bug 1386489 means that ended is not reliably set in relation to the test
seeking machinery. This results in the following behaviour being possible:
- seekToNextFrame seeks to last frame
- the seek promise resolves and invokes check to see if video has ended
- ended is not yet set (race), so another seekToNextFrame is setup
- onended handler is invoked at some point (1st time)
- seekToNextFrame seeks again, remains at last frame
- oneended handler is invoked again due to the seek (2nd time)
- finish() has been called twice

This changeset should bandaid the above being possible.

MozReview-Commit-ID: BkskWUnaJQ9

--HG--
extra : rebase_source : 0108cf82a805136a87752d0128c1c0f2e7997ff6
2017-10-27 08:32:12 +13:00
Nathan Froyd
24a08c31db Bug 1412547 - avoid unused lambda captures in MediaDecoder.cpp; r=jya 2017-10-28 15:40:15 -04:00
Sebastian Hengst
a92de1bfc3 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 5afba38563fd825a1d36aaee0debd5844aca3432
2017-10-27 12:54:29 +03:00
Sebastian Hengst
5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
JW Wang
80e976e596 Bug 1412212. P3 - also dump debug info of AudioSink. r=JamesCheng
MozReview-Commit-ID: AnvlXrhdoI5

--HG--
extra : rebase_source : b4d979dba64ea02e85cac0d9613915441dbadd90
2017-10-27 15:36:24 +08:00
JW Wang
33a2764739 Bug 1412212. P2 - compact the output of GetDebugInfo(). r=JamesCheng
MozReview-Commit-ID: 6cAedI4Ax5r

--HG--
extra : rebase_source : d4162dace6c443fa993863c138855b19c33d7b59
2017-10-27 15:03:36 +08:00
JW Wang
0f76002549 Bug 1412212. P1 - the DUMP() macro needs no nsPrintfCString. r=JamesCheng
printf_stderr() already supports string formatting.

MozReview-Commit-ID: 6DhkrUtTP9c

--HG--
extra : rebase_source : e33578d8379903f149fa41cd76a87209ae3ee3e7
2017-10-27 14:58:33 +08:00
Alfredo.Yang
9965b731e6 Bug 1412177 - use BufferReader instead of ByteReader in wave decoder. r=kinetik
MozReview-Commit-ID: 2UBfsXYZ7gw

--HG--
extra : rebase_source : 2bff53b074f30f5bef5ce746a2f0a226f6be678a
2017-10-26 09:19:26 +08:00
JW Wang
48defae102 Bug 1411805 - Update() needs to read some prefs off the main thread. r=gerald
MediaPrefs is our friend.

MozReview-Commit-ID: 3lz5oqUR9R9

--HG--
extra : rebase_source : 31efaf14c29182b00451705b189772aac23acd34
extra : source : 7e9c68fd5fa241fc1d015b352935c2efd0daa1e8
2017-10-24 10:13:30 +08:00
JW Wang
994024afbb Bug 1411504. P8 - return an error for RecreateChannel() when the decoder is shutting down. r=gerald
Otherwise Seek() will continue to call OpenChannel() and hit null-deref for
mChannel is null.

MozReview-Commit-ID: 4nhbF9lUOSR

--HG--
extra : rebase_source : cb58448ddd9e68314b07e6160354d7be9ea2809a
extra : source : 4d50e2d60a4f9a5ababaaa5100b170dd64c73dbc
2017-10-25 09:45:14 +08:00
JW Wang
8715833c55 Bug 1411504. P7 - don't change mChannelOffset in MediaCache::Update(). r=gerald
This is a fix to P3.

Since seek is performed asynchronously by CacheClientSeek(), it is possible
for OnStopRequest() to come before Seek(). Changing mChannelOffset will
cause MediaCacheStream::NotifyDataEnded() to update mStreamLength incorrectly.

mChannelOffset should only be changed in response to channel activities such
as NotifyDataStarted() and NotifyDataReceived().

However, if MediaCache::Update() calls CacheClientSeek() without updating
mChannelOffset, next Update() might make a wrong decision and call CacheClientSeek()
again which is bad. So we add a member mSeekTarget to track if there is a pending
seek on which the stream reading decisions will be made.

MozReview-Commit-ID: VWP0vdlEYM

--HG--
extra : rebase_source : ea0d85bcbcc5d14f1554ebff3d10981a5b17e18a
extra : source : 339b9323b583849ac88e39da19670f6b26772877
2017-10-25 09:37:58 +08:00
JW Wang
8bd1a52d6a Bug 1411504. P6 - acquire the lock for the entire scope of Update(). r=gerald
For it is not safe to access mStreams without the lock off the main thread.

MozReview-Commit-ID: DjVlhxgjVj5

--HG--
extra : rebase_source : b584fe59712430acd4528e6b6cd01ae86dc5761f
extra : source : d7fd550934bfe6967638e42acb076882611792dd
2017-10-24 09:04:06 +08:00
JW Wang
a1a46cc301 Bug 1411504. P5 - handle CacheClientNotifySuspendedStatusChanged/QueueSuspendedStatusUpdate off the main thread. r=gerald
MozReview-Commit-ID: 7Wc1tvd3S6x

--HG--
extra : rebase_source : ac9c1da29b4b395c75ced50efc3210f90add4710
extra : source : f4c901cfc7a7510f4ff161406e35d60229e86b98
2017-10-24 10:00:23 +08:00
JW Wang
1196be8421 Bug 1411504. P4 - handle CacheClientResume/CacheClientSuspend off the main thread. r=gerald
MozReview-Commit-ID: GRbcNo7KtKH

--HG--
extra : rebase_source : 030c8808c7702dc8792b22250e3d414154014615
extra : source : 60d50a2829cde9ff2879270f983e23092ca9f426
2017-10-24 09:38:34 +08:00
JW Wang
7a1b18c3ec Bug 1411504. P3 - handle CacheClientSeek off the main thread for we will run Update() off the main thread. r=gerald
MozReview-Commit-ID: 7eavgwkTXx0

--HG--
extra : rebase_source : 26c5c1675281612e2753549839acb73f735b7bc8
extra : source : 42efd7bd8db58c5c42cc266d90100a7ec250ac15
2017-10-24 09:23:12 +08:00
JW Wang
c4b8566c71 Bug 1411504. P2 - merge NotifyDataStarted() and SetTransportSeekable(). r=gerald
SetTransportSeekable() is always called after NotifyDataStarted().
This is slightly more efficient for we don't acquire the lock twice.

MozReview-Commit-ID: 9myolomriIQ

--HG--
extra : rebase_source : f33c3be978edacf45d8144af43f45c8ad5e7b53e
extra : source : 2cefaeb1adae7238b77d5e2d1287ae0d96d9f671
2017-10-23 17:00:57 +08:00
JW Wang
1efcf7c612 Bug 1411504. P1 - always require MediaCache to have a thread to run Update() loops. r=gerald
MozReview-Commit-ID: AYVWuN9CU55

--HG--
extra : rebase_source : 0149e330533b96426bdc7817586df8bd85ec1d03
extra : source : c191b4aa350672a4b3c614a2ea5494cdcca71faf
2017-10-23 16:51:17 +08:00
Sebastian Hengst
d10e26c913 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-27 00:00:25 +02:00
Nils Ohlmeier [:drno]
daf7230f6d Bug 1411498: delete unused sipcc states. r=bwc,smaug
MozReview-Commit-ID: DnJrQk4hkYb

--HG--
extra : rebase_source : c615899389154cca4eecdbd6e332986837451d26
2017-10-24 23:40:02 -07:00
James Cheng
884fc56be9 Bug 1411523 - Remove 'this' from lambda captures [self, this] under dom/media r=jwwang
Capturing |this| only if |self| needs to appear more than twice in a lambda.

MozReview-Commit-ID: 38iYDznjgBH

--HG--
extra : rebase_source : 9471fd4519c5c5be6e6e10eb11db8eeb041327d1
2017-10-26 16:59:40 +08:00
Alfredo.Yang
a3f0efc656 Bug 1411824 - use BufferReader instead of ByteReader in wave parser. r=kinetik
MozReview-Commit-ID: 1M9lbbgoBpX

--HG--
extra : rebase_source : a418fe623ea1e0030a5e12b4267fd6353f752e2b
2017-10-20 15:34:32 +08:00
Alfredo.Yang
8da0342978 Bug 1411821 - use BufferReader instead of ByteReader in MP3 parser. r=kinetik
MozReview-Commit-ID: BpfCZUG7C6c

--HG--
extra : rebase_source : 45716111d62faac68499f4c369e3cb948de190ce
2017-10-20 11:54:29 +08:00
Alfredo.Yang
fc4a02e7c7 Bug 1411815 - use BufferReader instead of ByteReader in ContainerParser. r=kinetik
MozReview-Commit-ID: DB2J7w8PpAJ

--HG--
extra : rebase_source : 113b9832df3ac223c9adbcaa44f224d0c792892b
2017-10-19 11:12:48 +08:00
Jean-Yves Avenard
b7f6b46a82 Bug 1366201 - P5. Get around FFmpeg bug with corrupted data. r=gerald
According to FFmpeg documentation, the out parameter is "set to size of parsed buffer or zero if not yet finished. " however this is only the case if no error occurred; otherwise it is left untouched.

We want the invalid content to generate a decoding error, so we set size to inputSize to ensure decoding failed later.

MozReview-Commit-ID: FZeiZUdUtLG

--HG--
extra : rebase_source : 2e81d730bacaea5bb968f704a36b403117dafcba
2017-10-25 18:25:37 +02:00
Alfredo.Yang
41a2709293 Bug 1411525 - use BufferReader in flac/ogg parser. r=kinetik
MozReview-Commit-ID: 5chnxLnpqmY

--HG--
extra : rebase_source : 85e68812f1d354813ae36731a5a36bfe7f58c2e2
2017-10-19 10:16:32 +08:00
JW Wang
da256ca76e Bug 1411476. P5 - dump debug info for ChannelMediaResource. r=gerald
MozReview-Commit-ID: GjdtrlNb948

--HG--
extra : rebase_source : 248f4926435118ddc8baa0f901c5e4ec3f699c64
2017-10-25 13:57:39 +08:00
JW Wang
3fef1cee8e Bug 1411476. P4 - rewrite GetDebugInfo() functions to make string concatenation easier. r=gerald
MozReview-Commit-ID: V9cxIZGl8M

--HG--
extra : rebase_source : 10afe3e0e4c7d3d6153ea820d869e192345d755c
2017-10-25 13:13:30 +08:00
JW Wang
6c97c56766 Bug 1411476. P3 - show a more descriptive message in DecodeError(). r=gerald
MozReview-Commit-ID: 2XGYhlalecp

--HG--
extra : rebase_source : 08a70c0f74ea67feb8c456c723f6f485e26e0a2a
2017-10-25 10:38:48 +08:00
JW Wang
6490c484f5 Bug 1411476. P2 - show duration in debug logs. r=gerald
MozReview-Commit-ID: Ir7LFU6Dlei

--HG--
extra : rebase_source : c4094a10e3f312bb9a250e0ce41fc6ac8f1efe23
2017-10-25 10:36:03 +08:00
JW Wang
65fba1f9d2 Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. r=gerald
MozReview-Commit-ID: DF2BIO97aeB

--HG--
extra : rebase_source : c1ebcbfb8e24fbd79f0acdf5e7bc3b2245d7a3c5
2017-10-25 10:29:16 +08:00
Sebastian Hengst
31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Yoshi Huang
26c9043304 Bug 1407498 - Don't query loadingprincipal in common case. r=baku
We queried 'loadingprincipal' attribute on the common call path, however
this should be queried if it's loaded by System Principal.

Also rename loadingprincipal to triggeringprincipal
2017-10-24 10:13:31 +08:00
Sebastian Hengst
364d36fab2 merge mozilla-inbound. r=merge a=merge
MozReview-Commit-ID: B09kHrHK42C
2017-10-23 23:50:37 +02:00
Sebastian Hengst
18f1987735 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-23 11:46:34 +02:00
Paul Adenot
cd9185e874 Bug 1408456 - Convert test_analyserNodeOutput.html to a web-platform-test: test-analyser-output.html. r=karlt
This also brings in and convert some utilities we have in Gecko, that will ease
porting more tests.

MozReview-Commit-ID: 2yPZQO504kH

--HG--
rename : dom/media/webaudio/test/test_analyserNodeOutput.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-output.html
extra : rebase_source : 0a9c9c336b1b53120010a081da131c76f103a838
2017-10-17 14:47:44 +02:00
Paul Adenot
23732e9bcc Bug 1408456 - Convert test_analyserNodeMinimum.html to a web-platform-test: test-analyser-minimum.html. r=karlt
MozReview-Commit-ID: F6VNiYBXr7Z

--HG--
rename : dom/media/webaudio/test/test_analyserNodeMinimum.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html
extra : rebase_source : 4258a557e1bf07e0b1f0cbb3b2e517b2a3c56da9
2017-10-17 14:43:53 +02:00
Paul Adenot
fd0d5e5373 Bug 1408456 - Convert test_analyserScale.html to a web-platform-test: test-analyser-scale.html. r=karlt
MozReview-Commit-ID: CUhtCzfoi95

--HG--
rename : dom/media/webaudio/test/test_analyserScale.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-scale.html
extra : rebase_source : caae3eefcc9a1c814083bf7154b30f8b92ae788d
2017-10-17 14:47:32 +02:00
Paul Adenot
03d3466f23 Bug 1408456 - Convert test_analyserNodeWithGain.html to a web-platform-test: test-analyser-gain.html. r=karlt
MozReview-Commit-ID: 7gIj3cdZiZB

--HG--
rename : dom/media/webaudio/test/test_analyserNodeWithGain.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-gain.html
extra : rebase_source : 7571e6d2c8413671e20d36f5687df448c8aecca7
2017-10-16 17:04:45 +02:00
Paul Adenot
8f989cdbf4 Bug 1408456 - Convert test_AnalyserNode.html to a web-platform-test. r=karlt
MozReview-Commit-ID: GR3Ze8KIAKB

--HG--
rename : dom/media/webaudio/test/test_analyserNode.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analysernode.html
extra : rebase_source : fe5552c42600a937c5de004c867bc0e6628b37bc
2017-10-16 17:16:36 +02:00
Makoto Kato
1f86929f6d Bug 1406358 - Keep SpeechDelegate object until speaking is finished. r=eeejay
The delegate property of NSSpeechSynthesizer doesn't seem to add refcount from 10.13, so we have to keep SpeechDelegate object until speech is finished.

MozReview-Commit-ID: EVtMOPytkjR

--HG--
extra : rebase_source : f2a6d97942c19990a16dd68555328ed36280eb4a
2017-10-12 17:17:38 +09:00
Karl Tomlinson
43bad3ff0d bug 1410043 remove over-zealous graph-thread assert in SetCurrentDriver() r=pehrsons
The reverts to accepting ownership of the monitor regardless of the thread, as
accepted prior to
https://hg.mozilla.org/mozilla-central/rev/e3f39de40209#l1.25

As indicated in the SetCurrentDriver() documentation, it can be called on the
main thread during Revive() before another graph thread is started.

At that point mLifecycleState = LIFECYCLE_RUNNING, and so it is not easy to
adjust AssertOnGraphThreadOrNotRunning() to accept this situation without
making it much more liberal.

An alternative would be to change the Revive() methods to set mDriver
directly, but that would differ from the usual driver-switching pattern.

MozReview-Commit-ID: 9O5qakPVML9

--HG--
extra : rebase_source : 82115938ccd164863ddf6f983e7900705844d0ed
2017-10-20 17:59:19 +13:00
Sebastian Hengst
af53b8aad8 merge mozilla-central to autoland. r=merge a=merge 2017-10-23 23:52:54 +02:00
Jean-Yves Avenard
858f178676 Bug 1410090 - Remove remnant of FFOS OMX code. r=cpearce
For webrtc, the most important part of the code had already been removed in bug 1355048 and could no longer be called

MozReview-Commit-ID: Fx9XI0zR1gn

--HG--
extra : rebase_source : 360996760abab650684440fbeea258b43dccfd83
2017-10-19 16:51:04 +02:00
Jed Davis
70736cfb1b Bug 1401790 - Remove ProcessArchitecture from IPC. r=billm,jimm
This was used to support cross-architecture NPAPI plugins on OS X, but
we stopped supporting that in 54 (bug 1339182).

MozReview-Commit-ID: 2BcWYD6mguY

--HG--
extra : rebase_source : 6e509a3cc1f356ccd24f1459c43bc8fb66d7b0f4
2017-10-04 20:31:12 -06:00
Sebastian Hengst
8d0319bfa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gu7wIBFJOqe
2017-10-21 00:05:19 +02:00
Andreas Pehrson
b46de63fa2 Bug 1403186 - Add guards and sanity checks for Activated vs Stopped state. r=jib
MozReview-Commit-ID: 8Rdm3I0Z4SP

--HG--
extra : rebase_source : eccb161b3378961c0a4e01f809a1ac957ae32338
2017-10-02 15:13:15 +02:00
Andreas Pehrson
47611af5a5 Bug 1403186 - Don't call NotifyFinished if not activated. r=jib
MozReview-Commit-ID: JTUIXhK6mfi

--HG--
extra : rebase_source : 8158cf363516013a7dce35a6271dac75ac444ed3
2017-10-03 11:52:18 +02:00
bechen@mozilla.com
c09e4a8ee9 Bug 1183495 - part3: Remove mozSrcObject usage. r=jwwang
MozReview-Commit-ID: Gtpne3O0pBQ

--HG--
extra : rebase_source : 87544aa023e5ac079a8ae02de77e2aeab91e97cf
2017-10-20 11:23:41 +08:00
Masatoshi Kimura
dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
James Cheng
9406b5b8a2 Bug 1410689 - Early return before creating ChromiumCDM8BackwardsCompat to avoid leak. r=gerald
MozReview-Commit-ID: JQtJxBgzSFC

--HG--
extra : rebase_source : 3fb457062d773f1b44d3bc3bb7051a494e12a787
2017-10-23 11:29:58 +08:00