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)
Tracking
(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 fixed)
VERIFIED
FIXED
blocking-b2g | tef+ |
People
(Reporter: julienw, Assigned: julienw)
References
Details
(Keywords: regression)
Attachments
(2 files)
221.71 KB,
image/png
|
Details | |
6.12 KB,
patch
|
daleharvey
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
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
Assignee | ||
Comment 2•11 years ago
|
||
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.
Assignee | ||
Comment 3•11 years ago
|
||
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).
Assignee | ||
Comment 4•11 years ago
|
||
Updated•11 years ago
|
Blocks: app-install
Comment 5•11 years ago
|
||
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.
Assignee | ||
Comment 6•11 years ago
|
||
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 ;)
Assignee | ||
Comment 7•11 years ago
|
||
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...
Assignee | ||
Comment 8•11 years ago
|
||
CCing Dale as it seems to be because of fix to Bug 828888.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → felash
Assignee | ||
Comment 9•11 years ago
|
||
- 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)
Assignee | ||
Comment 10•11 years ago
|
||
Note for drivers> this must absolutely land in v1.0.0.
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite+
Assignee | ||
Comment 11•11 years ago
|
||
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)
Updated•11 years ago
|
blocking-b2g: tef? → tef+
Keywords: regression
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 704887 [details] [diff] [review] patch v1 Dale seems to be there after all :)
Attachment #704887 -
Flags: review?(crdlc) → review?(dale)
Comment 13•11 years ago
|
||
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+
Assignee | ||
Comment 14•11 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/a9f8b47f70c1fba2bdf83d2f9c821e175ff1231c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•11 years ago
|
||
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.
status-b2g18:
--- → affected
Comment 16•11 years ago
|
||
sorry Julien, I was on vacations and I couldn't review
Assignee | ||
Comment 17•11 years ago
|
||
crdlc> np :) you should change your bugzilla's nickname to reflect that, next time !
Comment 18•11 years ago
|
||
wait for landed
Comment 20•11 years ago
|
||
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.
status-b2g18-v1.0.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•