Commit Graph

785061 Commits

Author SHA1 Message Date
Butkovits Atila
298b987a56 Backed out 3 changesets (bug 1715900) for causing Python failures. CLOSED TREE
Backed out changeset c1bad2dbd960 (bug 1715900)
Backed out changeset 2355ea418b97 (bug 1715900)
Backed out changeset 11c95163a2f6 (bug 1715900)
2022-02-11 20:41:49 +02:00
Bob Owen
dbc9c90549 Bug 1754940: Make alternate winstation depend on non-native theme. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D138527
2022-02-11 18:18:15 +00:00
ahochheiden
ac7433fc00 Bug 1754726 - Add capturing for stderr when running Python Tests r=ahal
Since stdout is being piped, redirecting stderr to stdout causes it
to end up in the same pipe interleaved, which is what we want.

Also added a non-zero return code to be set when there is no test output.

Differential Revision: https://phabricator.services.mozilla.com/D138481
2022-02-11 18:04:18 +00:00
Bernard Igiri
e3dadbf6b0 Bug 1683053 - Keyboard and Screen Reader access for CC improvements r=ayeddi,kpatenio
Improved keyboard and screen reader accessibility for video closed captions menu by adding ARIA attributes, keyboard arrow navigation, and focus behavior to take the user into and out of the CC menu as it opens and closes.

Differential Revision: https://phabricator.services.mozilla.com/D136280
2022-02-11 17:50:27 +00:00
Sarah Clements
cccd748af9 Bug 1752830 - Remove preprocessor from aboutProcesses.css r=Gijs
* Use classList.toggle in aboutProcess.js and move arrow direction logic for column sorting into this file

Differential Revision: https://phabricator.services.mozilla.com/D138539
2022-02-11 17:42:57 +00:00
Thomas Wisniewski
1fbbcbbcc2 Bug 1715900 - Add initial tests (and helpers) for the mach test-interventions command; r=jgraham
Depends on D138384

Differential Revision: https://phabricator.services.mozilla.com/D138540
2022-02-11 17:27:45 +00:00
Thomas Wisniewski
10326d782c Bug 1715900 - Add a mach test-interventions command for testing webcompat interventions; r=jgraham,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138384
2022-02-11 17:27:44 +00:00
Thomas Wisniewski
dc66b2caf1 Bug 1715900 - Bump urllib3 to version 1.26.0; r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138383
2022-02-11 17:27:44 +00:00
Marian-Vasile Laza
2f69192421 Backed out 2 changesets (bug 1753004) for causing build bustages. CLOSED TREE
Backed out changeset 872873e809a6 (bug 1753004)
Backed out changeset 9297082bf5aa (bug 1753004)
2022-02-11 19:45:55 +02:00
Marian-Vasile Laza
6730dca994 Bug 1749786 - lint fix r=fix CLOSED TREE 2022-02-11 19:41:54 +02:00
Hubert Boma Manilla
3e28857636 Bug 1753926 - [devtools] Improve the breakpoints reloading test r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D136737
2022-02-11 17:19:56 +00:00
Chun-Min Chang
ef83403475 Bug 1751963 - Apply audio settings before starting audio r=padenot
The audio processing configurations should be set before starting audio
device and audio processing, which requires to know the channel-count
requested from user and then initializes the audio processing settings
based on the channel count.

Depends on D136921

Differential Revision: https://phabricator.services.mozilla.com/D136922
2022-02-11 17:19:39 +00:00
Chun-Min Chang
91e0223818 Bug 1751963 - Remove outdated comments r=padenot
The `NotifyInputData` has been removed in bug 1741959. Now the
`mRequestedInputChannelCount` is totally unrelated with it.

Depends on D136920

Differential Revision: https://phabricator.services.mozilla.com/D136921
2022-02-11 17:19:39 +00:00
Chun-Min Chang
36c89f9552 Bug 1751963 - Set channel-count before pass-through r=padenot
In the current design, the `SetPassThrough` can start the initial step
for audio-processing, which requires to know the channel-count requested
by the users, so it's better to set the channel-count before setting the
pass-through to prevent from using an incorrect channel-count value.

Depends on D136919

