Prevent "Error: Addon must include an id, version, and type"
And "Addon with ID undefined already installed, older version will be disabled".
This commit is contained in:
parent
175541ed86
commit
9ca70a7946
1 changed files with 7 additions and 0 deletions
|
@ -186,6 +186,9 @@ function modify_omni {
|
||||||
#rm Telemetry*
|
#rm Telemetry*
|
||||||
rm URLDecorationAnnotationsService.sys.mjs
|
rm URLDecorationAnnotationsService.sys.mjs
|
||||||
popd
|
popd
|
||||||
|
pushd chrome/toolkit/content/mozapps/extensions
|
||||||
|
rm -rf default-theme
|
||||||
|
popd
|
||||||
|
|
||||||
# Clear most WebExtension manifest properties
|
# Clear most WebExtension manifest properties
|
||||||
replace_line 'manifest = normalized.value;' 'manifest = normalized.value;
|
replace_line 'manifest = normalized.value;' 'manifest = normalized.value;
|
||||||
|
@ -232,6 +235,10 @@ function modify_omni {
|
||||||
replace_line 'lazy.AddonManagerPrivate.webExtensionsMinPlatformVersion' '"7.0"' modules/addons/AddonUpdateChecker.sys.mjs
|
replace_line 'lazy.AddonManagerPrivate.webExtensionsMinPlatformVersion' '"7.0"' modules/addons/AddonUpdateChecker.sys.mjs
|
||||||
replace_line 'result.targetApplications.push' 'false && result.targetApplications.push' modules/addons/AddonUpdateChecker.sys.mjs
|
replace_line 'result.targetApplications.push' 'false && result.targetApplications.push' modules/addons/AddonUpdateChecker.sys.mjs
|
||||||
|
|
||||||
|
# Prevent automatic installation of default theme
|
||||||
|
# (chrome/toolkit/content/mozapps/extensions/default-theme, removed above)
|
||||||
|
replace_line 'this.maybeInstallBuiltinAddon\(' 'if (false) this.maybeInstallBuiltinAddon(' modules/addons/XPIProvider.jsm
|
||||||
|
|
||||||
# Allow addon installation by bypassing confirmation dialogs. If we want a confirmation dialog,
|
# Allow addon installation by bypassing confirmation dialogs. If we want a confirmation dialog,
|
||||||
# we need to either add gXPInstallObserver from browser-addons.js [1][2] or provide our own with
|
# we need to either add gXPInstallObserver from browser-addons.js [1][2] or provide our own with
|
||||||
# Ci.amIWebInstallPrompt [3].
|
# Ci.amIWebInstallPrompt [3].
|
||||||
|
|
Loading…
Reference in a new issue