зеркало из https://github.com/mozilla/gecko-dev.git
back out 5aa9b76448b5 (bug 960584) for bustage (it depends on fix that hasn't yet landed)
This commit is contained in:
Родитель
6220f0b288
Коммит
ed9cc235a6
|
@ -8,10 +8,6 @@ checkingForUpdatesMessage=Checking for updates to your apps
|
|||
noUpdatesTitle=No updates available
|
||||
noUpdatesMessage=There are no updates to your apps
|
||||
|
||||
# LOCALIZATION NOTE (retrievingMessage): %1$S is the name of the app.
|
||||
retrievingTitle=Retrieving app…
|
||||
retrievingMessage=%1$S
|
||||
|
||||
# LOCALIZATION NOTE (retrieveUpdateTitle): Semi-colon list of plural forms.
|
||||
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
# #1 is the number of updates.
|
||||
|
|
|
@ -100,19 +100,6 @@ this.WebappManager = {
|
|||
|
||||
let filePath;
|
||||
|
||||
|
||||
let appName = aMessage.app.manifest ? aMessage.app.manifest.name
|
||||
: aMessage.app.updateManifest.name;
|
||||
|
||||
let downloadingNotification = this._notify({
|
||||
title: Strings.GetStringFromName("retrievingTitle"),
|
||||
message: Strings.formatStringFromName("retrievingMessage", [appName], 1),
|
||||
icon: "drawable://alert_download_animation",
|
||||
// TODO: make this a determinate progress indicator once we can determine
|
||||
// the sizes of the APKs and observe their progress - bug 970210.
|
||||
progress: NaN,
|
||||
});
|
||||
|
||||
try {
|
||||
filePath = yield this._downloadApk(aMessage.app.manifestURL);
|
||||
} catch(ex) {
|
||||
|
@ -120,8 +107,6 @@ this.WebappManager = {
|
|||
aMessageManager.sendAsyncMessage("Webapps:Install:Return:KO", aMessage);
|
||||
debug("error downloading APK: " + ex);
|
||||
return;
|
||||
} finally {
|
||||
downloadingNotification.cancel();
|
||||
}
|
||||
|
||||
Messaging.sendRequestForResult({
|
||||
|
@ -174,7 +159,6 @@ this.WebappManager = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Trigger the download.
|
||||
worker.postMessage({ url: generatorUrl.spec, path: file.path });
|
||||
|
||||
|
@ -536,7 +520,7 @@ this.WebappManager = {
|
|||
message: getFormattedPluralForm("retrievingUpdateMessage", [downloadingNames], aApps.length),
|
||||
icon: "drawable://alert_download_animation",
|
||||
// TODO: make this a determinate progress indicator once we can determine
|
||||
// the sizes of the APKs and observe their progress - bug 970210.
|
||||
// the sizes of the APKs and observe their progress.
|
||||
progress: NaN,
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче