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

16396 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 073b138dcb Bug 1600454 - Fix build with --disable-webspeech. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55365

--HG--
extra : moz-landing-system : lando
2019-12-01 01:30:11 +00:00
Emilio Cobos Álvarez 3c12d374bc Bug 1600362 - Cleanup IntersectionObserver. r=smaug
Initially this was going to be a simple cleanup: Remove some useless namespaces
here and there and so on, remove `using` statements from the header and so on.

But unfortunately, DOMIntersectionObserver.h (which is included in Element.h,
unnecessarily) ended up exposing `Element` unnamespaced to a lot of code, so I
had to fix that.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 20:39:36 +00:00
Emilio Cobos Álvarez dcb996db21 Bug 1599843 - GMPParent::CloneFrom is infallible. r=jya
Depends on D54981

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

--HG--
extra : moz-landing-system : lando
2019-11-28 00:11:46 +00:00
Emilio Cobos Álvarez b680d113eb Bug 1599843 - VorbisState::ReconstructVorbisGranulepos is infallible. r=jya
Depends on D54988

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

--HG--
extra : moz-landing-system : lando
2019-11-28 00:12:44 +00:00
Emilio Cobos Álvarez 04436b8041 Bug 1599843 - WebMDemuxer::Reset is infallible. r=jya
Depends on D54987

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

--HG--
extra : moz-landing-system : lando
2019-11-28 00:12:11 +00:00
Emilio Cobos Álvarez 3c74cd4252 Bug 1599614 - Condvar::Notify/NotifyAll are not fallible. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D54828

--HG--
extra : moz-landing-system : lando
2019-11-27 13:46:55 +00:00
Karl Tomlinson 133751cb97 Bug 1565956 process events for MessagePort r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D53137

--HG--
extra : moz-landing-system : lando
2019-11-21 07:33:48 +00:00
Karl Tomlinson 086fa3ac13 Bug 1565956 use an nsThread for GraphRunner to support MessagePort r=pehrsons
MessagePort::Dispatch(), for example, uses NS_DispatchToCurrentThread(), which
assumes nsThread.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 21:55:36 +00:00
Karl Tomlinson 8abe290c87 Bug 1565956 annotate GraphDriver::Shutdown MOZ_CAN_RUN_SCRIPT r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D53127

--HG--
extra : moz-landing-system : lando
2019-11-21 07:33:46 +00:00
Andrew McCreight b224524d48 Bug 1599026 - Don't send media notifications to discarded top BCs. r=alwu
This patch centralizes the checking for discarded browsing contexts
for the media IPC messages. It also adds a check that the top BC is
not discarded, which seems to be causing crashes. A BC can be
non-discarded when its parent is discarded because discarding a BC
tree is not atomic.

This changes the BC we log the id of, but hopefully that is okay.

The patch also fixes the 'Browing' typo in the method name.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 22:03:07 +00:00
Karl Tomlinson f85045e1eb Bug 1599356 correct math in AudioWorkletGlobalScope.currentTime r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D54676

--HG--
extra : moz-landing-system : lando
2019-11-26 16:42:10 +00:00
Sylvestre Ledru 8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Emilio Cobos Álvarez 008850fba9 Bug 1598968 - Make MediaControlUtils a proper header. r=MeFisto94,alwu
Differential Revision: https://phabricator.services.mozilla.com/D54643

--HG--
rename : dom/media/mediacontrol/MediaControlUtils.h => dom/media/mediacontrol/MediaControlUtils.cpp
extra : moz-landing-system : lando
2019-11-26 09:25:33 +00:00
Chun-Min Chang d8efd75a41 Bug 1588233 - P2: Set ST_NO_EXCEPTION_HANDLING before using SoundTouch. r=glandium
The coming updated libsoundtouch will use ST_THROW_RT_ERROR in several
places built without setting ST_NO_EXCEPTION_HANDLING.
ST_NO_EXCEPTION_HANDLING is only set in libsoundtouch/src/moz.build. To
avoid using `throw`, we should `#define` ST_NO_EXCEPTION_HANDLING before
`#include` soundtouch headers.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 00:48:24 +00:00
alwu fd2816a077 Bug 1593843 - part12 : rearrange included files by alphabet order. r=bryce
According to the nit in patch2, rearrange included files by their alphabet order.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:15 +00:00
alwu 4bcf3f8989 Bug 1593843 - part11 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D52807

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:15 +00:00
alwu 644216d194 Bug 1593843 - part9 : use specific autoplay check when we enable the request asking on GeckoView r=bryce
If we enabled the request asking on GV, then we would have a different way to check if the media is allowed to play or not.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:14 +00:00
alwu 7ef972061c Bug 1593843 - part8.5 - check if we enable blocking web audio or not before checking other conditions. r=bryce
If we don't enable blocking web audio, then we have no need to check other conditions, so we should check that earlier.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:15 +00:00
alwu 54b8cc7893 Bug 1593843 - part8 : move helper functions out from 'AutoplayPolicy'. r=bryce
Move helper functions out from `AutoplayPolicy`, makes us clearly know which one could really be used to determine the blocking autoplay result. It also give other classes an ability to use those helper functions if they have a need.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:13 +00:00
Alastor Wu b3fa60b9f3 Bug 1593843 - part7 : add debug logs. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D52603

--HG--
extra : moz-landing-system : lando
2019-11-25 18:19:29 +00:00
alwu 902bd705da Bug 1593843 - part6 : add a static pref to control this feature. r=bryce
`media.geckoview.autoplay.request` is used to control whether we send the play request.
`media.geckoview.autoplay.request.testing` is used to control the request result in testing.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:14 +00:00
alwu eb86c9cd9a Bug 1593843 - part4 : implement 'GVAutoplayPermissionRequestor' to manage the request. r=bryce
`GVAutoplayPermissionRequestor` provides a method to request autoplay permission for a page, which would be used to decide if media is allowed to autoplay or not on GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:13 +00:00
alwu 9b3e1e1236 Bug 1593843 - part3 : store the request status in top-level browsing context. r=farre
If the page has already had same type pending request, then we don't want to send another request. If the page has already got the response from the request, we also don't want to send another request again.

In order to achieve that, we decide to store the request's staus on the top-browsing context to make sure that all media elements in the same browsing context tree can share the same status. Thereforw, we could avoid sending redudant request when there is a pending request, and reuse the previous request's result.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:13 +00:00
alwu 1d93afb4e6 Bug 1593843 - part2 : fix build problem under unified build. r=bryce
As we added new files, which affects the build bundle created by unified build. Therefore, add missing scope definition and included header to pass the build.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:12 +00:00
alwu 1ca1a56a01 Bug 1593843 - part1 : implement GVAutoplayPermissionRequest. r=Ehsan,bryce
Implement `GVAutoplayPermissionRequest`, that is used to provide an ability for GeckoView (GV) to allow its embedder (application) to decide whether the autoplay media should be allowed or denied on the page.

We have two types of request, one for audible media, another one for inaudible media. Each page would at most have one request per type at a time, and the result of request would be effective on that page until the page gets reloaded or closed.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 11:00:12 +00:00
Andreea Pavel 2c4a987ec2 Bug 1598101 - disable test_mediarecorder_record_4ch_audiocontext.html on linux64 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D54439

--HG--
extra : moz-landing-system : lando
2019-11-25 10:57:31 +00:00
Noemi Erli 23395b20e2 Backed out 13 changesets (bug 1593843) for bustages in Logging.h CLOSED TREE
Backed out changeset b6e3fa6363bd (bug 1593843)
Backed out changeset 3db512256b0d (bug 1593843)
Backed out changeset f67081ea84ee (bug 1593843)
Backed out changeset ad02bb934459 (bug 1593843)
Backed out changeset 1a79176d3f7b (bug 1593843)
Backed out changeset 486c8562b816 (bug 1593843)
Backed out changeset 0d4313c436c5 (bug 1593843)
Backed out changeset 0c7e831d11bf (bug 1593843)
Backed out changeset 02ac8c39f46d (bug 1593843)
Backed out changeset 80895462dddf (bug 1593843)
Backed out changeset 4ab855869725 (bug 1593843)
Backed out changeset 5a24fc933cd6 (bug 1593843)
Backed out changeset f1c50ee60a78 (bug 1593843)
2019-11-23 05:18:17 +02:00
alwu 581fb19807 Bug 1593843 - part12 : rearrange included files by alphabet order. r=bryce
According to the nit in patch2, rearrange included files by their alphabet order.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:38 +00:00
alwu aeea7e1216 Bug 1593843 - part11 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D52807

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:37 +00:00
alwu abcee0761a Bug 1593843 - part9 : use specific autoplay check when we enable the request asking on GeckoView r=bryce
If we enabled the request asking on GV, then we would have a different way to check if the media is allowed to play or not.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 21:26:19 +00:00
alwu de5ff9be1f Bug 1593843 - part8.5 - check if we enable blocking web audio or not before checking other conditions. r=bryce
If we don't enable blocking web audio, then we have no need to check other conditions, so we should check that earlier.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:37 +00:00
alwu f789ab1d90 Bug 1593843 - part8 : move helper functions out from 'AutoplayPolicy'. r=bryce
Move helper functions out from `AutoplayPolicy`, makes us clearly know which one could really be used to determine the blocking autoplay result. It also give other classes an ability to use those helper functions if they have a need.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:35 +00:00
alwu f582f5c0a1 Bug 1593843 - part7 : add debug logs. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D52603

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:36 +00:00
alwu 18d07fd5df Bug 1593843 - part6 : add a static pref to control this feature. r=bryce
`media.geckoview.autoplay.request` is used to control whether we send the play request.
`media.geckoview.autoplay.request.testing` is used to control the request result in testing.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:37 +00:00
alwu 3db47d1884 Bug 1593843 - part4 : implement 'GVAutoplayPermissionRequestor' to manage the request. r=bryce
`GVAutoplayPermissionRequestor` provides a method to request autoplay permission for a page, which would be used to decide if media is allowed to autoplay or not on GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 21:24:38 +00:00
alwu 490b52782c Bug 1593843 - part3 : store the request status in top-level browsing context. r=farre
If the page has already had same type pending request, then we don't want to send another request. If the page has already got the response from the request, we also don't want to send another request again.

In order to achieve that, we decide to store the request's staus on the top-browsing context to make sure that all media elements in the same browsing context tree can share the same status. Thereforw, we could avoid sending redudant request when there is a pending request, and reuse the previous request's result.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:35 +00:00
alwu 4abf12bb60 Bug 1593843 - part2 : fix build problem under unified build. r=bryce
As we added new files, which affects the build bundle created by unified build. Therefore, add missing scope definition and included header to pass the build.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:35 +00:00
alwu 16eadb848d Bug 1593843 - part1 : implement GVAutoplayPermissionRequest. r=Ehsan,bryce
Implement `GVAutoplayPermissionRequest`, that is used to provide an ability for GeckoView (GV) to allow its embedder (application) to decide whether the autoplay media should be allowed or denied on the page.

We have two types of request, one for audible media, another one for inaudible media. Each page would at most have one request per type at a time, and the result of request would be effective on that page until the page gets reloaded or closed.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 09:17:35 +00:00
Michael Froman 842fad844f Bug 1524049 - pref on Vorbis decoding on RDD for Windows. r=drno
Also, make sure it is disabled for MinGW builds because of Bug
1597408.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 20:49:14 +00:00
Andreas Pehrson 78c9444d74 Bug 1536156 - Make VideoFrameContainer::ClearFutureFrames keep the current frame instead of the first frame. r=padenot
Depends on D54117

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

--HG--
extra : moz-landing-system : lando
2019-11-22 15:48:06 +00:00
Andreas Pehrson 0e8f3eae51 Bug 1536156 - Clear future frames when VideoSink is finished. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D54117

--HG--
extra : moz-landing-system : lando
2019-11-22 15:02:27 +00:00
Andreas Pehrson f80cfacedb Bug 1536156 - Simplify setting the current frame in the secondary video container. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D53733

--HG--
extra : moz-landing-system : lando
2019-11-22 12:52:48 +00:00
Andreas Pehrson 626de4fb8d Bug 1536156 - Let cloneElementVisually() return a promise that resolves when frames have been rendered. r=alwu,mconley,bzbarsky
This patch does the following:
- Makes cloneElementVisually() return a promise
- Plumbs an event from the MediaDecoderStateMachine's VideoSink to
  HTMLVideoElement
- Hooks the event up to resolve the promise from cloneElementVisually()
- Updates tests and their expectations.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 12:52:48 +00:00
Andreas Pehrson e19d00c349 Bug 1536156 - Remove unused MediaSink::ClearSecondaryVideoContainer. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D53731

--HG--
extra : moz-landing-system : lando
2019-11-22 12:52:47 +00:00
Andreas Pehrson e025090eae Bug 1597216 - Handle changes to mMediaSink in MediaDecoderStateMachine. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D53712

--HG--
extra : moz-landing-system : lando
2019-11-22 00:07:02 +00:00
Andreas Pehrson 3c62bb84d8 Bug 1596777 - Hook up the SecondaryVideoContainer with state mirroring. r=alwu
This better follows how MediaDecoder and MediaDecoderStateMachine was
architected.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 00:07:04 +00:00
Karl Tomlinson 2a599ccaf2 Bug 1572627 implement currentFrame, currentTime, and sampleRate members on AudioWorkletGlobalScope r=padenot
Depends on D54084

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

--HG--
extra : moz-landing-system : lando
2019-11-21 13:42:49 +00:00
Karl Tomlinson 3f8ce13276 Bug 1572627 expose ProcessedTime() as a graph-global time updated after processing all tracks r=padenot
This is similar to [[current frame]] in Web Audio, but is in GraphTime,
not AudioContext-specific time.

Depends on D54083

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

--HG--
extra : moz-landing-system : lando
2019-11-21 13:43:04 +00:00
Karl Tomlinson b854a49256 Bug 1572627 update mProcessedTime for each block r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D54083

--HG--
extra : moz-landing-system : lando
2019-11-21 23:12:37 +00:00
Karl Tomlinson f604c3e112 Bug 1572627 record and use old mProcessedTime in Process() and PlayAudio() r=padenot
so that mProcessedTime can be updated for each block processed.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 13:43:52 +00:00