Skip to content

Bug 2072503 - Add the ability to make the initialization wait for a signal - #3644

Draft
badboy wants to merge 1 commit into
mainfrom
block-init-until-unblocked/otsvuwnyzqxr
Draft

badboy wants to merge 1 commit into
mainfrom
block-init-until-unblocked/otsvuwnyzqxr

Conversation

@badboy

@badboy badboy commented Sep 17, 2026

Copy link
Copy Markdown
Member

In Firefox for Android the Gecko parts are configuring SQLite to use Gecko allocations (among other things), which MUST happen before any SQLite connection is opened.

Glean doesn't know about that and might race with this when initialized in Fenix.
This new API now allows the Gecko part to signal to Glean it's ok to proceed.

It's behind a feature flag (wait-for-init, also on the glean crate) and Android only. The Gecko build can enable it, but it's otherwise a no-op on regular builds.

In Firefox for Android the Gecko parts are configuring SQLite to use
Gecko allocations (among other things), which MUST happen before any
SQLite connection is opened.

Glean doesn't know about that and might race with this when initialized
in Fenix.
This new API now allows the Gecko part to signal to Glean it's ok to
proceed.

It's behind a feature flag (`wait-for-init`, also on the `glean` crate) and Android only.
The Gecko build can enable it, but it's otherwise a no-op on regular builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant