diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-08-13 11:18:51 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-08-13 11:18:51 -0500 |
commit | 6d1aed740c2efb1283a8322b81c9ce5d0646aad9 (patch) | |
tree | 51d57e7314b7d56227285d38cba30c5cac2b026b /legacy/BootstrapLoader.sys.mjs | |
parent | de25e333e17f05140b82793776dbce51fdec296d (diff) | |
parent | 836dadeb9ed2ad00465720301a21060ff48f7e11 (diff) | |
download | legacywolf-6d1aed740c2efb1283a8322b81c9ce5d0646aad9.tar.gz legacywolf-6d1aed740c2efb1283a8322b81c9ce5d0646aad9.zip |
Merge tag 'v5.0' into xpi
Diffstat (limited to 'legacy/BootstrapLoader.sys.mjs')
-rw-r--r-- | legacy/BootstrapLoader.sys.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/BootstrapLoader.sys.mjs b/legacy/BootstrapLoader.sys.mjs index d28bf22..bd53689 100644 --- a/legacy/BootstrapLoader.sys.mjs +++ b/legacy/BootstrapLoader.sys.mjs @@ -336,7 +336,11 @@ return BootstrapLoader = { startup(...args) { if (addon.type == "extension") { logger.debug(`Registering manifest for ${file.path}\n`); + try { Components.manager.addBootstrappedManifestLocation(file); + } catch (e) { // mozilla142+ + LegacyFoxUtils.addBootstrappedManifestLocation(file, addon, getURIForResourceInFile); + } } return startup(...args); }, @@ -349,7 +353,11 @@ return BootstrapLoader = { } finally { if (reason != BOOTSTRAP_REASONS.APP_SHUTDOWN) { logger.debug(`Removing manifest for ${file.path}\n`); + try { Components.manager.removeBootstrappedManifestLocation(file); + } catch (e) { // mozilla142+ + LegacyFoxUtils.removeBootstrappedManifestLocation(addon); + } } } }, |