Skip to content

Instantly share code, notes, and snippets.

@zbraniecki
Created September 19, 2018 17:43
Show Gist options
  • Save zbraniecki/e0892b99eb0e1ebcca67b5659f904d57 to your computer and use it in GitHub Desktop.
Save zbraniecki/e0892b99eb0e1ebcca67b5659f904d57 to your computer and use it in GitHub Desktop.
diff --git a/toolkit/components/extensions/Extension.jsm b/toolkit/components/extensions/Extension.jsm
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -2007,6 +2007,11 @@ class Langpack extends ExtensionData {
}
async startup(reason) {
+ if (reason === "APP_STARTUP" && AppConstants.platform === "XP_WIN") {
+ if (!(await OS.File.exists(this.rootURI))) {
+ return false;
+ }
+ }
this.chromeRegistryHandle = null;
if (this.startupData.chromeEntries.length > 0) {
const manifestURI = Services.io.newURI("manifest.json", null, this.rootURI);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment