- Don't encode any platform dependency in the frontend itself, as that's
dealt with by configure. Do check that there's a wasm compiler setup,
though (also dealth with by configure).
- Allow to enable on any 64-bits platform when building with wasm2c
instead of lucetc.
Differential Revision: https://phabricator.services.mozilla.com/D121582
The updated strategy wraps parts of strings in square brackets, and hence
"marks" the beginning and the end of the part of the string.
Differential Revision: https://phabricator.services.mozilla.com/D121078
This doesn't actually initialize FOG on Android yet;
that part will come later.
For now it only separates out everything used on Desktop (full initialization, pref watching, user activity)
from what's necessary on mobile (where Glean is actually controlled by the embedding application, e.g. Fenix)
For desktop this simply moves most code out into a separate module.
For mobile it has a bare minimum init function.
Differential Revision: https://phabricator.services.mozilla.com/D121100
In GeckoView we need to depend on the same Glean version as the included
Glean Rust crate has.
We _could_ let Gradle read that from Cargo.lock directly,
but that complicates the build.
Instead we manually update both versions to the same
and have Gradle ensure we don't forget that.
Differential Revision: https://phabricator.services.mozilla.com/D116602
It's unused on mozilla-central, and Thunderbird can just use the canvas
frame as regular (X)HTML documents, so just use a canvas frame instead
of an nsRootBoxFrame for XUL as well.
nsRootBoxFrame was needed because of various XUL-specific things like
tooltips and so on lived there. But with the move away from XUL, that
functionality has been added to nsCanvasFrame already, behind a
principal check instead.
This also allows simplifying our background propagation setup, which was
only half-working for XUL documents (this bug is a consequence of that).
With this, most of the callers of nsCSSRendering::IsCanvasFrame can go.
They're only two of the frames that would return true for that that
actually paint backgrounds (nsCanvasFrame and nsRootBoxFrame), so the
codepaths in display list building and painting can just check
frame->IsCanvasFrame() instead.
The remaining caller to that function is
nsContainerFrame::SyncWindowProperties, and the change is also legit, in
the sense that the only thing SyncWindowProperties() really cares about
is propagating the max/min-width constraints from the root element's
style to the view/widget, and the only frame that would return true from
IsCanvasFrame and have a view is the viewport frame which is the root of
the frame tree.
Differential Revision: https://phabricator.services.mozilla.com/D90846
This accomplishes 2 things:
1. Allows us to directly fetch the layersId of the process that is
autoscrolling, which avoids having to fetch it in AutoScrollChild and pass it
around. This fixes autoscrolling out-of-process frames with Fission enabled.
2. Makes it easier to handle autoscrolling of in-process documents, since that
can't happen through PBrowser.
Differential Revision: https://phabricator.services.mozilla.com/D120766
This accomplishes 2 things:
1. Allows us to directly fetch the layersId of the process that is
autoscrolling, which avoids having to fetch it in AutoScrollChild and pass it
around. This fixes autoscrolling out-of-process frames with Fission enabled.
2. Makes it easier to handle autoscrolling of in-process documents, since that
can't happen through PBrowser.
Differential Revision: https://phabricator.services.mozilla.com/D120766
This was being used when we had special code for gecko profiler in the servo
codebase but we just removed the last one. This is safe to remove now. The
"enabled" feature in the gecko-profiler crate is being controlled by
gkrust-shared directly now.
Differential Revision: https://phabricator.services.mozilla.com/D120796
Options can change styles for a variety of reasons and we don't want
transitions on them to re-update the whole menulist.
Differential Revision: https://phabricator.services.mozilla.com/D121353
Similar to CONTENT_PROCESS_MAX, but enumerated instead of ranged.
Also fixes a bug where we weren't actually updating sMaxContentProcesses, which
resulted in us reporting a new "max" for each new content process.
Depends on D121134
Differential Revision: https://phabricator.services.mozilla.com/D121135
Similar to CONTENT_PROCESS_COUNT, but enumerated instead of ranged.
Also fixes a typo which resulted in us not clearing the timer on uninit.
Differential Revision: https://phabricator.services.mozilla.com/D121134
This patch removes the `extensions.webextPermissionPrompts` pref as well as
`permissionPromptsEnabled` prop on `mozAddonManager`.
While working on this patch, we noticed that some of the `browser_webapi.js`
weren't testing anything for a while now. That has been fixed. In addition,
the `test_blocklistchange.js` file has been updated to handle the permissions
prompt.
Differential Revision: https://phabricator.services.mozilla.com/D121114
This patch uses Services.wm.getEnumerator("") instead of Services.wm.getEnumerator("navigator:browser")
to ensure we get all the opened window during FormAutofill initialization. See WindowTrackerBase#*browserWindows
in ext-tabs-base.js for more details.
Differential Revision: https://phabricator.services.mozilla.com/D121364