The user should be prompted that an app failed to install if it did fail to install

VERIFIED WONTFIX

Status

()

VERIFIED WONTFIX
7 years ago
2 years ago

People

(Reporter: jsmith, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
Steps:

	1. Install the latest fennec native nightly
	2. Go to apps.mozillalabs.com/appdir
	3. Install all of the apps on this app directory (19 in total)
	4. Go to about:apps

Expected:

19 apps should be listed in about:apps.

Actual:

Only 18 out of 19 apps were listed as installed. I'm thinking that it's possible that one app failed to install, but the user was not prompted that the app failed to install.

Additional Notes:

There are likely other ways to reproduce this issue, but the above reproduction steps will consistently show the silent failure occurring during installation of one of the 19 apps.

Device: Samsung Galaxy Nexus
OS: Android 4.02
Build: Fennec Native Nightly
(Reporter)

Updated

7 years ago
Whiteboard: [WebRT]
Any specific error in the console (adb logcat)? Was there an installation prompt for all 19?
(Reporter)

Updated

7 years ago
Component: General → Web Apps
(Reporter)

Comment 2

7 years ago
Yes, there was an installation prompt for all 19. I'll have dig into later what the error is in the console.
(Reporter)

Updated

7 years ago
QA Contact: general → web-apps
(Reporter)

Updated

7 years ago
Whiteboard: [WebRT]
(Reporter)

Updated

7 years ago
Blocks: 738546
(Reporter)

Updated

7 years ago
Whiteboard: [marketplace-beta?]
FWIW, I don't see a way to be notified in chrome that the install failed. I only see navigator.mozMgmt.onInstall being fired for successful installs:
http://mxr.mozilla.org/mozilla-central/source/dom/base/Webapps.js#351

Is there some other event I should be listening to? I only see onInstall and onUninstall, both of which are only fired for success.
(Reporter)

Comment 4

7 years ago
(In reply to Mark Finkle (:mfinkle) from comment #3)
> FWIW, I don't see a way to be notified in chrome that the install failed. I
> only see navigator.mozMgmt.onInstall being fired for successful installs:
> http://mxr.mozilla.org/mozilla-central/source/dom/base/Webapps.js#351
> 
> Is there some other event I should be listening to? I only see onInstall and
> onUninstall, both of which are only fired for success.

Sounds like this might be a problem with the API being exposed then possibly, as I thought the mozApps API does provide context into why an install failed (e.g. I couldn't find the manifest, the manifest did not parse correctly). Fabrice - Could you provide insight?
the install() call returns a DOMRequest obejct and we fire onerror on this object wen something bad happens.

So the web content has ways to notify the user of errors. I don't think this should be replicated in chrome.
So we should close this bug?
(Reporter)

Updated

7 years ago
Whiteboard: [marketplace-beta?]
As the stated in comment 3 and 5, the client-side API does not allow for reporting errors. It is currently the job of the webapp marketplace to show success and errors. I will close this bug.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
(Reporter)

Comment 8

7 years ago
Agreed. Marketplace does the reporting as I've seen on marketplace.mozilla.org.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.