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

792062 Коммитов

Автор SHA1 Сообщение Дата
sotaro c7f48c370b Bug 1765214 - Fix DCSurfaceVideo::mSwapChainSurfaceHandle initialization r=gfx-reviewers,jrmuizel
DCSurfaceVideo::mSwapChainSurfaceHandle is not initialized. It causes invalid handle close in DCSurfaceVideo::ReleaseDecodeSwapChainResources().

Differential Revision: https://phabricator.services.mozilla.com/D143966
2022-04-19 01:41:03 +00:00
Razvan Cojocaru 88f19b2fd9 Bug 1730615 - Change TestWRScrollData::Create() to use LayerIntRegion instead of nsIntRegion. r=botond
TestWRScrollData::Create() and its callers now use the
strongly-typed LayerIntRegion instead of the untyped nsIntRegion.

Differential Revision: https://phabricator.services.mozilla.com/D143933
2022-04-19 01:27:15 +00:00
Brad Werth f8d5bcad68 Bug 1763782 Part 3: Update test expectations. r=jgilbert,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143667
2022-04-19 01:06:30 +00:00
Brad Werth 55cfc38619 Bug 1763782 Part 2: Set color primaries and transfer functions for HD and HDR. r=gfx-reviewers,jgilbert
This derives sane values for color primaries and transfer functions from
the colorspace value. A better solution would be to extract those values
from the video itself, but these are good enough for common encodings and
match the behavior for hardware-decoded video in AppleVTDecoder.

Depends on D143436

Differential Revision: https://phabricator.services.mozilla.com/D143542
2022-04-19 01:06:30 +00:00
Brad Werth b579f7cdc5 Bug 1763782 Part 1: Allow AV1 10-bit to be decoded. r=gfx-reviewers,jgilbert
This decodes 10-bit AV1 into the P010 surface format. Because of the
needed bit shifting to move the 10-bits to the MSB positions, it can't use
a straight memcpy for the Y values.

Differential Revision: https://phabricator.services.mozilla.com/D143436
2022-04-19 01:06:29 +00:00
Katherine Patenio df8059bcb1 Bug 1758134 - fix no hover effect appearing on PiP player control buttons. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D143937
2022-04-18 23:40:07 +00:00
Geoff Brown 0e9abefe07 Bug 1745203: Re-enable release-msix-push on beta; r=releng-reviewers,aki
With https://github.com/mozilla-releng/scriptworker-scripts/issues/474
resolved, automatic pushes to the Microsoft Store can be re-enabled for beta.
These were disabled in https://hg.mozilla.org/mozilla-central/rev/22dc1718983e,
which has not made it to beta yet.

Differential Revision: https://phabricator.services.mozilla.com/D143949
2022-04-18 22:49:56 +00:00
Timothy Nikkel 80de23271a Bug 1765111. Silence spammy warning in netwerk/url-classifier/UrlClassifierCommon.cpp. r=dimi
Depends on D143889

Differential Revision: https://phabricator.services.mozilla.com/D143890
2022-04-18 22:43:29 +00:00
James Teow b247be00a1 Bug 1762122 - Change webExtensionLocale to use replacements rather than matches r=Standard8,mcheang
Currently, fetchEngineConfiguration assigns the value of engine.webExtension.locale to one of three
matches, but it's entirely possible for webExtensionLocale to contain data that should persist.

Differential Revision: https://phabricator.services.mozilla.com/D142747
2022-04-18 22:25:51 +00:00
James Teh fef89de8c9 Bug 1743966: Move ScrollTo into Accessible and support it for Windows RemoteAccessibles. r=morgan
Aside from adding ScrollTo to the Windows PDocAccessible IPDL, This mostly just moves methods into base classes and adapts platform code to use the unified Accessible::ScrollTo.

Differential Revision: https://phabricator.services.mozilla.com/D143655
2022-04-18 21:55:39 +00:00
David Shin 2525810298 Bug 1764616 - Ensure `assert_tolerance` with unsupported property fails loudly, fix SVG width/height asserts. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D143737
2022-04-18 21:48:12 +00:00
Zaggy1024 96947c674e Bug 1764478 - Part 2 - Pass PDMFactory instance to MediaChangeMonitor to keep configuration set before the decoder is created. r=alwu
Allows encrypted video to initialize a decoder upon receiving a sample if it cannot be instantiated during initial decoder creation.

Differential Revision: https://phabricator.services.mozilla.com/D143862
2022-04-18 21:43:22 +00:00
Zaggy1024 b7b82dc0aa Bug 1764478 - Remove PDM caching from MediaChangeMonitor to allow config changes to switch between GPU and RDD process. r=alwu
Fixes an issue where in-band changes in VP9 and AV1 would not switch to the hardware decoder if it supports the new config, since agnostic decoders would always support the decoded format.

Differential Revision: https://phabricator.services.mozilla.com/D143560
2022-04-18 21:43:21 +00:00
Zaggy1024 00d5cf6cf3 Bug 1764425 - Scale videos based on the pixel aspect ratio from containers or VP9 keyframe headers that specify render size. r=alwu
Fixes issues where frame size changes in-band would not be applied if the aspect ratio changed.

Differential Revision: https://phabricator.services.mozilla.com/D143559
2022-04-18 21:43:21 +00:00
Csoregi Natalia 87bb91c285 Merge mozilla-central to autoland. CLOSED TREE 2022-04-19 00:39:46 +03:00
Csoregi Natalia 4b3039b48c Merge autoland to mozilla-central. a=merge 2022-04-19 00:34:12 +03:00
Daniel Holbert 3bbf376319 Bug 1765209: Add braces to unbraced 'if' expressions in nsBlockFrame.cpp. r=emilio
This patch doesn't change behavior; it just improves coding-style
correctness. Our C++ coding style guide says "Always brace controlled
statements, even a single-line consequent of if else else."
https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html#control-structures

Differential Revision: https://phabricator.services.mozilla.com/D143940
2022-04-18 21:14:06 +00:00
Mike Hommey 72fcb02597 Bug 1764882 - Use apple-m1 cpu target on mac arm64 builds. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D143818
2022-04-18 20:38:25 +00:00
sotaro 48bbd7d965 Bug 1765126 - Add XRE_IsParentProcess() info to one gfxCriticalNote in WebRenderLayerManager::Initialize() r=gfx-reviewers,aosmond
If is helpful if "Failed to connect WebRenderBridgeChild" log has an info about if it happens in parent process.

Differential Revision: https://phabricator.services.mozilla.com/D143902
2022-04-18 20:21:41 +00:00
Kelsey Gilbert 1af7414e22 Bug 1765195 - Remove unused ICRData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D143935
2022-04-18 20:16:09 +00:00
Meg Viar 63384f65ab Bug 1764807 - Show "Firefox Klar" promo in PBM for CH and AT Regions r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D143746
2022-04-18 20:14:41 +00:00
David Parks fab26ea630 Bug 1759558: Enable widget.windows.hide_cursor_when_typing by default r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D143850
2022-04-18 20:00:59 +00:00
David Parks 1441683ada Bug 1759558: Ignore special keys when hiding pointer while typing on Windows r=cmartin
Clipboard operations, cursor navigation and input mode changes should not hide the cursor.  This mimics behavior in other Windows apps (e.g. WordPad).

Differential Revision: https://phabricator.services.mozilla.com/D143849
2022-04-18 20:00:58 +00:00
Emily McMinn 1f9a03af0c Bug 1759915 - Add aria-hidden to PBM search box to correct VoiceOver behaviour r=mviar
This should prevent VoiceOver from getting "stuck" between the address bar and the fake search bar in Private Browsing Mode. I'm not sure why PBM is different to the behaviour on the newtab page (the newtab page doesn't have the aria-hidden property and the HTML is essentially the same) but adding "aria-hidden" in this case doesn't seem to break anything.

Differential Revision: https://phabricator.services.mozilla.com/D143784
2022-04-18 19:49:04 +00:00
Nika Layzell 5e08e6891a Bug 1757802 - Don't keep alive Shmem shared memory regions on IProtocol, r=ipc-reviewers,jld
With this new approach, Shmem instances will now have their handles
transferred inline within messages as attachments, rather than being
associated with their actors and sent in separate messages.

This has a few advantages:

* The implementation is much simpler
* Releasing all references to a Shmem will automatically destroy it by
  RAII, rather than leaking the shared memory region until the toplevel
  actor is destroyed, removing the need for types like RaiiShmem.
* This allows re-transmitting Shmem instances to another process, as we
  don't close the shared memory region handle upon receiving it.

But also has a disadvantage that because we keep alive the shared memory
region's handle until the shmem is destroyed, so that it can be
re-transmitted, we may end up using more FDs or HANDLEs while running.

This patch intentionally doesn't change or simplify callsites, removing
APIs like RaiiShmem, in order to make it easier to revert if this causes
issues on platforms like Linux due to FD exhaustion. If we don't run
into increased resource exhaustion problems, we can make these changes
in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D140211
2022-04-18 19:26:15 +00:00
Katherine Patenio c27b0bcfc0 Bug 1761110 - Add tests for video wrapper method shouldHideToggle. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D142265
2022-04-18 19:18:18 +00:00
Mozilla Releng Treescript 63d4fef513 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
br -> fde3466e78ee77e1608d48985d7b75e7eab94c35
de -> d68a69d60a55bd34a3c53896b5aa915d9480472e
hye -> 00dda507bf462ed2f73a94ea32505f9f4c152f5b
pt-BR -> 20b2527b86e54096e0264b8a56a0f8b4125969ec
tg -> 098e0b3c6c675c831c5637575180de05c52073b3
2022-04-18 19:04:22 +00:00
Gavin Suntop 57ca6c5743 Bug 1764954 - load jank fix for articlelist in STP r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D143932
2022-04-18 18:57:23 +00:00
Chun-Min Chang 05062cbccc Bug 1238038 - Mochitest for opening multi mics r=padenot
Add a test to verify we can open multiple microphones

Depends on D139445

Differential Revision: https://phabricator.services.mozilla.com/D143102
2022-04-18 18:45:37 +00:00
Chun-Min Chang b9c50420dd Bug 1238038 - Remove mInputDeviceID in MediaTrackGraph r=padenot
The mInputDeviceID can be removed now since we can get the input-device
id via the DeviceInputTrackManager on the graph-thread side now.

Depends on D139444

Differential Revision: https://phabricator.services.mozilla.com/D139445
2022-04-18 18:45:37 +00:00
Chun-Min Chang 16e2771d97 Bug 1238038 - Manage MediaTrack for devices in one class r=padenot
This patch creates a class to manage all DeviceInputTracks in one place,
which simplify the code in the MediaTrackGraph.

Depends on D138726

Differential Revision: https://phabricator.services.mozilla.com/D139444
2022-04-18 18:45:36 +00:00
Chun-Min Chang 2c01e7fdbf Bug 1238038 - Allow opening multiple devices r=padenot
This patch allows website users to open multiple microphones in the same
MediaTrackGraph.

Depends on D138189

Differential Revision: https://phabricator.services.mozilla.com/D138726
2022-04-18 18:45:36 +00:00
Chun-Min Chang 9fcad09de8 Bug 1238038 - Start non-native audio in NonNativeInputTrack r=padenot
This patch implements all the functionalities allowing us to use a
AudioInputSource to generate audio in NonNativeInputTrack.

Depends on D137911

Differential Revision: https://phabricator.services.mozilla.com/D138189
2022-04-18 18:45:36 +00:00
Chun-Min Chang 61d788c585 Bug 1238038 - Create an input-only audio source r=padenot
This patch creates an class managing an input-only audio stream within a
task thread. This class will be used as a source generating the audio
data to a NonNativeInputTrack in the following patch.

Depends on D116535

Differential Revision: https://phabricator.services.mozilla.com/D137911
2022-04-18 18:45:35 +00:00
Chun-Min Chang 056be6c1ac Bug 1238038 - Create a cubeb input stream wrapper r=padenot,pehrsons
To add a non-native input source in the MediaTrackGraph, we need a
input-only cubeb stream. This patch implements a light-weight wrapper to
operate the C style Cubeb APIs in a C++-friendly way.

Depends on D143101

Differential Revision: https://phabricator.services.mozilla.com/D116535
2022-04-18 18:45:35 +00:00
Chun-Min Chang a8aea91368 Bug 1238038 - Notify state changed in MockCubeb r=padenot
Add a waitable event that will be fired when the state is changed, so
the user can wait for certain state of the cubeb stream.

Depends on D143100

Differential Revision: https://phabricator.services.mozilla.com/D143101
2022-04-18 18:45:34 +00:00
Chun-Min Chang f58ef93762 Bug 1238038 - Relax channel limit in FromInterleavedBuffer r=padenot
Depends on D137910

Differential Revision: https://phabricator.services.mozilla.com/D143100
2022-04-18 18:45:34 +00:00
Chun-Min Chang 48930561b3 Bug 1238038 - Create AudioChunk from interleaved buffer r=padenot
This patch adds a method to create an AudioChunk from an interleaved
buffer.

Depends on D130233

Differential Revision: https://phabricator.services.mozilla.com/D137910
2022-04-18 18:45:34 +00:00
Chun-Min Chang 871aeca874 Bug 1238038 - Create a MediaTrack for non-native device r=padenot
Create a class named NonNativeInputTrack, inheriting from
DeviceInputTrack, to store the audio data from non-native input device.

Depends on D137782

