Skip to content

Commit

Permalink
[embedlite-components] Populate the technical details of the certific…
Browse files Browse the repository at this point in the history
…ate page. JB#56370 OMP#JOLLA-541

The description of the error is no longer encoded in the about:certerror
URL and needs to be constructed in the page itself.

Also fix the caret icon so it's apparent when the collapsed headings have
been expanded as with neither that nor content it wasn't apparent when
clicking worked.
  • Loading branch information
adenexter authored and rainemak committed Dec 22, 2021
1 parent 3ed96be commit ee13e00
Show file tree
Hide file tree
Showing 11 changed files with 691 additions and 130 deletions.
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)

0 comments on commit ee13e00

Please sign in to comment.