Bug 793747 - Add app origin to install message. r=mfinkle
authorMartyn Haigh <mhaigh@mozilla.com>
Tue, 09 Apr 2013 18:56:47 +0100
changeset 128499 783f66376d6553f2d1510b039aaa198f480e1ff9
parent 128498 4e471f4974821757e324258b0eb489c8ca3a5f63
child 128500 ed313842afecdb3df56769e7a9672f8e95e1427c
push id24529
push userryanvm@gmail.com
push dateFri, 12 Apr 2013 11:51:36 +0000
treeherdermozilla-central@5bc732a49eae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs793747
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 793747 - Add app origin to install message. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6034,17 +6034,17 @@ var WebappsUI = {
   },
 
   doInstall: function doInstall(aData) {
     let jsonManifest = aData.isPackage ? aData.app.updateManifest : aData.app.manifest;
     let manifest = new ManifestHelper(jsonManifest, aData.app.origin);
     let name = manifest.name ? manifest.name : manifest.fullLaunchPath();
     let showPrompt = true;
 
-    if (!showPrompt || Services.prompt.confirm(null, Strings.browser.GetStringFromName("webapps.installTitle"), name)) {
+    if (!showPrompt || Services.prompt.confirm(null, Strings.browser.GetStringFromName("webapps.installTitle"), name + "\n" + aData.app.origin)) {
       // Get a profile for the app to be installed in. We'll download everything before creating the icons.
       let profilePath = sendMessageToJava({
         type: "WebApps:PreInstall",
         name: manifest.name,
         manifestURL: aData.app.manifestURL,
         origin: aData.app.origin
       });
       let file = null;