2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00

Fixes #17738 - Early initialization of Nimbus (#17834) r=christian

This commit is contained in:
jhugman 2021-02-05 18:54:47 +00:00 committed by GitHub
parent d61857c0e3
commit 1ef4102e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,6 +306,10 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
// ... but RustHttpConfig.setClient() and RustLog.enable() can be called later. // ... but RustHttpConfig.setClient() and RustLog.enable() can be called later.
RustHttpConfig.setClient(lazy { components.core.client }) RustHttpConfig.setClient(lazy { components.core.client })
RustLog.enable(components.analytics.crashReporter) RustLog.enable(components.analytics.crashReporter)
// We want to ensure Nimbus is initialized as early as possible so we can
// experiment on features close to startup.
// But we need viaduct (the RustHttp client) to be ready before we do.
components.analytics.experiments.initialize()
} }
} }