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

16406 Коммитов

Автор SHA1 Сообщение Дата
Gurzau Raul 4f21dcd081 Backed out 4 changesets (bug 1483631) for failing at browser_temporary_permissions.js on a CLOSED TREE.
Backed out changeset f5bb5f6a148f (bug 1483631)
Backed out changeset c5e562c1d590 (bug 1483631)
Backed out changeset 7ef09193a7ef (bug 1483631)
Backed out changeset a909dcbbea2b (bug 1483631)
2019-12-03 21:57:55 +02:00
Jon Bauman 176e3cb761 Bug 1597935 - Don't buffer audio inside `SourceMediaTrack`. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D54853

--HG--
extra : moz-landing-system : lando
2019-12-03 19:18:04 +00:00
Thomas Nguyen 63cef02ef4 Bug 1483631 - Using windowId when allocating media source instead of principal r=jib,farre
In post fission world, we should move the top principal and top window check
to parent, so we should pass windowId to allocate function and
get working with top in parent process.

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

--HG--
extra : moz-landing-system : lando
2019-12-03 11:58:23 +00:00
Thomas Nguyen 023216a561 Bug 1483631 - Restrict nested permission requests in webrtc with permission delegate r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47417

--HG--
extra : moz-landing-system : lando
2019-12-03 16:25:31 +00:00
Karl Tomlinson 9631373efa Bug 1599952 pass MessagePort to AudioWorkletGlobalScope r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53134

--HG--
extra : moz-landing-system : lando
2019-12-03 00:37:28 +00:00
Karl Tomlinson aaf899d471 Bug 1599952 initialize AudioWorkletNode.port r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53133

--HG--
extra : moz-landing-system : lando
2019-12-03 01:11:13 +00:00
Coroiu Cristina 679f321343 Backed out 5 changesets (bug 1599952) for failures at webaudio/the-audio-api/the-audioworklet-interface/audioworklet-messageport.https.html.ini
Backed out changeset 78adc22d922a (bug 1599952)
Backed out changeset b07c89cbc212 (bug 1599952)
Backed out changeset 7768d524d914 (bug 1599952)
Backed out changeset 7012927838fe (bug 1599952)
Backed out changeset dbf476d4eab6 (bug 1599952)
2019-12-03 02:33:23 +02:00
Karl Tomlinson 5d8f14ddef Bug 1599952 pass MessagePort to AudioWorkletGlobalScope r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53134

--HG--
extra : moz-landing-system : lando
2019-12-02 11:30:39 +00:00
Karl Tomlinson 816db578f9 Bug 1599952 initialize AudioWorkletNode.port r=baku
Differential Revision: https://phabricator.services.mozilla.com/D53133

--HG--
extra : moz-landing-system : lando
2019-12-03 00:07:33 +00:00
Emilio Cobos Álvarez e1918d8385 Bug 1600353 - Make TextTrackSource and TextTrackReadyState enum classes. r=bzbarsky
To avoid defining `Loading`, `Loaded`, etc. in the mozilla::dom namespace. Also
it is a bit cleaner and saves some memory in the TextTrack objects by specifying
the size to be smaller.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 19:13:11 +00:00
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