Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[embedlite-components] Populate the technical details of the certificate page. JB#56370 OMP#JOLLA-541 #89

Merged
merged 1 commit into from Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions jscomps/EmbedLiteGlobalHelper.js
Expand Up @@ -9,6 +9,7 @@ const Cr = Components.results;
const { XPCOMUtils } = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { LoginManagerParent } = ChromeUtils.import("resource://gre/modules/LoginManagerParent.jsm");
const { L10nRegistry, FileSource } = ChromeUtils.import("resource://gre/modules/L10nRegistry.jsm");

// Touch the recipeParentPromise lazy getter so we don't get
// `this._recipeManager is undefined` errors during tests.
Expand All @@ -29,6 +30,11 @@ function EmbedLiteGlobalHelper()
{
ActorManagerParent.flush();

L10nRegistry.registerSource(new FileSource(
"0-mozembedlite",
["en-US", "fi", "ru"],
"chrome://browser/content/localization/{locale}/"))

Logger.debug("JSComp: EmbedLiteGlobalHelper.js loaded");
}

Expand Down
30 changes: 30 additions & 0 deletions overrides/Makefile.am
Expand Up @@ -58,4 +58,34 @@ localebrowser_ru_manifest_DATA = \
ru/netError.dtd \
$(NULL)

localizationbrowser_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/en-US/browser
localizationbrowser_manifest_DATA = \
en-US/aboutCertError.ftl \
$(NULL)

localizationbrowser_fi_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/fi/browser
localizationbrowser_fi_manifest_DATA = \
fi/aboutCertError.ftl \
$(NULL)

localizationbrowser_ru_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/ru/browser
localizationbrowser_ru_manifest_DATA = \
ru/aboutCertError.ftl \
$(NULL)

localizationbranding_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/en-US/branding
localizationbranding_manifest_DATA = \
en-US/brand.ftl \
$(NULL)

localizationbranding_fi_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/fi/branding
localizationbranding_fi_manifest_DATA = \
fi/brand.ftl \
$(NULL)

localizationbranding_ru_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/ru/branding
localizationbranding_ru_manifest_DATA = \
ru/brand.ftl \
$(NULL)

AM_CPPFLAGS = $(DEPS_CFLAGS)