Commit Graph

785253 Commits

Author SHA1 Message Date
Timothy Nikkel
6917164039 Bug 1754662. Refactor nsLayoutUtils::GetPopupFrameForEventCoordinates. r=emilio
This lets us re-use code for bug 1754436.

Differential Revision: https://phabricator.services.mozilla.com/D138392
2022-02-12 09:41:50 +00:00
Cristian Tuns
3f972b34cb Backed out 2 changesets (bug 1720353) for casuing reftest failures on 1113005.html CLOSED TREE
Backed out changeset d02b8df13ab0 (bug 1720353)
Backed out changeset e3593056496d (bug 1720353)
2022-02-12 04:34:08 -05:00
Cristian Tuns
3c1e2e8eb4 Backed out changeset 3b7f350adae9 (bug 1754662) for causing build bustages on nsLayoutUtils.cpp CLOSED TREE 2022-02-12 04:04:52 -05:00
Timothy Nikkel
a9685a14d8 Bug 1754662. Refactor nsLayoutUtils::GetPopupFrameForEventCoordinates. r=emilio
This lets us re-use code for bug 1754436.

Differential Revision: https://phabricator.services.mozilla.com/D138392
2022-02-12 08:46:47 +00:00
Mozilla Releng Treescript
1d4a896fe4 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
cy -> d71e2b278e5b37fadf552de75c67b0d476843acb
nb-NO -> 54fbebf91491f4ab42639fe007017ecad00d8854
pa-IN -> bbfc43db3f0349eff76131142d6621b1d45e21ab
pt-PT -> 53625bcbd4d9093f325d98edc087b5f22453b821
sl -> 640dbd6479e3fef1773bd9877ee65797d9f068a9
vi -> 78b72670d90773e63e12febbb66f4b07b9c7ff8c
2022-02-12 06:58:24 +00:00
Mike Hommey
52b59db295 Bug 1755076 - Remove loosen-msvc-detection.patch. r=firefox-build-system-reviewers,nalexander
The patch conflicts with latest clang trunk changes.

It was necessary back when we started using clang-cl instead of MSVC,
and we needed to fallback to MSVC for sources that clang-cl couldn't
build. Nowadays, with cross-compiles, that fallback can't happen
anyways, and even on native Windows builds we never use cl.exe.

Differential Revision: https://phabricator.services.mozilla.com/D138615
2022-02-12 05:52:14 +00:00
Mike Hommey
00c007643b Bug 1755076 - Adjust find_symbolizer_linux_clang patch to latest trunk. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138592
2022-02-12 05:52:14 +00:00
Ting-Yu Lin
476a867c3b Bug 1564726 Part 2 - Fix available block-size for block children in block container with box-decoration-break:clone. r=dholbert,emilio
If a block container has box-decoration-break:clone, its block-end border and
padding (BP) are *usually* drawn at the block-end edge of the current
column/page. Thus, when computing the available block-size for its children, we
should subtract its block-end border BP from it.

When I claim the block-end BP are *usually* drawn at the block-end edge of the
column/page, the exception is when a block container with a definite block-size
runs out of its block-size in a column/page. In this case, the block-end BP is
drawn at the block-end edge of its content-box. This patch wires the effective
content-box block-size computed in nsBlockFrame::Reflow() into
BlockReflowInput's constructor, and we do not subtract its block-end border BP
from the `mContentArea.BSize(wm)` when this case happens.

`BlockReflowInput::ContentBSize()` is the correct available block-size to reflow
the children, precomputed in BlockReflowInput's constructor. See
https://searchfox.org/mozilla-central/rev/c12a59323ee46b29b90c9917a3a7a70ea714ffec/layout/generic/BlockReflowInput.cpp#118-126

The remove hunk was a hack, working only for ColumnSetWrapper with
`box-decoration-break:clone`. It's no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D138367
2022-02-12 02:56:17 +00:00
Ting-Yu Lin
de2898b213 Bug 1564726 Part 1 - Make BlockReflowInput::ComputeBlockAvailSpace return the result rect. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D138366
2022-02-12 02:56:16 +00:00
Kelsey Gilbert
aeeb1e199d Bug 1750310 - Centralize and reuse pixelstorei pack/unpack handling. r=lsalzman
* Accept that finding an explicit unpack for a given stride might fail.
* Directly use the logic from the GLES spec for unpacking stride calculations.
* Use structuredSrcSize member.
* Calc explicit unpack based on dstStride, not srcStride.

Differential Revision: https://phabricator.services.mozilla.com/D136052
2022-02-12 02:20:42 +00:00
Butkovits Atila
a3da6c23de Backed out changeset 5d7859b835a5 (bug 1682681) for causing failures at browser_ext_contextMenus.js. CLOSED TREE 2022-02-12 03:45:02 +02:00
Shane Caraveo
aed5dcc5c4 Bug 1748548 settings support for persistent listeners r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D136542
2022-02-12 01:08:16 +00:00
Randell Jesup
64cc3edc7c Bug 1746415: ScriptPreloader cleanup r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D138513
2022-02-12 00:10:18 +00:00
Shane Caraveo
c512df7dbb Bug 1682681 fix intermittent context menu failure on non-visible elements r=robwu
If elements added to the doc were not visible, context-click on
the element would fail because composedTarget.ownerDocument is null.

Differential Revision: https://phabricator.services.mozilla.com/D138190
2022-02-11 23:58:07 +00:00
Eitan Isaacson
f71f91ae6c Bug 1717501 - Null check attributes in MacUtils::GetAccAttr. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D138475
2022-02-11 23:48:55 +00:00
Ray Kraesig
8fdfb93360 Bug 302092 - Perform various minor modernizations r=handyman
Perform some cleanup to bring the code in this function closer to modern
standards. (This includes, but is not limited to, the simple
variable-name change requested by the Bugzilla bug.)

This commit should have no effective functional changes.

Tested via `browser/base/content/test/general/browser_clipboard.js`,
which was confirmed to complain if changes were made to this function's
output (and, specifically, to the values in the start- and
end-positions).

Differential Revision: https://phabricator.services.mozilla.com/D138087
2022-02-11 22:53:12 +00:00
Joel Maher
da51c2e530 Bug 1754098 - move remaining mochitest from e10s -> no-fission. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D138578
2022-02-11 21:51:33 +00:00
Iulian Moraru
5451258987 Backed out 2 changesets (bug 1753004) for causing mochitest failures on browser_download_open_with_internal_handler.js. CLOSED TREE
Backed out changeset 038f733be6ef (bug 1753004)
Backed out changeset bede2b364102 (bug 1753004)
2022-02-12 01:09:41 +02:00
Iulian Moraru
562713e6bd Backed out changeset eaeaf7286193 (bug 1748643) for causing mochitest failures on test_midi_permission_gated.html. CLOSED TREE 2022-02-12 01:08:29 +02:00
Gijs Kruitbosch
912854cac5 Bug 1753004, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-11 21:13:37 +00:00
Gijs Kruitbosch
0bb0b4ea48 Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-11 21:13:36 +00:00
Mike Kaply
6db0f566ff Bug 1711870 - Use http-on-examine-response to block redirects in policy. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D137869
2022-02-11 21:04:51 +00:00
Randell Jesup
2f491bfc19 Bug 1749056: Parser cleanup r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D135409
2022-02-11 20:56:58 +00:00
Alexandre Lissy
5e6de8828e Bug 1754572 - Ensure we stop utility process after running tests r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138484
2022-02-11 20:48:58 +00:00
Alexandre Lissy
d7db5c7bd5 Bug 1754572 - Add a delayed kill test r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138483
2022-02-11 20:48:58 +00:00
Alexandre Lissy
8dc1a247ac Bug 1754572 - Fix hard_kill test by waiting on process death r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138482
2022-02-11 20:48:57 +00:00
Alexandre Lissy
4e57affeb7 Bug 1754572 - Correct error handling in UtilityProcessTest r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138356
2022-02-11 20:48:57 +00:00
Agi Sferro
2f5398973b Bug 1753772 - Add xorigin-tests to android test runner. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D138373
2022-02-11 20:39:30 +00:00
Alexandre Poirot
fa1559c5bf Bug 1517383 - [devtools] Request a longer timeout for browser_toolbox_hosts.js. r=nchevobbe
Opening and closing toolbox allocate lots of objects
and the GC pauses between each task takes some time.
In addition to that, there is some leaked memory, which slow things down.
So that the test takes too much time to run on DEBUG builds.

Differential Revision: https://phabricator.services.mozilla.com/D138298
2022-02-11 20:37:52 +00:00
Alexandre Poirot
47c427b0fd Bug 1517383 - [devtools] Avoid exceptions while running changes sidebar tests. r=nchevobbe
We were trying to process style actor that did not relate to any stylesheet.
This ended up trying to create stylesheet resources with no stylesheet object,
and various exception because of that.

Differential Revision: https://phabricator.services.mozilla.com/D138328
2022-02-11 20:37:52 +00:00
Alexandre Poirot
31de87bdc6 Bug 1517383 - [devtools] Remove the history middleware. r=nchevobbe
This history middleware is bad as it forces leaking all action until firefox is closed.
This doesn't seem to be enough to reduce the runtime of browser_toolbox_hosts.js,
but this may help free more objects in test and reduce intermittent and timeouts.

I suspect that there is some other leaks happening in this toolbox host test.

Differential Revision: https://phabricator.services.mozilla.com/D138297
2022-02-11 20:37:52 +00:00
Tom Schuster
8fd8ae0f82 Bug 1754912 - Root ReadableStreamBYOBReadResult. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D138565
2022-02-11 20:24:23 +00:00
Katherine Patenio
24402f03bc Bug 1752367 - added tests to ensure pip cc order using vttcue.line r=mhowell,niklas
Differential Revision: https://phabricator.services.mozilla.com/D138233
2022-02-11 20:06:06 +00:00
Lee Salzman
5c61fe02e5 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 19:49:56 +00:00
Lee Salzman
58cc63bda7 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 19:49:55 +00:00
Lee Salzman
8346a766e0 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 19:49:55 +00:00
Nick Alexander
48d8ec73b7 Bug 1754931 - Skip new update test on newer macOS versions and Apple hardware. r=bytesized,application-update-reviewers
The manner in which we prepare update tests is not working with some
part of the macOS signing regime; this seems to be the same issue as
Bug 1707753 and Bug 1713329.

Differential Revision: https://phabricator.services.mozilla.com/D138563
2022-02-11 19:33:25 +00:00
Niklas Baumgardner
002f2ad1b0 Bug 1749074 - Cancel screenshots on page unload. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D135522
2022-02-11 19:30:04 +00:00
Mozilla Releng Treescript
1a7223c88a no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
cy -> 4e91e9dfb9e4040172d01a4f894b00fc49d9eed3
el -> e5e338c560af146680fb0bb0e69d002055c9dd12
hr -> d51b43f56056d1e5efd34e15059cb9eb8d34f5f7
hye -> 4c35f70ec38aaa1267292202851cc8130218712a
is -> 37dbc92c07b4a80c1d22477aa3c7d9456e0043d4
it -> 01ea005b4ed20e5ab1f9b51ea0f3426751ec22a3
nb-NO -> 3161ace960eebd7a9808a41d3d6a404a4825596f
sat -> 964ad792aaa1ed2858c9e8ab09d67b3d08b31586
sl -> ed7eb7b7b0947aa29ab0570dc2137e8fc4178d41
tg -> 6606d2ab0b006fb11eaaf730816e35bd31c4a830
2022-02-11 19:05:37 +00:00
ahochheiden
f405f02655 Bug 1753795 - Add progress bar (via tqdm) to running Python Tests r=ahal
This will give additional feedback to the user. Now they will have
immediate feedback in regards to the progress of the test run, instead
of being unsure of what's happening until the first test run completes.

Differential Revision: https://phabricator.services.mozilla.com/D137925
2022-02-11 18:51:46 +00:00
Sylvestre Ledru
0f69196034 no bug - fx doc review: remove duplicate content r=marco
Differential Revision: https://phabricator.services.mozilla.com/D138524
2022-02-11 18:50:54 +00:00
Emilio Cobos Álvarez
f25b45a97f Bug 1751644 - Don't shrink padding of non-native menulist items. r=stransky
Native ones also have a big-ish padding (set by the theme).

Differential Revision: https://phabricator.services.mozilla.com/D136813
2022-02-11 18:41:46 +00:00
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