Differential Revision: https://phabricator.services.mozilla.com/D130233
2022-04-18 18:45:33 +00:00
Chun-Min Chang 086c0af18e Bug 1238038 - Add a base type of MediaTrack for different devices r=padenot
Separate common interfaces that will be used for NonNativeInputTrack
class, from NativeInputTrack, into a base class: DeviceInputTrack, where
the NonNativeInputTrack will be implemented in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D137782
2022-04-18 18:45:33 +00:00
Greg Tatum e24a32d029 Bug 1765173 - Remove duplicated menubar.ftl load; r=platform-i18n-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D143923
2022-04-18 18:14:27 +00:00
Tom Schuster 75cea93864 Bug 1765060 - Remove dead JS streams code. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D143870
2022-04-18 18:29:36 +00:00
Jamie Nicol dee7767b62 Bug 1762424 - Unblock GPU process on Android 12. r=gfx-reviewers,nical
With the previous patches in this series we can properly recover from
a GPU process restart, so unblock it.

Differential Revision: https://phabricator.services.mozilla.com/D143487
2022-04-18 18:11:08 +00:00
Jamie Nicol 5dc0cd786f Bug 1762424 - Force crash if unable to create Surface after trying all fallback configurations. r=gfx-reviewers,nical
In bug 1762025 we found ourselves in a situation where we are unable
to ever create an EGLSurface, meaning we were continually attempting
to initialize a compositor, encountering a NEW_SURFACE webrender
error, causing us to tear down the compositor and create a new one,
repeating the cycle indefinitely.

This leaves the user with an unusable browser. We'd be better off
simply crashing. This patch adds a flag to FallbackFromAcceleration(),
which forces a crash if we have already exhausted all of the fallback
options. When calling FallbackFromAcceleration due to a NEW_SURFACE
error we set the flag to true. It may also be worthwhile setting this
flag for more errors in the future.

Differential Revision: https://phabricator.services.mozilla.com/D143486
2022-04-18 18:11:08 +00:00
Jamie Nicol 9849a83f64 Bug 1762424 - Provide SurfaceControl to compositor and render in to child Surface. r=agi,gfx-reviewers,geckoview-reviewers,jrmuizel,owlish
This adds new version of the GeckoView API
GeckoDisplay.surfaceChanged(), which takes a single argument of a new
type GeckoDisplay.SurfaceInfo. As well as containing fields for each
the the existing surfaceChanged() arguments, this has an additional
SurfaceControl field. This must be provided when rendering in to a
SurfaceView on SDK level 29 or greater. On earlier SDK levels, or when
rendering in to a TextureView or SurfaceTexture, this can be
null. SurfaceViewWrapper and GeckoView classes are updated to handle
this correctly. The old surfaceChanged() methods have been deprecated,
and tests have been updated to use the new version.

When provided, the SurfaceControl is passed along with the Surface
through to the widget and, when enabled, over to the GPU process. The
compositor widget then creates a child Surface from that
SurfaceControl, and renders in to that child Surface rather than the
parent one.

This works around a bug on Android 12 where following the GPU process
dying the Surface was left in an unusable state, meaning subsequent
attempts to initialize a compositor would fail. Because the Surface is
now created by the GPU process it gets destroyed when the process
dies, therefore a new Surface can successfully be created when we
reinitialize the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D143485
2022-04-18 18:11:07 +00:00
Jamie Nicol 366dbce5af Bug 1762424 - Generate SDK bindings for android.view.SurfaceControl. r=agi
And android.view.SurfaceControl$Transaction.

In order to generate these bindings we must increase the maximum SDK
version argument we pass to SDKProcessor to 29. However, doing so
means that we now attempt to generate bindings for both Surface's
Surface(SurfaceTexture) and Surface(SurfaceControl)
constructors. These both translate in to C++ functions with identical
signatures - Surface::New(jni::Object::Param) - causing a compilation
failure.

This patch therefore also allows the stubName property to override
constructor names, and overrides the latter to
Surface::FromSurfaceControl(), thereby avoiding the conflict.

Differential Revision: https://phabricator.services.mozilla.com/D143484
2022-04-18 18:11:07 +00:00
Iulian Moraru c97a26b3a1 Backed out changeset b424302d8ba0 (bug 1763191) for causing Bp-hybrid bustages on nsAccUtils. CLOSED TREE 2022-04-18 20:47:55 +03:00
Mike Conley c120197d06 Bug 1764790 - Remove TopLevelNavigationDelegate support. r=nika
Depends on D143926

Differential Revision: https://phabricator.services.mozilla.com/D143927
2022-04-18 17:46:10 +00:00
Mike Conley eec700aee9 Bug 1764790 - Remove TopLevelNavigationDelegate tests. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D143926
2022-04-18 17:46:09 +00:00
Ed Lee 6a1c9a4a6a Bug 1765130 - [Upgrade spotlight] The bottom part of the "g" letter from the "gracias" string is cut off on Firefox es-ES locale r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D143922
2022-04-18 17:24:13 +00:00