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

14464 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 06c3d29113 Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
Summary: # ignore-this-changeset

Reviewers: sylvestre

Reviewed By: sylvestre

Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya

Bug #: 1521000

Differential Revision: https://phabricator.services.mozilla.com/D16936

--HG--
extra : histedit_source : 4add583bfa729ccc1aef934629ed45ff095189b0
2019-01-18 10:12:56 +01:00
Jeff Muizelaar 3cf4f88e68 Bug 1520559. Move DataMutex from EME to xpcom/threads. r=froydnj
This is a better place for it and is more appropriate given that it
already exports to mozilla/DataMutex.h. I'll fix the rvalue reference
problems in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D16723

--HG--
rename : dom/media/eme/DataMutex.h => xpcom/threads/DataMutex.h
extra : moz-landing-system : lando
2019-01-17 15:09:18 +00:00
Paul Adenot 9829894232 Bug 1520457 - Adjust the message written in the console when the auto-play policy block an AudioContext. r=flod,cpearce
Differential Revision: https://phabricator.services.mozilla.com/D16692

--HG--
extra : moz-landing-system : lando
2019-01-16 22:14:08 +00:00
Coroiu Cristina 576b2b1b23 Backed out 3 changesets (bug 1519430) for mda failures at test_autoplay_policy_web_audio_notResumePageInvokedSuspendedAudioContext.html
Backed out changeset b7bc38b0f9c5 (bug 1519430)
Backed out changeset 987aa2594ba6 (bug 1519430)
Backed out changeset 521176ad7ae8 (bug 1519430)
2019-01-17 09:45:15 +02:00
Alastor Wu 48f1fe4a35 Bug 1519430 - part3 : add test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D16614

--HG--
extra : moz-landing-system : lando
2019-01-17 02:58:05 +00:00
Alastor Wu 736d0d470b Bug 1519430 - part2 : only resume AudioContext which is blocked by autoplay policy. r=padenot
We would only start the AudioContext blocked by our autoplay policy, won't resume AudioContext which is suspended explictly by page.

Differential Revision: https://phabricator.services.mozilla.com/D16613

--HG--
extra : moz-landing-system : lando
2019-01-17 02:58:03 +00:00
Alastor Wu c3a0523cce Bug 1519430 - part1 : add new methods for calling suspend/resume from chrome. r=padenot
In order to separate resume/suspend called from chrome and content side, we need to create new methods.

Differential Revision: https://phabricator.services.mozilla.com/D16612

--HG--
extra : moz-landing-system : lando
2019-01-17 02:56:22 +00:00
Alastor Wu e5bba6b8f2 Bug 1520088 - part5 - add pref to control whether blacklist can override the default setting. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D16640

--HG--
extra : moz-landing-system : lando
2019-01-16 03:57:11 +00:00
Alastor Wu 0d5851b149 Bug 1520088 - part3 : implement different phases autoplay checking. r=cpearce
The autoplay checking for media element has 4 different phases,
1. check whether media element itself meets the autoplay condition
2. check whethr the site is in the autoplay whitelist
3. check global autoplay setting and check wether the site is in the autoplay blacklist.
4. check whether media is allowed under current blocking model (click-to-play or user-gesture-activation)

Differential Revision: https://phabricator.services.mozilla.com/D16525

--HG--
extra : moz-landing-system : lando
2019-01-16 18:21:39 +00:00
Alastor Wu fd9892991a Bug 1520088 - part2 : ensure logging result can always be executed. r=cpearce
Ensure we can always see the debug log for the autoplay result.

Differential Revision: https://phabricator.services.mozilla.com/D16524

--HG--
extra : moz-landing-system : lando
2019-01-16 01:04:40 +00:00
Alastor Wu 8c10894e80 Bug 1520088 - part1 : let 'IsMediaElementAllowedToPlay()' only check media element's attributes r=cpearce
We would like to have different phases checking for autoplay, the first phase is to check media element itself, so we need to move other non-related checkings out from 'IsMediaElementAllowedToPlay()'.

Differential Revision: https://phabricator.services.mozilla.com/D16523

--HG--
extra : moz-landing-system : lando
2019-01-16 01:04:27 +00:00
John Lin 7821b39a44 Bug 1482452 - p2: validate object before sending to Java runtime. r=snorp
Depends on D16707

Differential Revision: https://phabricator.services.mozilla.com/D16708

--HG--
extra : moz-landing-system : lando
2019-01-16 16:31:19 +00:00
John Lin 9c28465e35 Bug 1482452 - p1: validate buffer contents before accessing. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D16707

--HG--
extra : moz-landing-system : lando
2019-01-16 16:31:16 +00:00
Bryce Van Dyk 279e7ee239 Bug 1519617 - Update MoofParser to handle tracks using track_id 0. r=jya
Using track_id 0 is forbidden by the mp4 spec, however, some sites still serve
media using this track_id. We've been using the 0 track ID to trigger special
handling in the MoofParser where we will parse multiple tracks, and this led us
to be tolerant of tracks using this reserved id (though we likely had some bugs
due to this).

Since sites are using this track_id, and as other browsers (and Firefox until I
broke this) tolerate such media, we should too. In order to do so correctly, we
should no longer us track_id=0 as a special case in the MoofParser, and instead
have an explicit flag, which is what this patch does.

Differential Revision: https://phabricator.services.mozilla.com/D16428

--HG--
extra : moz-landing-system : lando
2019-01-16 11:45:42 +00:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D16388

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Johann Hofmann 7d58da52ae Bug 1519415 - Don't use https://example.com in test_getUserMedia_permission to avoid timeouts on Android. r=jib
For some reason that I could not figure out, usage of any https host in these getUserMedia mochitests
on Android causes a network proxy error and will, in this particular case, lead to the iframe not
loading the test page. This causes our test to timeout.

I don't think testing https here is particularly important, and so I'd rather save some
effort for myself and just remove it.

Differential Revision: https://phabricator.services.mozilla.com/D16538

--HG--
extra : moz-landing-system : lando
2019-01-15 20:17:47 +00:00
Nico Grunbaum 3cb1b02e77 Bug 1347070 - add qpSum to RTC outbound RTP stats r=jib,smaug
This adds qpSum to RTC outbound RTP stats

Differential Revision: https://phabricator.services.mozilla.com/D16016

--HG--
extra : moz-landing-system : lando
2019-01-15 21:26:05 +00:00
Cosmin Sabou 5091172c56 Merge mozilla-central to autoland. 2019-01-15 12:41:53 +02:00
Cosmin Sabou 2522f5281a Backed out changeset dad40f23f4c1 (bug 1519617) for breaking Soundcloud. a=backout 2019-01-15 12:38:06 +02:00
Brindusan Cristian dfde5a833c Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 06:40:07 +02:00
Brindusan Cristian d34193a4f4 Merge inbound to mozilla-central. a=merge 2019-01-15 06:38:06 +02:00
alwu 8632d7588c Bug 1506290 - part1 : implement 'document.autoplayPolicy'. r=baku,cpearce
`document.autoplayPolicy` returns a enum string that can change overtime based on user session activity:

- “allowed” if autoplay is currently allowed.
- “allowed-muted” if muted video autoplay is currently allowed.
- “disallowed” is autoplay is not current allowed.

Differential Revision: https://phabricator.services.mozilla.com/D11543

--HG--
extra : moz-landing-system : lando
2019-01-15 00:13:34 +00:00
Bryce Van Dyk fedef4db1b Bug 1516660 - Add pattern encryption params to GMP IPDL and plumb to the CDM. r=cpearce
Note, we only pass the relevant IV across the IPC boundry. I.e. if the crypto
scheme is cenc we do not pass a constant IV (this is only used by cbcs), and
only pass per sample IVs. For cbcs we do the converse. This means in the CDM
child we're only receiving one IV, which should be appropriate for whatever
scheme (this is similar to how Chromium handle IVs being passed to the CDM).

The CDM child side now writes pattern information to samples it's preparing for
CDM.

With these changes we should be passing all the information required to handle
cbcs to the CDM.

Differential Revision: https://phabricator.services.mozilla.com/D16459

--HG--
extra : moz-landing-system : lando
2019-01-14 20:24:57 +00:00
Andreas Pehrson 67a532de95 Bug 1514016 - Make MediaRecorder::Pause and MediaRecorder::Resume idempotent. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15910

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:56 +00:00
Andreas Pehrson f562a09e08 Bug 1514016 - Make MediaRecorder::Stop idempotent. r=jib
Depends on D14571

Differential Revision: https://phabricator.services.mozilla.com/D15909

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:55 +00:00
Bryce Van Dyk 4c57de267d Bug 1514016 - Use DispatchTrustedEvent helper in MediaRecorder::DispatchSimpleEvent. r=pehrsons
During review of bug 1458538, :bz noted that our event dispatching code could be
simplified by using DOMEventTargetHelper::DispatchTrustedEvent. As this was not
done during that bug, driveby fix here while we're making other changes.

Differential Revision: https://phabricator.services.mozilla.com/D14571

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:54 +00:00
Bryce Van Dyk cebb739adb Bug 1514016 - Add logging of this to MediaRecorder::pause and resume. r=pehrsons
Driveby change to bring our logging here in line with out other logging.

Depends on D14488

Differential Revision: https://phabricator.services.mozilla.com/D14489

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:54 +00:00
Bryce Van Dyk 53de28258e Bug 1514016 - Fire pause and resume events asynchronously. r=pehrsons
Depends on D14487

Differential Revision: https://phabricator.services.mozilla.com/D14488

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:53 +00:00
Bryce Van Dyk f542c26fa8 Bug 1514016 - Replace DispatchStartEventRunnable with DispatchEventRunnable. r=pehrsons
Depends on D14486

Differential Revision: https://phabricator.services.mozilla.com/D14487

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:53 +00:00
Bryce Van Dyk 497b61bdf5 Bug 1514016 - Add DispatchEventRunnable to media recorder to aid with dispatching different named events. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D14486

--HG--
extra : moz-landing-system : lando
2019-01-14 18:32:52 +00:00
Bryce Van Dyk 53ec57bafc Bug 1516669 - Update fake-cdm to use CDM10 interface. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D15520

--HG--
extra : moz-landing-system : lando
2019-01-14 16:41:55 +00:00
Bryce Van Dyk 5c977fdb7d Bug 1519617 - Update MoofParser to handle tracks using track_id 0. r=jya
Using track_id 0 is forbidden by the mp4 spec, however, some sites still serve
media using this track_id. We've been using the 0 track ID to trigger special
handling in the MoofParser where we will parse multiple tracks, and this led us
to be tolerant of tracks using this reserved id (though we likely had some bugs
due to this).

Since sites are using this track_id, and as other browsers (and Firefox until I
broke this) tolerate such media, we should too. In order to do so correctly, we
should no longer us track_id=0 as a special case in the MoofParser, and instead
have an explicit flag, which is what this patch does.

Differential Revision: https://phabricator.services.mozilla.com/D16428

--HG--
extra : moz-landing-system : lando
2019-01-14 16:33:03 +00:00
David Major f68118a2d1 Bug 1520021 - clang-cl should not use AudioNodeEngine's NEON workarounds. r=drno 2019-01-14 18:34:57 -05:00
Paul Adenot 1116d6d4b0 Bug 1499426 - Align the lifetime of AudioInputProcessing with the lifetime of MediaEngineWebRTCAudio. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D16201

--HG--
extra : moz-landing-system : lando
2019-01-14 15:09:34 +00:00
Csoregi Natalia c43240cef5 Merge inbound to mozilla-central. a=merge 2019-01-12 23:36:33 +02:00
Ryan VanderMeulen b8c528a0f1 Bug 1468451 - Add crashtest. r=me 2019-01-12 09:59:00 -05:00
Michael Froman c475e5754c Bug 1514874 - start RDD process on-demand r=jya,jld
Differential Revision: https://phabricator.services.mozilla.com/D15775

--HG--
extra : moz-landing-system : lando
2019-01-12 04:51:20 +00:00
Makoto Kato 6de3261d9f Bug 1518994 - Enable NEON in AudioNodeEngine on aarch64. r=drno
Although we don't define BUILD_ARM_NEON on aarch64 (bug 1303952), aarch64
supports NEON, so we should turn on NEON for AudioNodeEngine.

OpenMAX DL doesn't support aarch64 since we modify some codes.  So FFTBlock.h
still use ARM32 only.

Also, MSVC cannot use arm_neon.h header, doesn't allow
`float32x4_t zero = {0, 0, 0, 0};` and throws compiler warning.
So we need some workarounds to use this on MSVC.

Differential Revision: https://phabricator.services.mozilla.com/D16278

--HG--
extra : moz-landing-system : lando
2019-01-11 14:39:51 +00:00
Noemi Erli 7cd3732360 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-11 23:59:12 +02:00
Noemi Erli ff92f74db5 Merge autoland to mozilla-central. a=merge 2019-01-11 23:53:31 +02:00
Noemi Erli 3c06305cb1 Backed out changeset 849f81f21979 (bug 1515549) per achronop's request a=backout 2019-01-11 22:04:58 +02:00
arthur.iakab 404cf74da4 Backed out changeset 0f68913927a5 (bug 1499426) for mochitest failure on MediaEngineWebRTCAudio CLOSED TREE 2019-01-11 21:04:03 +02:00
alwu a48d405c9e Bug 1513733 - part4 : do not call suspendInternal() when constructing AudioContext r=karlt
As setting `mSuspendCalled` is enough to prevent the stream from starting, we have no need to apply unnessary audio context operation to MSG. In addition, it can avoid incorrect AudioContext's state because of out of order resume/suspend operation (https://bugzilla.mozilla.org/show_bug.cgi?id=1285290).

Differential Revision: https://phabricator.services.mozilla.com/D15679

--HG--
extra : moz-landing-system : lando
2019-01-11 18:54:43 +00:00
Alastor Wu 0f15935379 Bug 1513733 - part3 : add test. r=baku,karlt
Add test and mochitest-only function in document.

Differential Revision: https://phabricator.services.mozilla.com/D14913

--HG--
extra : moz-landing-system : lando
2019-01-11 18:45:31 +00:00
alwu ab5249684b Bug 1513733 - part2 : try to start AudioContext when media element which is as a source for web audio starts r=cpearce,karlt
If media element is used as a source for AudioContext, we would try to start AudioContext which was not allowed
to start when media element starts playing.

Differential Revision: https://phabricator.services.mozilla.com/D14593

--HG--
extra : moz-landing-system : lando
2019-01-11 20:43:01 +00:00
alwu 38e9580406 Bug 1513733 - part1 : rename 'NotifyScheduledSourceNodeStarted()' r=karlt
In order to call this method on other situations, rename it to 'StartBlockedAudioContextIfAllowed()'.

Differential Revision: https://phabricator.services.mozilla.com/D14592

--HG--
extra : moz-landing-system : lando
2019-01-11 20:42:02 +00:00
Paul Adenot 166bf2eb1a Bug 1499426 - Align the lifetime of AudioInputProcessing with the lifetime of MediaEngineWebRTCAudio. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D16201

--HG--
extra : moz-landing-system : lando
2019-01-11 17:22:24 +00:00
John Lin 72322eaae4 Bug 1508434 - p4: release audio output buffers after processing on task queue. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D15985

--HG--
extra : moz-landing-system : lando
2019-01-11 17:08:11 +00:00
John Lin 31377925fe Bug 1508434 - p3: assert members are only accessed on task queue. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D15740

--HG--
extra : moz-landing-system : lando
2019-01-11 17:08:03 +00:00
John Lin d6ebba5265 Bug 1508434 - p2: move codec output processing to task queue. r=jya
Processing MediaCodec output in Android binder threads while flushing
in task queue could cause race condition and leftover frames. Dispatch
the processing to task queue ensures all frames prior to flushing will
be cleared (by mDecodedData.Clear()) or ignored (by mInputInfos.Clear()).

Also consolidate all flushing operations in one task to avoid frame
insertion between emptying mDecodedData and mInputInfos.

Differential Revision: https://phabricator.services.mozilla.com/D15228

--HG--
extra : moz-landing-system : lando
2019-01-11 17:08:00 +00:00