Closed Bug 832376 Opened 11 years ago Closed 11 years ago

The default icon doesn't appear when manifest has an invalid icon URL - stays in "downloading" mode

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 fixed)

VERIFIED FIXED
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.0 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

(Keywords: regression)

Attachments

(2 files)

STR:
* install app in http://everlong.org/mozilla/brokenhostedappcache/
* wait until it is installed
* go to the homescreen

Expected:
* default app icon is added for this application

Actual:
* spinning downloading icon is still present

Useful log:
E/GeckoConsole(  616): [JavaScript Error: "NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMMozURLProperty.createObjectURL]" {file: "app://homescreen.gaiamobile.org/js/page.js" line: 288}]

Nominating because this _will_ happen.
The same happens with app at http://everlong.org/mozilla/brokenpackaged/.
Summary: The default icon doesn't appear for hosted+appcache with invalid icon URL - stays in "downloading" mode → The default icon doesn't appear when manifest has an invalid icon URL - stays in "downloading" mode
As said in the title of this bug, the problem here is that the icon URL in the manifest points to an URL that does not exist.
Also, after restarting the phone, there is no icon _at all_ for these apps.

See screenshot, the icon at the bottom right. So the user can't even uninstall the app (maybe by the Settings app but this is bad).
Attached image screenshot
Blocks: app-install
Well, this looks bad. I can reproduce.

Looks like the app is launchable in the spinning state. After a restart, there's no icon there at all! It becomes hard to launch too - you need to hit the label.

It's possible to uninstall the app still.

From the marketplace side, the validator would help check this periodically.
Jason> I couldn't uninstall the app, at least from the homescreen.

This is also a regression from Bug 818417... I already fixed this bug once, I can do it another time ;)
BTW, in Bug 818417 I spent some times and added 7 tests for this specific error. They don't run at all now. Really this is not right...
CCing Dale as it seems to be because of fix to Bug 828888.
Assignee: nobody → felash
Attached patch patch v1Splinter Review
- fix homescreen tests, had to change the TextOverflowDetective for that
- Don't use the stored old rendered icon if it's not a proper blob.
---
 apps/homescreen/js/page.js             |   32 +++++++++++------
 apps/homescreen/test/unit/page_test.js |   62 +++++++++++++++++++++++++++++++-
 2 files changed, 83 insertions(+), 11 deletions(-)
Attachment #704887 - Flags: review?(dale)
Note for drivers> this must absolutely land in v1.0.0.
Flags: in-testsuite+
Comment on attachment 704887 [details] [diff] [review]
patch v1

ask for review from crdlc instead of Dale as he's busy this week.
Attachment #704887 - Flags: review?(dale) → review?(crdlc)
blocking-b2g: tef? → tef+
Keywords: regression
Comment on attachment 704887 [details] [diff] [review]
patch v1

Dale seems to be there after all :)
Attachment #704887 - Flags: review?(crdlc) → review?(dale)
Comment on attachment 704887 [details] [diff] [review]
patch v1

Small patch, I reproduced manually and the patch worked, tests also passing
Attachment #704887 - Flags: review?(dale) → review+
https://github.com/mozilla-b2g/gaia/commit/a9f8b47f70c1fba2bdf83d2f9c821e175ff1231c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
it's not landed on v1.0.0 yet, as I'm not sure if we should land this ourself or if we should wait for someone to do that, per vivien's advice.
Keywords: verifyme
QA Contact: jsmith
sorry Julien, I was on vacations and I couldn't review
crdlc> np :) you should change your bugzilla's nickname to reflect that, next time !
wait for landed
Verified on 1/25 build.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Marking status-b2g18-v1.0.0 fixed based on Vivien's drive-by fixing on status-b2g18 fix, assuming this has been merged to v1.0.0 branch.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: