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

17568 Коммитов

Автор SHA1 Сообщение Дата
alwu 405d662683 Bug 1657223 - turn off deactivation timer by default. r=chunmin
The deactivation timer introduces an uncertainty of when user can control media, but instead of removing that, I want to add a pref to control it and disable it by default because I can still think of some benefit of this ability.

Differential Revision: https://phabricator.services.mozilla.com/D85928
2020-08-05 23:09:21 +00:00
Karl Tomlinson 5195905845 Bug 1634200 don't create a new global when the Worklet is finished r=padenot
When the worklet has already received the notification to shut down, there
will be no further notfication to release another global.

Differential Revision: https://phabricator.services.mozilla.com/D85975
2020-08-06 01:06:03 +00:00
Karl Tomlinson c3dd745324 Bug 1655544 use associated AudioWorkletNode for AudioParamMap parent object r=padenot
so that the AudioParamMap has the same associated global as its node.

Differential Revision: https://phabricator.services.mozilla.com/D85963
2020-08-05 14:35:33 +00:00
Butkovits Atila 3bd0e5497c Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE
Backed out changeset 0d22ad297b19 (bug 1589102)
Backed out changeset 14bcaf2a452c (bug 1589102)
Backed out changeset 20905f91e2bb (bug 1589102)
Backed out changeset 29ee0fbe855f (bug 1589102)
Backed out changeset d1f6185030af (bug 1589102)
Backed out changeset 31949872cc1d (bug 1589102)
Backed out changeset ec04e1a20597 (bug 1589102)
Backed out changeset ffe8da473b91 (bug 1589102)
Backed out changeset 3b92f7306c64 (bug 1589102)
Backed out changeset b187548e258f (bug 1589102)
2020-08-05 21:47:50 +03:00
Subhamoy Sengupta b9048b8ca2 Bug 1619953 - P1 - Added missing include in PChromiumCDM.ipdl r=baku
This fix was required for subsequent patches to build successfully, because adding new source files exposed missing dependencies in unified sources.

Differential Revision: https://phabricator.services.mozilla.com/D75290
2020-08-05 17:05:51 +00:00
Anny Gakhokidze 05b0ef78c2 Bug 1589102 - Part 2: Fix tests that were broken as a result of about:srcdoc going via DocumentChannel, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D85080
2020-08-05 16:44:04 +00:00
Anny Gakhokidze e903c66d34 Bug 1589102 - Part 1: Enable about:srcdoc loads via DocumentChannel, r=mattwoodrow
This patch enables sandboxed srcdoc loads to take place via DocumentChannel,
and adds mechanisms for enabling unsandboxed ones.

Both unsandboxed srcdoc, and in subsequent patches, about:blank, loads require
that the triggering principal and the principal to inherit point to the same
instance if the load takes place in the same process as where we are inheriting
those principals from. We save those principals on a target browsing context before
we load the URI, and later, when we are deserializing LoadInfoArgs into
LoadInfo in the content process, we retrieve the saved principals if the
current load identifier of the target BC matches the load identifier saved
along with the principals.

We also need to make sure that during a process switch for about:srcdoc load,
we don't use the original URI for about:srcdoc to determine the remote type and
instead we use channel's result principal.

Differential Revision: https://phabricator.services.mozilla.com/D85079
2020-08-05 16:44:01 +00:00
Paul Adenot 7988f1e250 Bug 1656068 - Do the processing for audio input data on the graph runner thread and not the audio callback thread. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D85404
2020-08-05 14:22:28 +00:00
Paul Adenot 8a5c4dbc8e Bug 1656064 - Use an atomic for mInputDeviceID until we refactor for multi-input. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D85391
2020-08-04 16:30:40 +00:00
Martin Stransky 19224fdc71 Bug 1655943 [Linux] Set dmabuf surface uid to all dmabuf surfaces, r=jhorak
- Set dmabuf surface UID in surface constructor, make DMABufSurface::SetUID() method private.
- Change dmabuf log key from 'WaylandDmabuf' to 'Dmabuf'.

Differential Revision: https://phabricator.services.mozilla.com/D85829
2020-08-05 07:45:07 +00:00
Matt Woodrow b31970d899 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 02:19:08 +00:00
Cosmin Sabou 38cd82e194 Backed out 8 changesets (bug 1656813) for reftest failures on bipbop_300_215kbps.mp4.lastframe.html.
Backed out changeset 92e0209dc7f1 (bug 1656813)
Backed out changeset 1b3842f2ca27 (bug 1656813)
Backed out changeset efed1b35fe47 (bug 1656813)
Backed out changeset d1c313ebe358 (bug 1656813)
Backed out changeset 4d6a3bf61345 (bug 1656813)
Backed out changeset 060254b3ad73 (bug 1656813)
Backed out changeset 37e5e5e6593a (bug 1656813)
Backed out changeset 12c0e9554a5f (bug 1656813)
2020-08-05 04:52:20 +03:00
Matt Woodrow 1885d56be1 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 00:54:23 +00:00
Simon Giesecke 96f3e7e019 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Matt Woodrow be050a0bb1 Bug 1653409 - Specify correct color space and YCbCr matrix on IOSurfaces, so that CoreAnimation converts them correctly. r=mstange
This overrides the colorspace of hardware decoded videos to specify the monitor's color space, to prevent CoreAnimation from doing conversion.
This probably isn't the right long term answer, but it matches our current rendering and readback code paths.

A note for the future: IOSurfaceSetValue/IOSurfaceCopyValue silently fail if the IOSurface is 'in use'.

Differential Revision: https://phabricator.services.mozilla.com/D85355
2020-08-04 01:18:31 +00:00
Matt Woodrow 553c2d162d Bug 1653409 - Upload software decoded video directly to IOSurface on OSX. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D85105
2020-08-04 01:18:14 +00:00
Matt Woodrow 87db131e32 Bug 1653048 - Add support for external images in the wr::Compositor API, and implement it for MacOS IOSurfaces. r=mstange,gw
Differential Revision: https://phabricator.services.mozilla.com/D84638
2020-08-04 01:19:59 +00:00
Noemi Erli 381fca9783 Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Andrew McCreight f6f2bd8f6e Bug 1655536, part 2 - Don't wait for memory reports from child processes that no longer exist. r=froydnj
This patch uses IPDL's return feature to ensure that the memory
reporter manager won't wait for a report from a child process
that has already exited.

This fixes a memory reporter hang that can happen if a child process
exits during a memory report, when the parent half of the actor is
being held alive. (If the parent half of the actor is not being held
alive, then mMemoryReportRequest will be naturally cleared when it
goes away.)

This was happening frequently on Windows Fission AWSY because that test
does a minimize memory right before it attempts to get a memory report,
and the preallocated content process exits when it sees a message to
minimize memory.

Differential Revision: https://phabricator.services.mozilla.com/D85499
2020-08-03 18:29:45 +00:00
Andrew McCreight 7157f25222 Bug 1655536, part 1 - Drop the return value from MemoryReportRequestClient::FinishCallback. r=froydnj
The next patch converts the memory reporting architecture to use the "returns"
feature of IPDL, and mozilla::ipc::RejectCallback does not have a return
type, so this patch removes the return value.

FinishReportingCallback::Callback() needs to remain an XPCOM method
that returns NS_OK because it is called from JS during testing.

Differential Revision: https://phabricator.services.mozilla.com/D85498
2020-08-03 18:29:02 +00:00
Simon Giesecke 032d2ac9d3 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +00:00
Jean-Yves Avenard 749a1d0d03 Bug 1653638 - P3. Remove no longer necessary workaround. r=mjf,karlt
C++17 guarantees that "In a function-call expression, the expression that names the function is sequenced before every argument expression and every default argument."

The order of operations in the expression s now guaranteed, we can remove the comment and the workaround.

Differential Revision: https://phabricator.services.mozilla.com/D85676
2020-08-03 08:01:12 +00:00
Jean-Yves Avenard f181df10f9 Bug 1653638 - P2. Use a Controller TaskQueue for running webaudio tasks. r=mjf
We can't create a media decoder on a decoder taskqueue, as this could lead to deadlocks should a decoder attempt to dispatch a synchronous runnable.

Differential Revision: https://phabricator.services.mozilla.com/D85544
2020-08-03 08:01:09 +00:00
Jean-Yves Avenard c56eb8ef3c Bug 1653638 - P1. Rename thread type and remove unused one. r=mattwoodrow
Historically, the MediaThreadType::PLAYBACK was used just for that; the MediaDecoderReader and exclusively for playback content.

This is no longer the case ; it's used in multiple places, and not just with playback: webrtc, webaudio, benchmark etc.

The primary use of the "PLAYBACK" thread was to distinguish from the "PLATFORM_DECODER" one as they dispatch synchronous tasks from one to the other, and we must ensure they don't share the same threadpool.

CONTROLLER is more fitting here, as this is how it's typically used: a controller thread manage the decoder threads.

Additionally, we remove the MTG_CONTROL one as it's not used.

Differential Revision: https://phabricator.services.mozilla.com/D85543
2020-08-03 08:01:07 +00:00
Martin Stransky e177990894 Bug 1645671 [Linux/VA-API] Create DMABufSurfaceWrapper directly at nsTAttay and disable DMABufSurfaceWrapper class copy and assignment constructors, r=jya
When DMABufSurfaceWrapper is added to nsTArray, a temporary local DMABufSurfaceWrapper object is created. When the temporary
object is deleted after the adding, associated dmabuf data is released which leads to rendering artifact during VA-API video playback.

As a fix in this patch we create DMABufSurfaceWrapper 'in-place' at nsTAttay.
We also disable DMABufSurfaceWrapper class copy and assignment constructors to avoid similar potential issues.

Differential Revision: https://phabricator.services.mozilla.com/D85152
2020-08-03 09:08:26 +00:00
Sylvestre Ledru 843f943758 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D85678
2020-08-02 15:29:15 +00:00
alwu c7563ad7c8 Bug 1654045 - part4 : add a test to ensure we would stop controlling media when it reaches to the end. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85231
2020-07-31 17:26:46 +00:00
alwu 4f35b1bd20 Bug 1654045 - part2 : add 'onactivated/ondeactivated' event handlers and 'isActive' on the media control webidl interface. r=chunmin
Add an event handler `onactivated/ondeactivated` and a readonly attribute `isActive` on the media control webidl interface, and they can be used in testing and the future plan of supporting media hub.

Differential Revision: https://phabricator.services.mozilla.com/D85229
2020-07-31 17:26:38 +00:00
Nathan Froyd 4e75d26bd3 Bug 1656356 - don't require flat strings when calling ToInteger; r=mccr8
ToInteger is defined on substrings, so we don't require the buffer to be
null-terminated when calling it.

Differential Revision: https://phabricator.services.mozilla.com/D85472
2020-07-30 22:25:38 +00:00
Paul Adenot eae12679e7 Bug 1656063 - Only load function pointer in FFTBlock once. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D85389
2020-07-31 12:29:01 +00:00
Paul Adenot d76eb1b1ab Bug 1656067 - r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D85390
2020-07-31 12:24:32 +00:00
Jeff Walden e8f3f74ef6 Bug 1656411 - Move typed array, ArrayBuffer, and dataview-related functions out of jsfriendapi.h to two new headers. r=mgaudet,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D85524
2020-07-31 16:37:27 +00:00
Paul Adenot f9ba0d14a5 Bug 1614036 - Remove more error handling code that is now useless, on a CLOSED TREE.
Differential Revision: https://phabricator.services.mozilla.com/D85596
2020-07-31 14:52:57 +00:00
Coroiu Cristina f0445806f4 Backed out 2 changesets (bug 1614009) for build bustage at dom/media/webaudio/AudioBuffer.cpp on a CLOSED TREE
Backed out changeset 2bd694126445 (bug 1614009)
Backed out changeset 7c315d9e2030 (bug 1614009)
2020-07-31 17:15:14 +03:00
Andreas Farre 8d7d0ec85c Bug 1613431 - Part 2: Ignore synced setters return value. r=nika
Depends on D83645

Differential Revision: https://phabricator.services.mozilla.com/D83646
2020-07-31 13:37:00 +00:00
Corentin Arnould 906d086baa Bug 1614036 - Added mochitest. r=padenot
Added file that returns InvalidContent when decoded.

Differential Revision: https://phabricator.services.mozilla.com/D84490
2020-07-31 13:41:55 +00:00
Corentin Arnould 5b671914ae Bug 1614036 - Removed console logging and set unlocalized messages r=padenot
Changed error message to unlocalized in the callback and in the promise rejection in case an error occurs in audio decoding.

Also deleted localized strings and NoAudio bacause it is not used.

Differential Revision: https://phabricator.services.mozilla.com/D81337
2020-07-30 16:29:08 +00:00
Paul Adenot 8494449709 Bug 1655518 - Make two bool in ReverbConvolver atomic. r=karlt
The code structure is strange. This will be enough to make this safe without
fear of changing the behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D85149
2020-07-29 00:05:26 +00:00
Corentin Arnould a5f9f4b9ce Bug 1613833 - Updated mochitest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84666
2020-07-31 13:36:53 +00:00
Corentin Arnould 00a172df05 Bug 1613833 - Changed length condition to suit the spec. r=padenot
Throws are now centralized too.

Differential Revision: https://phabricator.services.mozilla.com/D84665
2020-07-30 16:01:40 +00:00
Corentin Arnould 8cd9d82f7e Bug 1614009 - Updated mochitest. r=padenot
Depends on D84321

Differential Revision: https://phabricator.services.mozilla.com/D84322
2020-07-28 11:45:02 +00:00
Corentin Arnould 23c463b2b7 Bug 1614009 - Removed non-spec exception throwing on CopyToChannel. r=padenot,webidl,smaug
Also removed those in CopyFromChannel and changed parameters' name to fit the spec.

Differential Revision: https://phabricator.services.mozilla.com/D84321
2020-07-30 23:27:36 +00:00
Corentin Arnould 31ab26890e Bug 1614019 - Added mochitest for negative sample rate. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D83925
2020-07-30 15:54:55 +00:00
Corentin Arnould 23717c88b4 Bug 1614019 - Removed negative value from the valid range r=padenot,webidl,smaug
The condition in the if is changed because the minus operation could overflow.
The declaration of sampleRate has been moved to its next use because its first value was never used.

Differential Revision: https://phabricator.services.mozilla.com/D81550
2020-07-30 23:28:34 +00:00
Matthew Gregan 8009935c48 Bug 1656137 - Spin-wait on completion event rather than blocking main thread. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D85357
2020-07-31 01:45:44 +00:00
Chun-Min Chang d97fe95469 Bug 1642729 - P4: Load URL without user-specific data r=ckerschb
The URL specifying the track image should be loaded without any
user-specific data like cookie headers, or HTTP Auth credentials.

Differential Revision: https://phabricator.services.mozilla.com/D83695
2020-07-29 15:59:54 +00:00
Chun-Min Chang 6a3cd37f74 Bug 1642729 - P3: Only fetch image from http(s) URL r=ckerschb
The URL specifying the track image is only valid if its scheme is http
or https.

Differential Revision: https://phabricator.services.mozilla.com/D83694
2020-07-29 15:59:46 +00:00
Chun-Min Chang bf7aa89c86 Bug 1642729 - P2: Move same utils in SMTC and MPRIS backend to MediaControlUtils.h r=alwu
The duplicated util helpers between WindowsSMTCProvider and
MPRISServiceHandler could be merged and moved to MediaControlUtils

Differential Revision: https://phabricator.services.mozilla.com/D82806
2020-07-29 15:59:44 +00:00
Nathan Froyd e3ebda1914 Bug 1223932 - delete guard object uses from the tree; r=jwalden
CLOSED TREE

We don't need these macros anymore, for two reasons:

1. We have static analysis to provide the same sort of checks via `MOZ_RAII`
   and friends.
2. clang now warns for the "temporary that should have been a declaration" case.

The extra requirements on class construction also show up during debug tests
as performance problems.

This change was automated by using the following sed script:

```
# Remove declarations in classes.
/MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER/d
/MOZ_GUARD_OBJECT_NOTIFIER_INIT/d

# Remove individual macros, carefully.
{
  # We don't have to worry about substrings here because the closing
  # parenthesis "anchors" the match.
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)/)/g;

  # Remove the longer identifier first.
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT//g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM//g;
}

# Remove the actual include.
\@# *include "mozilla/GuardObjects.h"@d
```

and running:

```
find . -name \*.cpp -o -name \*.h | grep -v 'GuardObjects.h' |xargs sed -i -f script 2>/dev/null
mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D85168
2020-07-30 14:22:38 +00:00
Mihai Alexandru Michis a911a108d0 Backed out changeset ac9c811bc427 (bug 1223932) for causing spidermonkey rust failures.
CLOSED TREE
2020-07-30 18:23:21 +03:00
Nathan Froyd bec9f9b93a Bug 1223932 - delete guard object uses from the tree; r=jwalden
We don't need these macros anymore, for two reasons:

1. We have static analysis to provide the same sort of checks via `MOZ_RAII`
   and friends.
2. clang now warns for the "temporary that should have been a declaration" case.

The extra requirements on class construction also show up during debug tests
as performance problems.

This change was automated by using the following sed script:

```
# Remove declarations in classes.
/MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER/d
/MOZ_GUARD_OBJECT_NOTIFIER_INIT/d

# Remove individual macros, carefully.
{
  # We don't have to worry about substrings here because the closing
  # parenthesis "anchors" the match.
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)/)/g;

  # Remove the longer identifier first.
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT//g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM//g;
}

# Remove the actual include.
\@# *include "mozilla/GuardObjects.h"@d
```

and running:

```
find . -name \*.cpp -o -name \*.h | grep -v 'GuardObjects.h' |xargs sed -i -f script 2>/dev/null
mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D85168
2020-07-30 14:22:38 +00:00
alwu 9f4ebd9e69 Bug 1654277 - part3 : add a test for only resuming latest paused media. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D84879
2020-07-29 23:39:09 +00:00
alwu b495e4e49f Bug 1654277 - part2 : pause playing media but stop already paused media when receiving 'pause'. r=chunmin
We want to modify our current behavior from "resuming all media" to "resuming latest paused media" when pressing `play` media key.

The reason of doing that is because that give us better user experience, espeically on Facebook. Chrome has been taking this approach, so we want to follow this strategy. The test in D84879 can help to understand this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D85118
2020-07-30 04:01:08 +00:00
alwu 63d040c2d7 Bug 1654277 - part1 : add assertion to ensure we don't get unsupported key for default handler. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85117
2020-07-29 23:39:06 +00:00
alwu 41531f2b0c Bug 1655204 - part2 : add a testcase to ensure 'stop' would stop controlling media. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D84876
2020-07-29 22:15:52 +00:00
alwu 1ba14f3e89 Bug 1655204 - part1 : stop being controlled by media control keys when media element receives `Stop`. r=chunmin
Currently, we treat `pause` and `stop` equally, but `stop` is actully implying more meaning, which should stop controlling media entirely. Therefore, we would pause media and stop controlling it when receiving `stop`.

In addition, removing pause state checking, because it wouldn't happen anything to call `play()` and `pause()` if media is already playing or paused.

Differential Revision: https://phabricator.services.mozilla.com/D84875
2020-07-29 22:15:50 +00:00
Nico Grunbaum c116dd0bdb Bug 1655137 - add rtcp-rsize parsing to SIPCC parser;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D84857
2020-07-29 01:30:34 +00:00
Coroiu Cristina 315787989d Backed out changeset 7e2fb6f29963 (bug 1654430) for mda failures at dom/media/tests/mochitest/test_peerConnection_addAudioTrackToExistingVideoStream.html on a CLOSED TREE 2020-07-28 19:55:35 +03:00
Jan-Ivar Bruaroey 2ad2a4acec Bug 1654430 - Replace 200ms mainthread sleep on inserting/removing USB/bluetooth cam/mic/speaker with WaitFor() promise. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D84458
2020-07-28 15:18:53 +00:00
Karl Tomlinson 31c90d555d Bug 1653667 don't attempt to promote GraphRunner thread on Linux r=padenot
This usually fails due to sandbox policy.

When the sandbox is disabled, the realtime promotion can result in SIGKILL
if/when script runs too long.  This can be re-introduced when thread demotion
is moved to a thread that is not blocked on script, which may be part of
the solution to https://bugzilla.mozilla.org/show_bug.cgi?id=1628198.

Depends on D84941

Differential Revision: https://phabricator.services.mozilla.com/D84942
2020-07-27 14:47:51 +00:00
Karl Tomlinson f12d2fad45 Bug 1653667 move realtime limit initialization from RecvSetProcessSandbox() to CubebUtils r=padenot
so that this happens even when the content sandbox is not enabled.

CubebUtils::InitLibrary() is called during ContentProcess::Init(), before the
event loop is run in XRE_InitChildProcess().

Differential Revision: https://phabricator.services.mozilla.com/D84941
2020-07-27 14:48:32 +00:00
Narcis Beleuzu 144a4d61d6 Backed out changeset 9cec7707e84d (bug 1654383) for bustages on GMPTypes.h . CLOSED TREE 2020-07-28 00:21:05 +03:00
Bryce Seager van Dyk 10fa07b2e3 Bug 1654383 - Replace GMPEncryptionType with cdm::EncryptionScheme. r=alwu,dminor
This removes the need to do some conversions and simplifies the code a little.

Drive by remove an assert which is already covered by a switch statement
containing a MOZ_ASSERT_UNREACHABLE in ChromiumCDMParent.

Differential Revision: https://phabricator.services.mozilla.com/D84432
2020-07-22 17:13:23 +00:00
Sebastian Hengst 3df27d1256 No bug - typo fix part 2: curent > current
Differential Revision: https://phabricator.services.mozilla.com/D85036
2020-07-27 18:37:26 +00:00
alwu eaf81455fd Bug 1654959 - part3 : add test cases for enabling muted media into fullscreen/PIP mode. r=bryce
Add two new test cases for inaudible media being used in fullscreen/PIP mode.

In addition, after applying D84115, we fix the issue of incorrectly controlling media which doesn't be started yet and is not in the fullscreen. So modify the current test case.

Differential Revision: https://phabricator.services.mozilla.com/D84369
2020-07-24 02:42:05 +00:00
alwu 8d9ef78468 Bug 1653390 - part7 : add test for a page mixing audible and inaudible media. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D84120
2020-07-24 02:52:03 +00:00
Emilio Cobos Álvarez ff61891772 Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp
Having two classes in the inheritance chain inherit from SupportsWeakPtr
now won't compile, but you can use WeakPtr<Derived> when any base class
inherits from SupportsWeakPtr.

Differential Revision: https://phabricator.services.mozilla.com/D83674
2020-07-23 14:51:46 +00:00
Alex Chronopoulos 0eff45df2a Bug 1654744 - Reset the output buffer when the round latency is measured. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84661
2020-07-23 09:22:57 +00:00
Luca Greco 55e3a116dc Bug 1654622 - Replace Blob forward declaration with a BlobImpl forward declaration in MediaRecorder.h. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D84575
2020-07-22 18:51:16 +00:00
Simon Giesecke e443211b53 Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D83771
2020-07-22 15:12:10 +00:00
Chun-Min Chang db416202e5 Bug 1650281 - P2: Make sure `gCombinedSizes` won't be underflowed r=gerald
In any case, `gCombinedSizes` should be larger than or equal to the
buffer within `MemoryClockCache`.

Differential Revision: https://phabricator.services.mozilla.com/D84274
2020-07-21 23:39:14 +00:00
Chun-Min Chang 4ddbfa6a92 Bug 1650281 - P1: Widen `gCombinedSizes` once the buffers grow r=gerald
The `gCombinedSizes` need to be enlarged once the inner buffer within
`MemoryBlockCache` grows. Otherwise, when the `MemoryBlockCache` is
released, subtracting the buffer-size of the `MemoryBlockCache` from
`gCombinedSizes` lead to a underflow.

Differential Revision: https://phabricator.services.mozilla.com/D84273
2020-07-21 23:38:57 +00:00
Dorel Luca 990d081d9f Backed out 2 changesets (bug 1651519) for WPT failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 7b973a0e7be9 (bug 1651519)
Backed out changeset 55e9184c5617 (bug 1651519)
2020-07-22 02:47:34 +03:00
Kris Maglione d182c95351 Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 22:19:19 +00:00
Kris Maglione e7d942c77f Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 19:02:27 +00:00
Dorel Luca d91c6dc40b Backed out 2 changesets (bug 1651519) for wpt failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 52317abc5c68 (bug 1651519)
Backed out changeset 45448dca59a4 (bug 1651519)
2020-07-21 21:55:57 +03:00
Kris Maglione 4a25531b4a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 16:59:33 +00:00
Kris Maglione 9c2c147159 Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 16:59:28 +00:00
Andrew Osmond d933968108 Bug 1582954 - Use posix_fallocate if available to avoid lazy allocation for shared memory. r=jld
WebRender makes extensive use of shared memory buffers, particularly for
images decoded in the content process. These images can be arbitrarily
large, and there being insufficient memory for an allocation must be
handled gracefully.

On Linux, we will currently crash with a SIGBUS signal during image
decoding instead of just displaying the broken image tag. This is
because the pages backing the shared memory are only allocated when we
write to them. This blocks shipping WebRender on Linux.

This patch uses posix_fallocate to force the reservation of the pages,
and allows failing gracefully if they are unavailable.

Differential Revision: https://phabricator.services.mozilla.com/D80650
2020-07-20 17:47:52 +00:00
Paul Adenot 99aeffe5d8 Bug 1651678. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D83651
2020-07-17 11:48:17 +00:00
Paul Adenot 7fb73b1d6c Bug 1653113 - Backed out changeset cc82aacadf80. r=achronop
Depends on D83805

Differential Revision: https://phabricator.services.mozilla.com/D83806
2020-07-17 09:40:27 +00:00
Paul Adenot 6cd89c3d99 Bug 1653113 - Backed out changeset 61336bfc7584. r=achronop
Depends on D83804

Differential Revision: https://phabricator.services.mozilla.com/D83805
2020-07-17 09:50:48 +00:00
Paul Adenot 6a1605c539 Bug 1653113 - Backed out changeset 5e969a4bab42. r=achronop
Depends on D83651

Differential Revision: https://phabricator.services.mozilla.com/D83804
2020-07-17 11:48:17 +00:00
Paul Adenot f01a059230 Bug 1653259 - Downmix multichannel input to mono when applying input processing, leave stereo input stereo. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D83801
2020-07-17 11:36:59 +00:00
Dan Minor 459301b96c Bug 1652552 - Remove remaining application capture code; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D83491
2020-07-16 19:16:20 +00:00
Bryce Seager van Dyk a6fc16aabe Bug 1652598 - Add helpers to log CDM status as string. r=alwu
- Add a helper to log cdm::Status as a string to improve error reporting.
- Fix up format strings in ChromiumCDMParent to use PRIu32 instead of u for logs
  where it's appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D83702
2020-07-15 22:09:14 +00:00
Bryce Seager van Dyk 5f8a7c5b16 Bug 1652598 - Add status code to MediaError when CDM decode fails. r=alwu
Also add a log for when decoding fails. We typically log on any unhappy return
values from the CDM, so it makes sense we should also do so when a decode fails.

Differential Revision: https://phabricator.services.mozilla.com/D83419
2020-07-15 21:20:04 +00:00
Alex Chronopoulos 9f561f5cef Bug 1644566 - Return a decoder error on 10-bit dav1d images when WebRender is disabled. r=padenot
The render of 10-bit dav1d images is not supported in Android (Bug 1518549) so we return a decoder error and decoding is aborted.

Differential Revision: https://phabricator.services.mozilla.com/D83763
2020-07-16 10:28:45 +00:00
alwu e398ca4d46 Bug 1621403 - part3 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D82817
2020-07-15 21:02:08 +00:00
alwu 1493d7798d Bug 1621403 - part2 : implement `seekto` action. r=chunmin,emilio
Implement `Seekto` action [1]. In addtion, as `seekto` can go with additional properties, we create a new structure `MediaControlAction` to wrap `MediaControlKey` and `SeekDetails`, which can be sent with `seekto`.

[1] https://w3c.github.io/mediasession/#dom-mediasessionaction-seekto

Differential Revision: https://phabricator.services.mozilla.com/D82816
2020-07-16 00:16:33 +00:00
Simon Giesecke 1cd5c68592 Bug 1652002 - Remove some unnecessary includes from BindingUtils.h. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D83098
2020-07-15 15:34:49 +00:00
Simon Giesecke fea9dab7f2 Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug
With these changes, on my Linux analysis with ClangBuildAnalyzer, the
top two expensive headers, DOMTypes.h and TabMessageUtils.h are no longer
among the 30 most expensive headers.

Differential Revision: https://phabricator.services.mozilla.com/D82935
2020-07-15 13:24:20 +00:00
Alex Chronopoulos 70eee99400 Bug 1649817 - Verify audio buffers in drift correction tests, r=padenot
In AudioDriftCorrection gtests, the audio in the buffers is simulated by a sine tone of specific amplitude and frequency. This paych implements a way to verify automatically that the expected signal is being received in the output.

Differential Revision: https://phabricator.services.mozilla.com/D81988
2020-07-15 14:02:41 +00:00
Alex Chronopoulos e2be3e0840 Bug 1652294 - Add debug logs to track down the issue. r=padenot
The failure suggests that an additional unexpected device has been found. Added some logs to list the devices when that happens. The logs will be removed once the problem has been found.

Differential Revision: https://phabricator.services.mozilla.com/D83298
2020-07-15 11:47:34 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Sylvestre Ledru 1dbb63db2b Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D83258
2020-07-14 09:34:19 +00:00
Alex Chronopoulos f8eb70523a Bug 1584959 - Crashtest to verify AudioConverter fix. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D83327
2020-07-14 08:31:17 +00:00
Randell Jesup f1e4e6aed0 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-11 12:31:49 +00:00
Dorel Luca 19042532b3 Backed out changeset ef25e5648b14 (bug 1112392) for causing build bustage on media/systemservices/video_engine/tab_capturer 2020-07-11 13:30:06 +03:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00