Differential Revision: https://phabricator.services.mozilla.com/D136920
2022-02-11 17:19:38 +00:00
Chun-Min Chang
6f11564693 Bug 1751963 - Rephrase comments for mCurrentPrefs r=padenot
`MediaEngineWebRTCMicrophoneSource` doesn't need to know `APM`. The
`AudioInputProcessing` takes care of the audio processing provided by
libwebrtc.

Depends on D136796

Differential Revision: https://phabricator.services.mozilla.com/D136919
2022-02-11 17:19:38 +00:00
Chun-Min Chang
afebeefd3e Bug 1751778 - Move declaration to if statement r=padenot
Depends on D136795

Differential Revision: https://phabricator.services.mozilla.com/D136796
2022-02-11 17:19:38 +00:00
Chun-Min Chang
fc60701613 Bug 1751778 - Allow re-evaluateing input device before starting audio r=padenot
We are going to call `AudioInputProcessing::SetRequestInputChannelCount`
in the following patch (D136922 in bug 1751963), which will call
`MediaTrackGraphImpl::ReevaluateInputDevice`, via
`MediaEngineWebRTCMicrophoneSource::ApplySettings` before starting the
`AudioInputProcessing` and creating an `AudioCallbackDriver` in
`MediaTrackGraph`. It makes sure the input-channel count meets the current
user preference before starting the audio device and the audio
processing. However, if the current `GraphDriver` is not a
`AudioCallbackDriver` when `ReevaluateInputDevice` is called, we will hit
an assertion. To allow setting the correct input-channel count before
starting the audio device, we need to replace the assertion to an if
statement.

Differential Revision: https://phabricator.services.mozilla.com/D136795
2022-02-11 17:19:37 +00:00
Jan Odvarko
340fc67179 Bug 1753614 - [devtools] Rename mdn-utils file r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138410
2022-02-11 17:18:41 +00:00
Sergey Galich
956deb07a1 Bug 1754862 - can't access property "flowId", this.activeSection is undefined. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D138479
2022-02-11 17:18:19 +00:00
Randell Jesup
84be70e93b Bug 1749786 - websocketchannel cleanup r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135727
2022-02-11 17:14:07 +00:00
Gijs Kruitbosch
1c9aed5e46 Bug 1753004, r=mhowell
Depends on D138320

Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-11 17:12:45 +00:00
Gijs Kruitbosch
247b19e16e Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-11 17:12:45 +00:00
Paul Adenot
73ec657e69 Bug 1713410 - Use a wider integer in resampling segment calculation, to avoid overflow. r=alwu
I caught this locally on Android, c.mDuration was 104517 (which is more than two
seconds at the rate it was), it was overflowing uint32_t because we want to do
this in integers so the multiplication is big.  The alternative is to make the
computation in floating point, rounding up so that there's enough space in the
buffer.

Now I wonder why we have such a big segment sometimes, and only on some OSes, but
we can investigate this later.

Differential Revision: https://phabricator.services.mozilla.com/D138303
2022-02-11 16:58:52 +00:00
Paul Adenot
aa56e84f57 Bug 1754006 - Add profiler markers in push/pop operations on the AudioSink ring buffer. r=alwu
Depends on D138028

Differential Revision: https://phabricator.services.mozilla.com/D138048
2022-02-11 16:58:52 +00:00
Paul Adenot
0630b647a3 Bug 1754006 - Increase the processed media queue size and threshold in AudioSink. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D138028
2022-02-11 16:58:51 +00:00
Nika Layzell
001c77587c Bug 1746115 - Perform data URI blocking from DocumentLoadListener, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D138213
2022-02-11 16:34:24 +00:00
Dan Mosedale
f319e6a711 Bug 1749775 - Add user telemetry for 98 VPN promo, r=andreio,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D135874
2022-02-11 16:31:06 +00:00
Calixte
53839b33fd Bug 1753509 - Add support for search with or without diacritics in the pdf viewer r=pdfjs-reviewers,bdahl
Differential Revision: https://phabricator.services.mozilla.com/D137796
2022-02-11 16:28:19 +00:00
Nika Layzell
fa19de50d5 Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium
These assertions are already diagnostic asserts, and this will make
failures to check Maybe into safe crashes rather than security bugs on
all branches.

A failure to check Maybe is more dangerous than a null pointer
dereference, as the generated code will produce a valid reference to
uninitialized data rather than a null reference which should safely
segfault.

Differential Revision: https://phabricator.services.mozilla.com/D138208
2022-02-11 16:28:01 +00:00
Neil Deakin
376736ae91 Bug 1681712, wait for the MozAfterPaint event before swapping remote browsers, so that tab switching doesn't get confused when the browser gets swapped out, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138386
2022-02-11 16:24:47 +00:00
Barret Rennie
538d6991f2 Bug 1754917 - Clone repositories with core.autocrlf=input when vendoring r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138516
2022-02-11 16:23:08 +00:00
Barret Rennie
d15e6e9f9a Bug 1754916 - Do not add extra newline to moz.yaml files when vendoring r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138515
2022-02-11 16:23:08 +00:00
Barret Rennie
989f5c9cfd Bug 1754706 - Run scripts using absolute paths in mach vendor r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138416
2022-02-11 16:23:07 +00:00
Barret Rennie
8c18a0ada2 Bug 1754704 - Support vendoring tags with @ or / in them r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138415
2022-02-11 16:23:07 +00:00
Barret Rennie
2cafec6d77 Bug 1754702 - Use mozpath.normsep on paths when vendoring r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138414
2022-02-11 16:23:06 +00:00
Barret Rennie
49d5b27e01 Bug 1754705 - Detect MSYS environment when MOZILLABUILD is set r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138417
2022-02-11 16:23:06 +00:00
Sarah Clements
bdd15984a3 Bug 1747430 - remove tabIndicatorReplacesIcon in browser tabs css file r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137775
2022-02-11 16:19:52 +00:00
Marian-Vasile Laza
610558649b Backed out 3 changesets (bug 1754130) for causing mochitest failures. CLOSED TREE
Backed out changeset 7fea32057b92 (bug 1754130)
Backed out changeset 1ac8f10e0025 (bug 1754130)
Backed out changeset 3d56b847ddf9 (bug 1754130)
2022-02-11 18:30:11 +02:00
David Parks
d15d93345a Bug 1720353: Make navigator test expect plugins when resistFingerprinting is not set r=preferences-reviewers,Gijs
resistFingerprinting used to be set for the whole test but was changed to consider cases where it is unset.  In those cases, pluginsLength and mimeTypesLength tests were only passing because there were no plugins installed and, later, no plugins were permitted.  We now hardcode some fixed PDF entries so the test has to consider that.

Depends on D133291

Differential Revision: https://phabricator.services.mozilla.com/D138497
2022-02-11 15:59:01 +00:00
David Parks
532e4bcbe5 Bug 1720353: Implement new navigator.{plugins,mimeTypes,pdfViewerSupported} specs r=peterv
This implements the new HTML spec for these fields, which now serve hard-coded values, depending on whether or not PDFs are supported.  The values were deemed important to maintain web compatibility.  The spec can be found in section 8.9.1.6:

https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewing-support

The web-compat test for this can be found at:

https://wpt.live/html/webappapis/system-state-and-capabilities/the-navigator-object/plugins-and-mimetypes.html

This patch follows the spec for the PDF plugins if "pdfjs.disabled" is false.  It also produces empty plugin arrays if "pdfjs.disabled" is true, as per the spec.  Both cases are tested by the wpt.live page.

Differential Revision: https://phabricator.services.mozilla.com/D133291
2022-02-11 15:59:01 +00:00
criss
c7a0cd35e9 Backed out changeset 6127738d1918 (bug 1754426) for causing failures on browser_interactions_scrolling.js. CLOSED TREE 2022-02-11 17:48:44 +02:00
Bryan Thrall
0a9d769edd Bug 1753775 - Disable CET for standalone SpiderMonkey tools r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D138345
2022-02-11 15:38:03 +00:00
Lee Salzman
4fb52bf9bc Bug 1754130 - Support presenting a WebGLFramebuffer to its own swap chain without opaque FB. r=aosmond,jgilbert
Most of the support for presenting a WebGLFramebuffer to a swap chain existed as part of the
mechanism for opaque WebXR framebuffer support. However, such "opaque" framebuffer are meant
to be opaque in the sense that their attachments can't be inspected or changed, which does
not provide the requisite level of control for efficiently implementing Canvas2D snapshots.

To this end, the existing Present mechanism is slightly extended to allow presenting to the
swap chain already present in WebGLFramebuffer without the existence of a corresponding
MozFramebuffer.

This also fixes a bug in that AsWebgl() was no longer being utilized in CanvasRenderer, such
that a new mechanism that routed GetFrontBuffer() was needed to fix the code rot.

There are also some efforts to remove a couple redundant copies I noticed in profiles along
the way.

Differential Revision: https://phabricator.services.mozilla.com/D138119
2022-02-11 15:36:30 +00:00
Lee Salzman
8a34e8c65e Bug 1754130 - Implement SourceSurfaceWebgl for faster snapshots of DrawTargetWebgl. r=aosmond
Now that each DrawTargetWebgl shares the same WebGL context, we can efficiently draw snapshots
of one DrawTargetWebgl to another without requiring any readback or error-prone driver-provided
shared context/resource mechanism. We just need to simply pass the WebGL texture from one target
to the other, and use it like any other texture.

This provides SourceSurfaceWebgl to store and pass along that WebGL texture. It is largely
modeled off of SourceSurfaceSkia in terms of its copy-on-write behavior. There are three
noteworthy state changes that it must track from DrawTargetWebgl - when the framebuffer
contents is changing, when the framebuffer is being destroyed, and when any cached texture
handle separate from a framebuffer is also being destroyed. It will copy, orphan, or read
back data as appropriate to handle each case.

If it needs to be mapped, it just forces a read back of the data into a CPU surface that
can be mapped as requested.

Differential Revision: https://phabricator.services.mozilla.com/D138118
2022-02-11 15:36:30 +00:00
Lee Salzman
fc2d848bbe Bug 1754130 - Implement SharedContext for sharing WebGL state among many DrawTargetWebgls. r=aosmond
Within DrawTargetWebgl, this implements a SharedContext class to store both the WebGL context and
also related resources for drawing with it. Not a lot of new code has actually been added as this
was mostly accomplished by refactoring as much drawing code as possible that touched the WebGL
context to be moved into SharedContext, while leaving any code that was only dealing with Skia
software rasterization still within DrawTargetWebgl itself as well as individual framebuffer state
that is unique to each DrawTargetWebgl instance.

Before DrawTargetWebgl can use SharedContext to draw, it must use SetTarget to install its framebuffer
as the one that the WebGL context will draw to as well as to learn details about the viewport and
other per-framebuffer state. All of the high-level cache state that was previously on DrawTargetWebgl
has now moved into SharedContext, so that SharedContext can easily access this for drawing as well
as to provide for the goal of simplifying resource limiting.

Differential Revision: https://phabricator.services.mozilla.com/D138117
2022-02-11 15:36:29 +00:00
Florian Quèze
7e1f0527c2 Bug 1753305 - Add 'Awake' profiler markers whenever a thread is awake, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D137695
2022-02-11 15:19:47 +00:00
Florian Quèze
7b45ca4063 Bug 1754519 - Add missing profiler_thread_sleep annotations, r=gerald,necko-reviewers,kershaw.
Differential Revision: https://phabricator.services.mozilla.com/D138341
2022-02-11 15:19:46 +00:00
Marian-Vasile Laza
013d79e7e6 Backed out 4 changesets (bug 1754474) for causing bc test failures. CLOSED TREE
Backed out changeset c6dd8b681aca (bug 1754474)
Backed out changeset 596955256cc6 (bug 1754474)
Backed out changeset fc692b3c27a2 (bug 1754474)
Backed out changeset 59eb7951a5eb (bug 1754474)
2022-02-11 17:30:03 +02:00
Dave Townsend
0c1aa3e5b0 Bug 1754426: DOM history changes should create new interaction records. r=Standard8
This also disables smooth scrolling in the interaction tests. When smooth scrolling
is enabled a single scroll, say by pressing the down arrow, actually scrolls in
a number of steps starting small, increasing then decreasing. Because we only
wait for a single scroll event to fire before the test switches pages we only
capture the scrolling distance from the very first step which is often small and
sometimes turns out to be 0. Disabling smooth scrolling makes the scroll happen
in one operation so we capture the entire scrolling distance.

Differential Revision: https://phabricator.services.mozilla.com/D138295
2022-02-11 14:51:17 +00:00
Alessio Placitelli
124d54e0d7 Bug 1754474 - Update FOG tests to use Glean's expiration by version. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D138466
2022-02-11 14:27:39 +00:00