Closed Bug 1194217 Opened 9 years ago Closed 9 years ago

JavaScript Error: "TypeError: iconObject is undefined" {file: "app://system.gaiamobile.org/js/card.js" line: 298}

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:+)

RESOLVED FIXED
FxOS-S7 (18Sep)
tracking-b2g +

People

(Reporter: julienw, Assigned: sfoster)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

I got this error:

08-13 15:26:54.590 10490 10490 E GeckoConsole: [JavaScript Error: "TypeError: iconObject is undefined" {file: "app://system.gaiamobile.org/js/card.js" line: 298}]


I think this happens when I install an app that does not have an icon in its manifest.webapp (eg https://github.com/julienw/app-system-messages), launch it, and then display the task manager. You can install it using WebIDE or the install-to-adb tool.

Not sure what the user impact is, but could be that in this situation not all cards are displayed in the task manager -- qa could try to find out any user impact.
Blocks: 1188285
Doh yeah this is my bad. We handle the error case from getSiteIconUrl in card.js by calling _updateIcon with no argument, but _updateIcon still expects iconObject to be defined. We used to fallback to a default icon there but lost it recently.
Assignee: nobody → sfoster
Whiteboard: [systemsfe]
Cards appear to be showing fine and completely functional when this issue happens. I don't see any actual user impact. I'm not sure if I installed the app correctly though because when I open the test app at comment 0 I only see a blank page? I did see the mentioned error in my log so I assumed I did it correctly.

Tested on:
Device: Aries 2.5
BuildID: 20150812231434
Gaia: 52f3ea58df38e5427f6afeb636bc6ad01d24022f
Gecko: 7649ffe28b67aa2dad0f67ea01500c0ff91b2bac
Gonk: 2916e2368074b5383c80bf5a0fba3fc83ba310bd
Version: 43.0a1 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

Device: Flame 2.5
BuildID: 20150813030210
Gaia: 52f3ea58df38e5427f6afeb636bc6ad01d24022f
Gecko: 7649ffe28b67aa2dad0f67ea01500c0ff91b2bac
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 43.0a1 (2.5) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Keywords: qawanted
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
No user impact afaict.
blocking-b2g: 2.5? → ---
tracking-b2g: --- → +
Comment on attachment 8660044 [details] [review]
[gaia] sfoster:task-manager-empty-icon-bug-1194217 > mozilla-b2g:master

Fallback to the default icon defined in the stylesheet when getSiteIconUrl returns empty.
Attachment #8660044 - Flags: review?(apastor)
Comment on attachment 8660044 [details] [review]
[gaia] sfoster:task-manager-empty-icon-bug-1194217 > mozilla-b2g:master

Thanks!
Attachment #8660044 - Flags: review?(apastor) → review+
Thanks Alberto, merged to master: 
https://github.com/mozilla-b2g/gaia/commit/e6994410dcc88bfead0e44620a065220b7f12290
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S7 (18Sep)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: