mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Backed out changeset 18ede4264d90
This commit is contained in:
parent
f89dea915f
commit
5e0c19d0b9
@ -154,16 +154,20 @@ const gXPInstallObserver = {
|
||||
host = (install.sourceURI instanceof Ci.nsIStandardURL) &&
|
||||
install.sourceURI.host;
|
||||
|
||||
let error = (host || install.error == 0) ? "addonInstallError" : "addonLocalInstallError";
|
||||
if (install.error < 0)
|
||||
let error = (host || install.error == 0) ? "addonError" : "addonLocalError";
|
||||
if (install.error != 0)
|
||||
error += install.error;
|
||||
else if (install.addon.blocklistState == Ci.nsIBlocklistService.STATE_BLOCKED)
|
||||
error += "Blocklisted";
|
||||
else
|
||||
error += "Incompatible";
|
||||
|
||||
messageString = gNavigatorBundle.getFormattedString(error,
|
||||
[install.name, brandShortName, Services.appinfo.version]);
|
||||
messageString = gNavigatorBundle.getString(error);
|
||||
messageString = messageString.replace("#1", install.name);
|
||||
if (host)
|
||||
messageString = messageString.replace("#2", host);
|
||||
messageString = messageString.replace("#3", brandShortName);
|
||||
messageString = messageString.replace("#4", Services.appinfo.version);
|
||||
|
||||
PopupNotifications.show(browser, notificationID, messageString, anchorID,
|
||||
action, null, options);
|
||||
|
@ -302,7 +302,8 @@ function test_failed_download() {
|
||||
wait_for_notification("addon-install-failed", function(aPanel) {
|
||||
let notification = aPanel.childNodes[0];
|
||||
is(notification.getAttribute("label"),
|
||||
"The add-on could not be downloaded because of a connection failure.",
|
||||
"The add-on could not be downloaded because of a connection failure " +
|
||||
"on example.com.",
|
||||
"Should have seen the right message");
|
||||
|
||||
Services.perms.remove("example.com", "install");
|
||||
@ -328,7 +329,7 @@ function test_corrupt_file() {
|
||||
wait_for_notification("addon-install-failed", function(aPanel) {
|
||||
let notification = aPanel.childNodes[0];
|
||||
is(notification.getAttribute("label"),
|
||||
"The add-on downloaded from this site could not be installed " +
|
||||
"The add-on downloaded from example.com could not be installed " +
|
||||
"because it appears to be corrupt.",
|
||||
"Should have seen the right message");
|
||||
|
||||
@ -662,7 +663,7 @@ function test_wronghost() {
|
||||
wait_for_notification("addon-install-failed", function(aPanel) {
|
||||
let notification = aPanel.childNodes[0];
|
||||
is(notification.getAttribute("label"),
|
||||
"The add-on downloaded from this site could not be installed " +
|
||||
"The add-on downloaded from example.com could not be installed " +
|
||||
"because it appears to be corrupt.",
|
||||
"Should have seen the right message");
|
||||
|
||||
|
@ -77,20 +77,24 @@ addonsInstalledNeedsRestart=#1 will be installed after you restart #3.;#2 add-on
|
||||
addonInstallRestartButton=Restart Now
|
||||
addonInstallRestartButton.accesskey=R
|
||||
|
||||
# LOCALIZATION NOTE (addonInstallError-1, addonInstallError-2, addonInstallError-3, addonInstallError-4, addonInstallError-5, addonLocalInstallError-1, addonLocalInstallError-2, addonLocalInstallError-3, addonLocalInstallError-4, addonLocalInstallError-5, addonInstallErrorIncompatible, addonInstallErrorBlocklisted):
|
||||
# %1$S is the add-on name, %2$S is the application name, %3$S is the application version
|
||||
addonInstallError-1=The add-on could not be downloaded because of a connection failure.
|
||||
addonInstallError-2=The add-on could not be installed because it does not match the add-on %2$S expected.
|
||||
addonInstallError-3=The add-on downloaded from this site could not be installed because it appears to be corrupt.
|
||||
addonInstallError-4=%1$S could not be installed because %2$S cannot modify the needed file.
|
||||
addonInstallError-5=%2$S has prevented this site from installing an unverified add-on.
|
||||
addonLocalInstallError-1=This add-on could not be installed because of a filesystem error.
|
||||
addonLocalInstallError-2=This add-on could not be installed because it does not match the add-on %2$S expected.
|
||||
addonLocalInstallError-3=This add-on could not be installed because it appears to be corrupt.
|
||||
addonLocalInstallError-4=%1$S could not be installed because %2$S cannot modify the needed file.
|
||||
addonLocalInstallError-5=This add-on could not be installed because it has not been verified.
|
||||
addonInstallErrorIncompatible=%1$S could not be installed because it is not compatible with %2$S %3$S.
|
||||
addonInstallErrorBlocklisted=%1$S could not be installed because it has a high risk of causing stability or security problems.
|
||||
# LOCALIZATION NOTE (addonError-1, addonError-2, addonError-3, addonError-4, addonError-5):
|
||||
# #1 is the add-on name, #2 is the host name, #3 is the application name
|
||||
# #4 is the application version
|
||||
addonError-1=The add-on could not be downloaded because of a connection failure on #2.
|
||||
addonError-2=The add-on from #2 could not be installed because it does not match the add-on #3 expected.
|
||||
addonError-3=The add-on downloaded from #2 could not be installed because it appears to be corrupt.
|
||||
addonError-4=#1 could not be installed because #3 cannot modify the needed file.
|
||||
addonError-5=#3 has prevented this site from installing an unverified add-on.
|
||||
|
||||
# LOCALIZATION NOTE (addonLocalError-1, addonLocalError-2, addonLocalError-3, addonLocalError-4, addonLocalError-5, addonErrorIncompatible, addonErrorBlocklisted):
|
||||
# #1 is the add-on name, #3 is the application name, #4 is the application version
|
||||
addonLocalError-1=This add-on could not be installed because of a filesystem error.
|
||||
addonLocalError-2=This add-on could not be installed because it does not match the add-on #3 expected.
|
||||
addonLocalError-3=This add-on could not be installed because it appears to be corrupt.
|
||||
addonLocalError-4=#1 could not be installed because #3 cannot modify the needed file.
|
||||
addonLocalError-5=This add-on could not be installed because it has not been verified.
|
||||
addonErrorIncompatible=#1 could not be installed because it is not compatible with #3 #4.
|
||||
addonErrorBlocklisted=#1 could not be installed because it has a high risk of causing stability or security problems.
|
||||
|
||||
unsignedAddonsDisabled.message=One or more installed add-ons cannot be verified and have been disabled.
|
||||
unsignedAddonsDisabled.learnMore.label=Learn More
|
||||
|
Loading…
Reference in New Issue
Block a user