Commit Graph

917953 Commits

Author SHA1 Message Date
Alexandre Poirot
8c2b7e0766 Bug 1651518 - [devtools] Ensure cleaning up workers which are destroyed during their initilization. r=devtools-reviewers,nchevobbe
We may unwatch for workers, while the creation of the target actor is still ongoing.

Differential Revision: https://phabricator.services.mozilla.com/D210367
2024-05-27 09:53:55 +00:00
Alexandre Poirot
0820f8bcfb Bug 1651518 - [devtools] Ensure destroying active target actors on toolbox closing. r=devtools-reviewers,nchevobbe
The cleanup work done from didDestroy was only calling `unwatch` on the Watcher classes,
which was typically unregistering the platform listeners.
We were missing calling `destroyTargetsForWatcher` on them which is meant to destroy
the target actors, which can also register platform listeners and be leaking data.

Differential Revision: https://phabricator.services.mozilla.com/D210366
2024-05-27 09:53:55 +00:00
Alexandre Poirot
7710239d70 Bug 1651518 - [devtools] Unregister the JS Process Actor only on watcher actor destruction. r=devtools-reviewers,nchevobbe
Stop unregistering the JS Process actor when removing the last watched target/resource type.
Instead only unregister it when the Watcher Actor is destroyed.

It prevents some race condition where unwatch request (which aren't awaited for)
unregister the actor late and the next test/next toolbox opening would have its actor
unregistered by late destruction code related to the previously closed toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D210365
2024-05-27 09:53:54 +00:00
Alexandre Poirot
b4a695c2c0 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-27 09:53:54 +00:00
Alexandre Poirot
7b27af09b0 Bug 1651518 - [devtools] ResourceCommand.watchResources should be protected from mutation made to its array argument. r=devtools-reviewers,nchevobbe
Modifying the content of the list of resources may suddently start or stop receiving new resources types,
that, without calling (un)watchResources again!

Differential Revision: https://phabricator.services.mozilla.com/D205603
2024-05-27 09:53:53 +00:00
Alexandre Poirot
20591eed8f Bug 1651518 - [devtools] Ensure waiting for CSS Warning full listening when toggling the filter from tests. r=devtools-reviewers,nchevobbe
The enhancer was brittle as nothing was waiting for its completion.
We should rather do such work from the action layer. At least this can delay the action completion,
which the test header (setFilterState) already wait for.

Differential Revision: https://phabricator.services.mozilla.com/D205602
2024-05-27 09:53:53 +00:00
Alexandre Poirot
dce178ad20 Bug 1883847 - [devtools] Add support for server side SHARED_WORKER target support. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204873
2024-05-27 09:53:53 +00:00
Emilio Cobos Álvarez
4d37e38a11 Bug 1898217 - Don't let menus overlap OS bar on GTK. r=stransky
Since in some DEs at least it would make the menu not clickable.

Differential Revision: https://phabricator.services.mozilla.com/D211714
2024-05-27 09:47:21 +00:00
Cristian Tuns
56a55d7252 Backed out changeset d66c4f215994 (bug 1809824) for causing android-lint-fenix failures CLOSED TREE 2024-05-27 05:41:57 -04:00
Gabriele Svelto
1cf3b81e8d Bug 1898180 - Use proper process ID for all the crash reporter functions r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D211166
2024-05-27 09:32:11 +00:00
Cristian Tuns
10d3567120 Merge mozilla-central to autoland on a CLOSED TREE 2024-05-27 05:30:16 -04:00
mcarare
3ed9a98412 Bug 1809824 - Properly check collection size before deleting tab. r=android-reviewers,boek
Differential Revision: https://phabricator.services.mozilla.com/D211050
2024-05-27 08:43:38 +00:00
Cristian Tuns
a06e8c19b7 Backed out changeset 8397cd70db46 (bug 1893359) for causing build bustages in MPRISServiceHandler.cpp CLOSED TREE 2024-05-27 04:41:14 -04:00
Jan-Erik Rediger
f73e2344c5 Bug 1897219 - FOG: Pass the ride-along-pings map to the Glean SDK r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D210793
2024-05-27 08:07:29 +00:00
Jan-Erik Rediger
f12a7bec61 Bug 1898570 - Update to Glean v60.2.0 r=chutten,supply-chain-reviewers,mach-reviewers,android-reviewers,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D211415
2024-05-27 08:07:29 +00:00
stransky
3e7a5b219c Bug 1893359 [MPRIS] Use remoting name as desktop entry identifier r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D211340
2024-05-27 08:06:36 +00:00
Cristian Tuns
7ff01c593b Backed out changeset afd749e54038 (bug 1898078) for causing fenix failures. CLOSED TREE 2024-05-27 03:56:29 -04:00
AndiAJ
1c9710f194 Bug 1841966 - Fix verifyOpenLinkInNewPrivateTabContextMenuOptionTest UI test r=ohorvath
The UI test takes use of the retry rule and was flaky because:
# on the first try after performing the click on the "Switch" button nothing happened (should switch to private browsing)
# on the second and third retry, the switch to private browsing is properly performed, but when trying to verify the existing open tabs, an empty tabs tray was displayed

The problem on the second and third retry most likely happened because of some syncing problems between UIAutomator and Compose.
Noticed in the past that in some cases the wait performed using UIAutomator will block the the test if the next steps are being performed with Compose.

To overcome this problem, I've replaced the UIAutomator **waitForExists** with **waitUntilAtLeastOneExists** that is part of Compose in the **verifyExistingOpenTabs** function.

The UI test successfully passed 300x on Firebase 
Ran all UI tests 1x on Firebase and successfully passed 

Differential Revision: https://phabricator.services.mozilla.com/D211367
2024-05-27 07:27:11 +00:00
Julien Cristau
3759e3792f Bug 1898762 - copy windows en-US full installers for nightly to the timestamped -l10n directory. r=releng-reviewers,taskgraph-reviewers,gabriel
This makes it possible for bouncer to point at any locale's installer in
the same place (see bug 1895249).

Differential Revision: https://phabricator.services.mozilla.com/D211560
2024-05-27 07:12:59 +00:00
Julien Cristau
42c1073273 Bug 1898762 - copy windows en-US full installers for nightly to the timestamped -l10n directory. r=releng-reviewers,taskgraph-reviewers,gabriel
This makes it possible for bouncer to point at any locale's installer in
the same place (see bug 1895249).

Differential Revision: https://phabricator.services.mozilla.com/D211560
2024-05-27 07:12:59 +00:00
oana.horvath
d5bd7b2e18 Bug 1858875 - Workaround to open the ETP settings when the button is not available in the quick action sheet r=ajoltan DONTBUILD
The test is sometimes flaky when the network connection is bad and trackers don't get blocked, so the protection quick settings sheet doesn't have a "Details" section which contains the button for the ETP settings.
Re-ran the test 50 times, all green: https://treeherder.mozilla.org/jobs?repo=try&revision=9f4373ed5f749ee72d64cf4c490d25470a77fa27&selectedTaskRun=AOedklhKSBiM6cwpudB1_w.0

Differential Revision: https://phabricator.services.mozilla.com/D211523
2024-05-27 07:10:06 +00:00
Mozilla Releng Treescript
3eaca13506 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
sl -> bdfe2ac5f376d7de41fcfeb964a4c9e44eecab3a
zh-TW -> cec8f0c2ac4512f7be9b759bc2de21026c57163c
2024-05-27 07:00:32 +00:00
Pier Angelo Vendrame
5c25e1c461 Bug 1787790: Normalize system fonts with RFP on. r=emilio
System fonts can leak any user customization of system fonts, or user's
locale (e.g., en-US and ja Windows have different system fonts).
Also, Linux distributions/desktop environments set default fonts in
different ways.

Customization can be detected either with font metrics, the font allowed
list is not enabled or the font is included in it, or with
getComputedStyle, that leaks the name of the font that Firefox tries to
apply.

This patch try to prevent these leaks by using a generic "sans-serif"
for all system fonts, except on macOS, where it uses "-apple-system",
and on Android, where these fonts always use Roboto.

Differential Revision: https://phabricator.services.mozilla.com/D163576
2024-05-27 06:57:04 +00:00
oana.horvath
dcae3aecb0 Bug 1898078 - Fix failures due to location permission prompt r=aaronmt DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D211214
2024-05-27 06:51:08 +00:00
James Teh
fb990d83da Bug 1898661: In the Dev Tools tree LabelCell and TreeCell components, don't aria-labelledby the span with the column header. r=devtools-reviewers,nchevobbe
Now that the a11y engine correctly traverses aria-labelledby during name computation per the spec, the aria-labelledby overrides the content of the cell when computing the name for the tree item.
Strictly speaking, putting aria-labelledby on a span is a spec violation these days anyway.

Differential Revision: https://phabricator.services.mozilla.com/D211503
2024-05-27 06:40:35 +00:00
Tooru Fujisawa
071e366ef9 Bug 1898677 - Cache the result of bytecode encoding condition. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D211517
2024-05-27 06:31:16 +00:00
James Teh
ad246a46f8 Bug 1897597 part 2: Don't treat bidi split continuations as line breaks. r=morgan
Continuations occur when text wraps onto a new line (fluid continuations), but they also occur when the text direction changes (non-fluid continuations).
Previously, TextLeafRange assumed that all continuations were line breaks.
Now, we explicitly treat fluid continuations as line breaks.
It's also possible for a non-fluid continuation to be on a different line if the text direction changes between the end of the previous line and the start of another.
In that case, we must use a line iterator to check whether they are on different lines.

Differential Revision: https://phabricator.services.mozilla.com/D210893
2024-05-27 06:21:04 +00:00
James Teh
b8d61523d1 Bug 1897597 part 1: Split TextLeafRange code to check whether frames are on different lines into a separate function. r=morgan
There should be no functional change here.
However, we're going to need to reuse this elsewhere in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D210986
2024-05-27 06:21:03 +00:00
Mozilla Releng Treescript
6f56801283 no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE 2024-05-27 00:17:00 +00:00
James Teh
f0250b65b5 Bug 1898198: Fix RemoteAccessible::TakeFocus when the browser UI has focus. r=eeejay
Previously, this didn't move the focus at all in this case.

Differential Revision: https://phabricator.services.mozilla.com/D211314
2024-05-26 21:50:29 +00:00
longsonr
ebd4094092 Bug 1899041 - Additional rendering observer container optimisations r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D211678
2024-05-26 19:06:59 +00:00
Mozilla Releng Treescript
6bda9aa9c8 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
es-ES -> cd1d7ecb859473beb9f5975bd2aa85dd18f32be9
it -> 48b85357a3d93e11ef4d1c49bb5fabbde94f805d
nn-NO -> d662ee37c46422ec8e17c6830d2d9a1495ac0dac
2024-05-26 19:01:45 +00:00
Gregory Pappas
dd4a8773bb Bug 1851085 - Remove layout.css.computed-style.shorthands pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D211487
2024-05-26 16:47:47 +00:00
Andrew Osmond
3609b689a2 Bug 1899018 - Enable threadsafe GL on Linux with NVIDIA 545.23.6 out to release. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D211668
2024-05-26 16:13:19 +00:00
Eden Chuang
076bd81ff5 Bug 1898108 - Making WorkerPrivate::mDebuggerQueue accesses protected by WorkerPrivate::mMutex. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D211213
2024-05-26 15:55:49 +00:00
Olli Pettay
1f04aa4fed Bug 1898813 - Add a test for the target of coalesced and predicted events, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D211614
2024-05-26 12:07:04 +00:00
Mozilla Releng Treescript
d551afaf61 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
skr -> 9a11ba5f5a2f51e198fd881693979f675e485d9e
2024-05-26 07:00:54 +00:00
Cosmin Sabou
6b6ae5aba8 Bug 1848488 - Disable browser_should_restore_tab.js on linux 18.04 debug for frequent failures. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D211658
2024-05-26 03:13:27 +00:00
Andrew Osmond
9bae18b630 Bug 1898894 - Enable DMABuf on Linux with NVIDIA 545.23.6 out to release. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D211661
2024-05-26 02:00:12 +00:00
Mozilla Releng Treescript
5760e12361 no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE 2024-05-26 00:19:25 +00:00
Mozilla Releng Treescript
7452d1f23c no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
fur -> a23e87ca4d1ce11d9d13c274d19288caf1e55989
pt-PT -> 76c51dabdc947c7f9d481af738f70c1809520051
sc -> 2a063975554454ccd092726f50c0659f970854c1
skr -> 85fbc2b9fc9e5c8ed3e70e9f31b472bdc431516a
2024-05-25 18:59:25 +00:00
Harshit Sohaney
ffbc69a780 Bug 1895978 - Add the new clear on shutdown cache pref to the cache purging task code. r=pbz,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D210681
2024-05-25 15:19:14 +00:00
Harshit Sohaney
17372d5f6f Bug 1896949 - Re-enable the new clear history dialog. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D210682
2024-05-25 15:19:14 +00:00
Harshit Sohaney
4af67d7e8c Bug 1895612 - Add new prefs to run the clear history pref migration again for all users for the new clear history dialog. r=pbz
Depends on D208411

Differential Revision: https://phabricator.services.mozilla.com/D209758
2024-05-25 15:19:14 +00:00
Harshit Sohaney
7b989030f6 Bug 1892947 - (part 2) tests for clear cookies and site data on shutdown pref alignment with new clear history dialog. r=pbz,settings-reviewers
Depends on D208410

Differential Revision: https://phabricator.services.mozilla.com/D208411
2024-05-25 15:19:13 +00:00
Harshit Sohaney
f92dcd93b0 Bug 1892947 - Align clear on shutdown for cookies and site data section prefs to the new clear on shutdown prefs. r=pbz,settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D208410
2024-05-25 15:19:13 +00:00
André Bargull
c83e44bb5d Bug 1898538 - Part 8: Workaround GC hazard warning in PrepareTemporalFields. r=spidermonkey-reviewers,sfink
GC hazard analysis complains that `const TemporalFields FallbackValues{}` contains
GC things and the `GetProperty` call in the next (!) loop iteration may trigger a GC.

Workaround this warning by moving `const TemporalFields FallbackValues{}` into a
separate function.

Depends on D211399

Differential Revision: https://phabricator.services.mozilla.com/D211400
2024-05-25 14:25:55 +00:00
André Bargull
01407360bd Bug 1898538 - Part 7: Fix shift zero case. r=spidermonkey-reviewers,sfink
Running the tests with optimisations enabled uncovered a bug in the
shift operator implementations:
The code from "Hacker's Delight" assumes that shifting an N-bit integer by N bits
returns zero, i.e. `i64 >> 64 == 0`, but this is undefined behaviour in C++. The
shift operators executed this case when `shift == 0`, because then
`low >> (64 - shift) == low >> (64 - 0) == low >> 64`. Add an extra branch to
handle the case when `shift` is zero to avoid hitting UB.

Depends on D211398

Differential Revision: https://phabricator.services.mozilla.com/D211399
2024-05-25 14:25:55 +00:00
André Bargull
e5dc0f434e Bug 1898538 - Part 6: Make Int128 test compatible with older GCC/Clang. r=spidermonkey-reviewers,sfink
Only recent Clang/GCC implement CWG2518. Workaround this limitation by directly
calling `std::abort`.

GCC <10 complains about unused functions in `constexpr` contexts. This can be
worked around by adding a couple of `[[maybe_unused]]`.

The `to_array` function to implement `std::to_array` from C++20 doesn't compile
under older GCC, because the compiler doesn't add necessary type conversions.
Explicitly casting all inputs to `int64_t` resp. `uint64_t` fixes this. With
the explicit casts it's no longer necessary to call `to_array' and we can
instead directly create the `std::array`.

Depends on D211397

Differential Revision: https://phabricator.services.mozilla.com/D211398
2024-05-25 14:25:55 +00:00
André Bargull
25c083af9f Bug 1898538 - Part 5: GCC 8 disallows MOZ_CRASH in constexpr functions. r=sfink,glandium,spidermonkey-reviewers
GCC 8 doesn't like `MOZ_CRASH` in a `constexpr` function. The `constexpr` functions
are used for `static_assert`s, so removing `constexpr` isn't possible without also
losing the `static_assert`. `MOZ_CRASH` is allowed starting with GCC 9, so for now
simply call `std::abort` when under GCC 8 and hope nobody is too mad about missing
crash annotations when compiling with GCC 8.

Depends on D211396

Differential Revision: https://phabricator.services.mozilla.com/D211397
2024-05-25 14:25:54 +00:00