Initialize the L10n-instance as soon as possible in Firefox (PR 17115 follow-up)

Given that there's now a bit more asynchronicity in the l10n-initialization in the Firefox PDF Viewer, after PR 17115, try to limit the impact of that by moving it to occur a tiny bit earlier in the default viewer initialization.
This commit is contained in:
Jonas Jenwald 2023-10-19 14:33:37 +02:00
parent d094e8aab0
commit 5c14c559dd
4 changed files with 24 additions and 24 deletions

View file

@ -422,7 +422,7 @@ class FirefoxExternalServices extends DefaultExternalServices {
FirefoxCom.request("updateEditorStates", data);
}
static async createL10n(_options) {
static async createL10n() {
const [localeProperties] = await Promise.all([
FirefoxCom.requestAsync("getLocaleProperties", null),
document.l10n.ready,