Bug 1461590 Always use lower case for language pack resource: substitutions
MozReview-Commit-ID: L5gF7mPW3Jl
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -1931,17 +1931,17 @@ class Langpack extends ExtensionData {
async startup(reason) {
this.chromeRegistryHandle = null;
if (this.startupData.chromeEntries.length > 0) {
const manifestURI = Services.io.newURI("manifest.json", null, this.rootURI);
this.chromeRegistryHandle =
aomStartup.registerChrome(manifestURI, this.startupData.chromeEntries);
}
- const langpackId = this.startupData.langpackId;
+ const langpackId = this.startupData.langpackId.toLowerCase();
const l10nRegistrySources = this.startupData.l10nRegistrySources;
resourceProtocol.setSubstitution(langpackId, this.rootURI);
for (const [sourceName, basePath] of Object.entries(l10nRegistrySources)) {
L10nRegistry.registerSource(new FileSource(
`${sourceName}-${langpackId}`,
this.startupData.languages,