Commit Graph

834293 Commits

Author SHA1 Message Date
Ben Hearsum
7f7cfea8b0 Bug 1822165: Bump sphinxcontrib-mermaid to latest version r=releng-reviewers,gbrown
This allows us to use more modern mermaid syntax and features. I know we pinned this to an old version quite awhile ago (https://bugzilla.mozilla.org/show_bug.cgi?id=1693140), but it appears that those issues have since been fixed. At the very least, diagrams appear to have no issues rendering.

Differential Revision: https://phabricator.services.mozilla.com/D172563
2023-03-14 20:15:05 +00:00
Alex Franchuk
d499927507 Bug 1821335 - Always send Glean crash pings for main process crashes r=gsvelto
This isn't the most elegant solution, but it's straightforward enough and in the
future when the crash reporter gets new development it'll be cleaned up.

Differential Revision: https://phabricator.services.mozilla.com/D172309
2023-03-14 20:05:16 +00:00
alwu
1664e60544 Bug 1819492 - reject promise holders on the manager thread. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D171515
2023-03-14 20:00:19 +00:00
Daniel Holbert
3c6e908a35 Bug 1820058: Enable about:config pref for CSS 'content-visibility' on Nightly. r=emilio,devtools-reviewers
Also update the devtools CSS db (using ./mach devtools-css-db), and update a
DOM test `test_interfaces.js` to make it aware of newly-exposed (and
Nightly-specific for now) ContentVisibilityAutoStateChangeEvent.

Differential Revision: https://phabricator.services.mozilla.com/D171514
2023-03-14 19:55:30 +00:00
Iulian Moraru
801dae8f2c Backed out 14 changesets (bug 1607634, bug 1814683, bug 1815177, bug 1814686) for causing build bustages on MaybeStorageBase. CLOSED TREE
Backed out changeset ae1c0551cea5 (bug 1815177)
Backed out changeset a11cafaa1884 (bug 1814686)
Backed out changeset 621507521762 (bug 1814686)
Backed out changeset ad692c73e381 (bug 1814686)
Backed out changeset 3be031e503dc (bug 1607634)
Backed out changeset aebbaa145d2d (bug 1607634)
Backed out changeset 9aa1f346fe14 (bug 1607634)
Backed out changeset e3eb77ad55ca (bug 1607634)
Backed out changeset e60591e5d5cf (bug 1607634)
Backed out changeset 6e43042d204a (bug 1814683)
Backed out changeset 1706e88652d6 (bug 1814683)
Backed out changeset 6878a1590e91 (bug 1814683)
Backed out changeset b1c980c834d8 (bug 1814683)
Backed out changeset 94480b82d102 (bug 1814683)
2023-03-15 01:58:36 +02:00
Ray Kraesig
68184463ff Bug 1815987 - Rewrite data-read loop in OnDataAvailable r=yjuglaret
The read-loop in OnDataAvailable is needlessly baroque and uses a very
strange dialect of Hungarian notation. Factor out the zero-element case
for simplicity (of explication, if nothing else), and add justificatory
comments as appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D171001
2023-03-14 19:54:26 +00:00
Barret Rennie
65ff891284 Bug 1821644 - Set ShellService default log level to error r=nalexander
The associated comment says to set this value to debug when developing to get
more logging, but it appears it was accidentally left set to debug when
committing.

Differential Revision: https://phabricator.services.mozilla.com/D172291
2023-03-14 19:52:58 +00:00
Eitan Isaacson
ed3ca80643 Bug 1820894 - Add search text field to RotorRule and its subclasses. r=morgan
With caching we can directly filter accessible names with the search text in the parent process since the names are cached.

This patch also moves OutlineRule outside of RotorRules because the implementation
diverges (and it isn't rotor related!)

Differential Revision: https://phabricator.services.mozilla.com/D171917
2023-03-14 19:46:33 +00:00
Mike Kaply
982e9f7ae8 Bug 1821042 - Downloads pref shouldn't impact enablement of sanitize dialog. r=hpeuckmann
Differential Revision: https://phabricator.services.mozilla.com/D172009
2023-03-14 19:45:31 +00:00
Nika Layzell
a8e03b0bf5 Bug 1815177 - Use a custom ReadResult to reduce branching during IPDL deserialization, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D169954
2023-03-14 19:31:42 +00:00
Nika Layzell
99ef2e2b47 Bug 1814686 - Part 2: Make nsDocShellLoadState not-null, and simplify handling of nsDOMNavigationTiming, r=necko-reviewers,valentin,smaug
These types were already non-nullable, with the serializer implementation not
supporting nullptr values. This patch converts the uses to be explicitly
non-nullable, and adds the relevant `WrapNotNull` changes.

Differential Revision: https://phabricator.services.mozilla.com/D168890
2023-03-14 19:31:42 +00:00
Nika Layzell
a07f4ca7c9 Bug 1814686 - Part 1b: Add nullable annotations to refcounted types in ipdl, r=ipc-reviewers,mccr8
Manual changes to make all refcounted types be marked as `nullable` after the
changes in part 1a. This was done without any investigation into whether the
actual types want to be nullable, in order to avoid code changes.

Differential Revision: https://phabricator.services.mozilla.com/D168889
2023-03-14 19:31:41 +00:00
Nika Layzell
de0614a91a Bug 1814686 - Part 1a: Wrap refcounted types in NotNull by default, r=ipc-reviewers,mccr8
These are the IPDL compiler changes to make all refcounted types be considered
NotNull by default, building on the changes from bug 1607634.

Existing uses of IPDL refcounted types will be marked as nullable in part 1b.

Differential Revision: https://phabricator.services.mozilla.com/D168888
2023-03-14 19:31:41 +00:00
Nika Layzell
462fc4e4ee Bug 1607634 - Part 4b: Changes for not-nullable actor types being wrapped in NotNull, r=ipc-reviewers,necko-reviewers,mccr8
These are the code changes required by the IPDL changes in part 4a.

Differential Revision: https://phabricator.services.mozilla.com/D168887
2023-03-14 19:31:40 +00:00
Nika Layzell
81205eb92d Bug 1607634 - Part 4a: Wrap non-nullable actor types in NotNull, r=ipc-reviewers,mccr8
The code changes required for this will be in part 4b. The code is designed to
be generic as it will also be used for RefCounted types in a future patch. This
replaces the manual checking which was previously done in struct and union
serializers for non-nullable actor members.

Differential Revision: https://phabricator.services.mozilla.com/D168886
2023-03-14 19:31:40 +00:00
Nika Layzell
86509aaa1a Bug 1607634 - Part 3: Specialize NotNull for SideVariant, r=glandium,ipc-reviewers,mccr8
The idea behind this specialization is to provide the members which would be on
SideVariant<..> on NotNull<SideVariant<..>>, similar to how pointer-like
methods are available on `NotNull<T>`. This makes the type more ergonomic to
use from callers.

In the next part, this will be used for non-nullable actor members in IPDL
structs and IPDL unions.

Differential Revision: https://phabricator.services.mozilla.com/D168885
2023-03-14 19:31:39 +00:00
Nika Layzell
7c9385cad1 Bug 1607634 - Part 2: Add a ParamTraits implementation for NotNull, r=ipc-reviewers,mccr8
For now, this implementation is based on the implementation of the underlying
type, with extra checking that the value is not null before wrapping and
returning.

We may want to swap things around in the future so that types like RefPtr<T>
are deserialized using NotNull<T*> or similar, so that the unnecessary
serialization overhead of tracking nullness is unnecessary, however that is not
implemented in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D168884
2023-03-14 19:31:39 +00:00
Nika Layzell
c821668d34 Bug 1607634 - Part 1: Improve the ergonomics of using NotNull with RefPtr and nsCOMPtr, r=glandium
This does a few minor improvements:
1. Adds implicit conversions from NotNull to a raw pointer type if supported by
   the underlying type, to make it so NotNull<RefPtr<T>> acts more like
   RefPtr<T> in some situations.
2. Adds explicit conversion constructors and assignment operators for RefPtr
   and nsCOMPtr from NotNull, avoiding conversion ambiguity added by the first
   change.
3. Disable conversion constructors on NotNull with SFINAE if they should not be
   available, meaning that type traits like std::is_convertible_v interact with
   it properly.

Differential Revision: https://phabricator.services.mozilla.com/D168883
2023-03-14 19:31:38 +00:00
Nika Layzell
f06c460d94 Bug 1814683 - Part 5: Support serializing sequences of non-default-constructable types, r=ipc-reviewers,jld
This change allows callers of ReadSequenceParam to return a
Maybe<output_iterator> rather than a T* which will be used to fill the
resulting sequence. Both STL collections and std::array have iterators like
this, which can be returned from these methods without dramatically changing
the signature to support types without default constructors.

For types which support output iterators, they will be used for any type
without a trivial default constructor to avoid unnecessary constructor calls
and initialization when deserializing.

Differential Revision: https://phabricator.services.mozilla.com/D168882
2023-03-14 19:31:38 +00:00
Nika Layzell
11639b965c Bug 1814683 - Part 4: Allow IPDL structs to contain non-default-constructable types, r=ipc-reviewers,jld
Previously, we would always generate a default constructor for IPDL structs
which explicitly initializes every member. This would require members to have
default initializers statically. With the new approach, each member is
individually wrapped with a template parameter which will try to ensure value
initiaization, and the default constructor is implemented with `= default;`.

The default constructor will produce a warning on clang if it is implicitly
deleted, so that warning is also suppressed.

Differential Revision: https://phabricator.services.mozilla.com/D168881
2023-03-14 19:31:38 +00:00
Nika Layzell
0139e1501c Bug 1814683 - Part 3: Use the new Maybe-based ReadParam signature throughout IPDL, r=ipc-reviewers,jld
This builds on top of the work in bug 1775062, by using this new signature
everywhere, including IPDL struct members and in/outparams for IPDL messages.
This is done with relatively minimal changes by using two bindings, one of
which is a reference.

Differential Revision: https://phabricator.services.mozilla.com/D168880
2023-03-14 19:31:37 +00:00
Nika Layzell
99fb1dbf3f Bug 1814683 - Part 2: Add a constructor for IPDL structs which moves each parameter, r=ipc-reviewers,mccr8
This will be useful after part 3 where it will be used as part of implementing
Read based on Maybe for IPDL structs. Without this change, we'd need to copy to
construct an IPDL struct containing a non-default-constructable type.

Differential Revision: https://phabricator.services.mozilla.com/D169268
2023-03-14 19:31:37 +00:00
Nika Layzell
97577629c0 Bug 1814683 - Part 1: Combine parent/child fields in IPDL structs/unions, r=ipc-reviewers,necko-reviewers,mccr8
This combines the multiple fields or variants which were previously used to
track sided types like protocol types into a single field wrapped with a
SideVariant.

This will be used in the next part to avoid the need for default constructors
for actor types allowing the proper types to be used.

Differential Revision: https://phabricator.services.mozilla.com/D168879
2023-03-14 19:31:36 +00:00
Mike Conley
83c783723b Bug 1821505 - Add Nimbus features for enabling the new Migration Wizard and selecting which browser/profile selector variant. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D172445
2023-03-14 19:18:41 +00:00
Ting-Yu Lin
6ec0a1cd59 Bug 1467519 - Soften a fatal assertion in nsLayoutUtils::ComputeBSizeDependentValue(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172528
2023-03-14 18:33:00 +00:00
ganna
8a097b5c16 Bug 1821162 - Convert SwitchDocumentDirectionChild.jsm and PromptParent.jsm in browser/actors to ESMs r=kpatenio,bnasar
Differential Revision: https://phabricator.services.mozilla.com/D172153
2023-03-14 18:30:22 +00:00
sauvic
b6a523e8e1 Bug 1821299 - Convert toolkit/components/bitsdownload to ES modules. r=Standard8,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D172248
2023-03-14 18:24:04 +00:00
sauvic
d38e6e9100 Bug 1821899 - Convert toolkit/components/taskscheduler to ES modules. r=Standard8,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D172456
2023-03-14 18:23:49 +00:00
Yulia
9c5114587b Bug 1540913 - Part 10: Update shadowRealms test to not fail when dynamic import is enabled; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172290
2023-03-14 18:16:34 +00:00
Yulia
2701b2e0d0 Bug 1540913 - Part 9: update fs tests to use dynamic import; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D172276
2023-03-14 18:16:34 +00:00
Yulia
4818902186 Bug 1540913 - Part 8: Update wpt-tests; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171701
2023-03-14 18:16:33 +00:00
Yulia
d922ba9a6b Bug 1540913 - Part 7: Add test to verify correct behavior of script loader shutdown; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171861
2023-03-14 18:16:33 +00:00
Yulia
702c6fab1b Bug 1540913 - Part 6-a: Fix BaseURL for importScripts; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171875
2023-03-14 18:16:32 +00:00
Yulia Startsev
b8d4d67ca2 Bug 1540913 - Part 6: Implement Dynamic import for workers; r=jonco
This is the final change for dynamic imports, and makes the necessary modifications to properly load
them.

Differential Revision: https://phabricator.services.mozilla.com/D169629
2023-03-14 18:16:32 +00:00
Yulia
f7fd7ba054 Bug 1540913 - Part 5: Track ScriptLoaders on WorkerLoadContext; r=jonco
As mentioned in the previous patch, this patch introduces tracking and shutdown of scriptloaders in
the case that we have multiple scriptloaders involved in module loading.

Differential Revision: https://phabricator.services.mozilla.com/D171686
2023-03-14 18:16:32 +00:00
Yulia
0350774d47 Bug 1540913 - Part 4: Introduce WorkerScriptLoader configuration for dynamic import; r=jonco
Earlier, we introduced GetBaseURI to the module loader. This allows us to get the BaseURI for a
dynamic import even after the importing script/module's ScriptLoader has been cleaned up. However,
we now need to be able to handle the case where we need to run the dynamic import and load it. In
order to do this, we need to create a scriptloader configured for dynamic import. The most important
difference between this scriptloader and the one that is normally used for script loading in workers
is that we *do not have a syncLoopTarget* to which we return. There are a couple of reasons for
this:

* Dynamic import (and modules in general) relies on the event loop to resolve. If we create a
syncLoop here, we will end up pausing execution, and this breaks the StartModuleLoad algorithm. We
will never complete and the result will be that we are in the wrong state when we return here.
* We do not have perfect knowledge of the future, so we cannot keep the existing script loader alive
in the case that it might be used for loading in the future.
* We cannot migrate the ModuleLoader to not use sync loading without significantly changing other
aspects of how loading scripts on workers works. This becomes particularily evident with error
handling
(https://searchfox.org/mozilla-central/rev/00ea1649b59d5f427979e2d6ba42be96f62d6e82/dom/workers/WorkerPrivate.cpp#383-444),
and in addition, for reasons I wasn't able to discern, using the CurrentEventTarget results in hard
to identify errors. When there is time to investigate this fully, the ModuleLoader may move away
from using a syncLoop itself.

For now, all main-script loads (whether they are modules or classic scripts) will use the sync loop,
and all dynamic imports will create a new script loader for their needs that is not using the sync
loop. The book keeping for this is in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D171685
2023-03-14 18:16:31 +00:00
Yulia
99088fb36f Bug 1540913 - Part 3: Exit early if worker module evaluation is aborted; r=jonco
This change addresses the second issue around worker shutdown with infinitely running dynamic
imports: As the event loop is prevented from running when the worker is dying, we do not want to
delegate to the event loop in this case. This case always has a failing promise. Since this is a
failure case related to the worker dying, we stop running code, rather
than waiting for a tick (that never comes) from the event loop.

Differential Revision: https://phabricator.services.mozilla.com/D171684
2023-03-14 18:16:31 +00:00
Yulia
5231b910c8 Bug 1540913 - Part 2: Clear and shutdown ModuleLoader at worker termination; r=asuth,jonco
When running an infinitely-looping dynamic import, it is possible for the module loader to still be
holding on to that module at shutdown. Shutdown on the worker means that we will no longer run the
event loop, which will execute the dynamic import promises necessary to clear the global. The result
is that the global is kept alive. By calling `Shutdown()` we prevent this partially. We additionally
need to address the failure in the module code (next patch).

Differential Revision: https://phabricator.services.mozilla.com/D171683
2023-03-14 18:16:31 +00:00
Yulia
4e6402f008 Bug 1540913 - Part 1: allow ModuleLoaders to return BaseURI without ScriptLoader;r=jonco
This is a required change for dynamic import on workers, as the ScriptLoader is not guaranteed to
live long enough. Once the initial script loading is finished, and the script has executed, the
scriptloader is cleared and the strong reference to the workerRef is cleared so that shutdown is
possible. The workerRef is required in order to access the worker private safely. In order to
address this, we move the GetBaseURI method to the module loader itself. In the future, we should
remove the script loader interface all together.

Differential Revision: https://phabricator.services.mozilla.com/D171682
2023-03-14 18:16:30 +00:00
Robin Steuber
4be49e117e Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander
We can't add the provenance data to the `installation.first_seen` extra data because it is already at its maximum number of keys. So instead we will add the `installation.first_seen_prov_ext` event which will be sent at the same time as `installation.first_seen` and will contain provenance attribution data in its extras object.

Differential Revision: https://phabricator.services.mozilla.com/D172520
2023-03-14 18:08:16 +00:00
Niklas Baumgardner
56c696e37f Bug 1813394 - Updated screenshots overlay shrinks with window. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D168315
2023-03-14 17:23:53 +00:00
Niklas Baumgardner
921a1dd0ad Bug 1781912 - Fix failing browser_screenshots_drag_test.js test. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D172460
2023-03-14 17:23:29 +00:00
Alexandre Poirot
5cb1635d84 Bug 1803616 - [devtools] Implement a Javascript Tracer in the debugger. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
On the server side, this patch introduces:
* a new "tracer" Target Scope actor to start and stop tracing per target
* a new TRACING_STATE resource in order to report to the client when we start/stop tracing and with which log method.

On the frontend side, this patch introduces:
* a global tracer button, which will enable/disable tracing for all targets/threads
  all at once.
* a global header, similar to pause, reporting if any target is tracing or not.
The header reuses the pause header and we may want to followup to better coordinate case
where we pause and trace at the same time. Only one of the two states is displayed.

We may want to followup here to be able to trace only one target and see the state per target.

Differential Revision: https://phabricator.services.mozilla.com/D163614
2023-03-14 17:17:05 +00:00
Mozilla Releng Treescript
7d276f75c6 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
da -> 318809f3d25b890d9b6a62f3d3b9128e9a945ce6
es-CL -> 29d8f1f205d4ff25492530ca8270e7f9132a1561
fi -> b3de66eed7f8ad4d822fbed87a51865dbaf45caf
fur -> 831b327152a57bb1b492feb985547a99344aa3bb
hy-AM -> 5fb1e76e2f18324c9fe07bfaa87326f6d22ec5a7
it -> 22d6340a1e6ef8ddf6a15d8bf271f9e654db7a57
lo -> 0a1d61db2bac08460213e806180868f8c52ff5e7
sc -> b299417011ab6fa3e383fe7def7258487f3378a7
sr -> f86872757959a4686b73a22e26879f2cae546ce8
tg -> d7e45856229525123a6ad994e77b7d62007e77ea
2023-03-14 18:58:19 +00:00
Noemi Erli
51cdfe05ee Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE
Backed out changeset 03bc416d3399 (bug 1820168)
Backed out changeset 8da35371cbdf (bug 1820168)
Backed out changeset ebde44bcb736 (bug 1820168)
Backed out changeset 7b01e0445133 (bug 1820168)
Backed out changeset b32a9cf041fc (bug 1820168)
Backed out changeset e29e5a3349f4 (bug 1820168)
2023-03-14 19:53:58 +02:00
Noemi Erli
ee3cbc95c4 Backed out 1 changesets (bug 1805372) for causing wpt failures in nsHttpTransaction.h
Backed out changeset 521c9e019678 (bug 1805372)
2023-03-14 19:24:56 +02:00
Jonathan Sudiaman
807bc7eaf6 Bug 1820978 - Enable delayed bookmarks panels in Firefox 113 r=mak
https://treeherder.mozilla.org/jobs?revision=f8663dc99809538eaea78ee08aab8f49a36d52bc&repo=try

Differential Revision: https://phabricator.services.mozilla.com/D172586
2023-03-14 17:01:31 +00:00
Andi-Bogdan Postelnicu
61d67443e1 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.5.1-stable (2c8cc34 2023-03-06)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172587
2023-03-14 16:54:29 +00:00
Ziran Sun
d5d3b87d4a Bug 1822323 - Add ToggleEvent interface for Popover. r=emilio
An implementation for https://html.spec.whatwg.org/multipage/popover.html#the-toggleevent-interface

Differential Revision: https://phabricator.services.mozilla.com/D172584
2023-03-14 16:52:36 +00:00
Markus Stange
edb2deabbd Bug 1820168 - Let the system re-set the current cursor when needed. r=mac-reviewers,bradwerth
This renames nsMacCursorManager to MOZDynamicCursor and makes it implement NSCursor.

We also install a cursor rect which covers the entire ChildView and which refers
to the MOZDynamicCursor singleton.

With the help of the cursor rect, the -[NSCursor set] implementation is now called
at the right times.

Here's a profile which contains the stacks under which -[MOZDynamicCursor set]
is now called: https://share.firefox.dev/3yEXLsC

Differential Revision: https://phabricator.services.mozilla.com/D172484
2023-03-14 16:30:05 +00:00