summaryrefslogtreecommitdiff
path: root/config.js
AgeCommit message (Collapse)Author
2023-07-02Make compatible with Firefox 116girst
regressed-by: https://bugzil.la/920187
2022-04-29Do not override AddonSettings.REQUIRE_SIGNINGgirst
This is not necessary, as it is only checked in XPIDatabase.jsm::mustSign(), which we can override instead, and in aboutaddonsCommon.js::isDisabledUnsigned(), which we cannot affect anyways and only uses it to show a red warning bar for legacy addons. This also removes the old AddonSettings.ALLOW_LEGACY_EXTENSIONS override, which was only used in Extension.jsm::experimentsAllowed() and XPIDatabase.jsm::isDisabledLegacy(). This is in preparation for the ESM-ification endeavours going on at Mozilla, which will make importing a module's global object (as we did with `let Xdb = Cu.import(...)`) impossible, but was needed to get a reference to AddonSettings (instead of a copy). Step two will be replacing Cu.import() with ChromeUtils.import(), which has stricter semantics about exported objects (doesn't hurt us; see Bug 1766114).
2022-03-06Revert "automatically disable signature requirement"girst
downgrading the warning color stopped working some time ago. for completeness, as of nightly99 xpinstall.signatures.required is only checked in these places, none of which affect us: - nsContentSecurityUtils.cpp::DetectJsHacks() only for telemetry and relaxing some security measures we don't need - BrowserGlue.jsm::_onWindowsRestored() gates call to _notifyUnsignedAddonsDisabled(), which isn't triggered by our stuff (signedState != SIGNEDSTATE_MISSING) - AddonSettings.jsm::REQUIRE_SIGNING overridden by our config.js script, so doesn't matter - XPIProvider.jsm::observe() calls XPIDatabase.updateAddonAppDisabledStates(), which calls this.updateAddonDisabledState(addon), which depends on this.isUsableAddon(aAddon), which returns true as long as we override this.isDisabledLegacy(aAddon) This reverts commit 29dc0ab3a8f8bd6e781fb983cd076764480dce18.
2022-02-20remove EXPERIMENTS_ENABLED overridegirst
this was never required.
2020-11-20Revert "Enable Webextension experiments"girst
This reverts commit 152b73585cf37a64b8022c8bd027587c9d9e511f.
2020-11-20Enable Webextension experimentsgirst
This is outside the scope of LegacyFox and will be reverted. Only barely tested.
2020-10-01automatically disable signature requirementgirst
Having signatures enforced causes a big red error message to appear below unsigned extensions, telling the user the extension has been disabled. This is not true, though; the extensions are still enabled. Setting xpinstall.signatures.required;false downgrades this error to a (yellow) warning.
2020-09-24don't prevent unsigned addon warning to not break some addonsgirst
This broke installing some, but not all, addons. The reason is that some addons derive their addon-id from a certificate's CommonName in XPIInstall.jsm::loadManifest(aPackage, aLocation, aOldAddon)
2020-08-22recreate all properties of AddonSettings automaticallygirst
Looks like all the settings continued to work by accident. Note: out of scope for LegacyFox, but sideloading from anywhere can be re-enabled by setting `SCOPES_SIDELOAD: 31 // AddonManager.SCOPE_ALL`.
2020-01-18Fix addon installation for Firefox 74girst
regressed by: Bug 1524327
2019-07-09switch to resource:// protocolgirst
bring the patch closer to the then-upstream comm-central. might have the negative side-effect of being detectable by websites according to: https://developer.mozilla.org/en-US/docs/Mozilla/Chrome_Registration
2019-07-09don't overwrite chrome.manifestgirst
this hopefully makes the monkey patch update persistent. Note: instead of using FileUtils, this would be another method: const {Services} = Cu.import('resource://gre/modules/Services.jsm'); let manifest = Services.dirsvc.get('GreD', Ci.nsIFile); manifest.append('legacy.manifest');
2019-07-09fix chrome.manifest loading for mozilla68girst
the chrome.manifest inside the install directory is not loaded any longer by default; see bugzil.la/1543761
2019-06-24remove superfluous commentsgirst
2019-06-24remove boot.jsmgirst
2019-06-24initial commitgirst