Closed Bug 932843 Opened 11 years ago Closed 11 years ago

Cannot preinstall a packaged app without network connection in a SIM customization variant

Categories

(Core Graveyard :: DOM: Apps, defect)

26 Branch
ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, firefox26 wontfix, firefox27 wontfix, firefox28 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
mozilla28
blocking-b2g koi+
Tracking Status
firefox26 --- wontfix
firefox27 --- wontfix
firefox28 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: amac, Assigned: amac)

References

Details

(Keywords: regression, verifyme, Whiteboard: [systemsfe])

Attachments

(1 file, 2 obsolete files)

+++ This bug was initially created as a clone of Bug #927959 +++

Bug 927959 broke the installation of packaged apps when the device doesn't have network at boot-up time.

STR

1. Follow https://wiki.mozilla.org/B2G/QA/Customizations#Build_Setup to setup your build with a AT&T Mobile US SIM included
2. Complete the FTE

Expected

Packaged apps should be installed and useable.

Actual

Packaged apps get the grey rocket icon, and are on pending state.

I think the problem is on:

    if (Services.io.offline) {
      let onlineWrapper = {

at the start of onInstallSuccessAck. I'll upload a proposed patch in a few minutes (as soon as my compilation ends and I can try it out)
Requesting koi since apps should be installable without having network connection (and this was introduced as a regression from 927959).
blocking-b2g: --- → koi?
Obvious 1.2 blocker
blocking-b2g: koi? → koi+
Attached patch bug932843.patch (obsolete) — Splinter Review
Skips the online validation for local installed apps (which actually don't need to be online to install).
Attachment #824700 - Flags: review?(fabrice)
You're only talking about the operator variant packages, right? not packaged apps from the store?
(In reply to Fabrice Desré [:fabrice] from comment #4)
> You're only talking about the operator variant packages, right? not packaged
> apps from the store?

Yeah. Packaged apps from the store can't be installed when not online anyway, so they're not affected by this. But operator variant packaged apps can (and should) be installed when not online.
Comment on attachment 824700 [details] [diff] [review]
bug932843.patch

Review of attachment 824700 [details] [diff] [review]:
-----------------------------------------------------------------

I don't like that we pass aData.app.localInstallPath here, since you don't use the path. Change that for something more semantic like:
onInstallSuccessAck(aManifestURL, aDontNeedNetwork)
Attachment #824700 - Flags: review?(fabrice) → review-
Attached patch V2, includes review comments (obsolete) — Splinter Review
Changed the parameter passed as requested on the previous review.
Attachment #824700 - Attachment is obsolete: true
Attachment #825667 - Flags: review?(fabrice)
Blocks: 927959
No longer depends on: 927959
Comment on attachment 825667 [details] [diff] [review]
V2, includes review comments

Review of attachment 825667 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with nit fixed

::: dom/apps/src/Webapps.jsm
@@ +2159,2 @@
>      // If we are offline, register to run when we'll be online.
> +    if ((Services.io.offline) && (!aDontNeedNetwork)) {

nit: we don't need all these parentheses:
if (Services.io.offline && !aDontNeedNetwork) { ...
Attachment #825667 - Flags: review?(fabrice) → review+
Attachment #825667 - Attachment is obsolete: true
Try run looks good (or as good as it's going to get :P), requesting checkin
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9a123f6acb3d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Keywords: verifyme
QA Contact: jsmith
QA Contact: jsmith
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: