зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
18d5a11837
Коммит
074ffc748d
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче