Bug 1852537 - Add missing add-on install error codes. r=whimboo,webdriver-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D187986
This commit is contained in:
William Durand 2023-09-12 18:29:56 +00:00
Родитель 18d5a11837
Коммит 074ffc748d
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -17,6 +17,13 @@ const ERRORS = {
[-3]: "ERROR_CORRUPT_FILE: The file appears to be corrupt.",
[-4]: "ERROR_FILE_ACCESS: There was an error accessing the filesystem.",
[-5]: "ERROR_SIGNEDSTATE_REQUIRED: The addon must be signed and isn't.",
[-6]: "ERROR_UNEXPECTED_ADDON_TYPE: The downloaded add-on had a different type than expected (during an update).",
[-7]: "ERROR_INCORRECT_ID: The addon did not have the expected ID (during an update).",
[-8]: "ERROR_INVALID_DOMAIN: The addon install_origins does not list the 3rd party domain.",
[-9]: "ERROR_UNEXPECTED_ADDON_VERSION: The downloaded add-on had a different version than expected (during an update).",
[-10]: "ERROR_BLOCKLISTED: The add-on is blocklisted.",
[-11]:
"ERROR_INCOMPATIBLE: The add-on is incompatible (w.r.t. the compatibility range).",
};
async function installAddon(file) {