Closed Bug 1003495 Opened 11 years ago Closed 11 years ago

[tarako] When offline, marketplace loads with no content.

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P4)

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: krupa.mozbugs, Assigned: kngo)

References

Details

Attachments

(2 files)

Attached image no content.png
tarako build identifier: connectivity used: noticed on: dev/prod app used for test: steps to reproduce: 1. Install the latest marketplace dev packaged apps 2. Disable wifi 3. Launch the app expected behavior: App loads with pre-loaded featured apps observed behavior: Marketplace loads without any apps. See screenshot. [JavaScript Error: "not well-formed" {file: "app://packaged.marketplace-dev.allizom.org/db/home.json" line: 1 column: 1 source: "{"apps":[{"_id":429826,"author":"TweenSoft Inc.","categories":["games"],"content_ratings":{"body":"generic","rating":"3","interactives":[],"descriptors":[]},"description":{"en-US":"Tap to drop the jelly blox while they move left and right. The more accurate you drop the blox the higher score you'll get.\n","it":"Toccare per eliminare il blox gelatina, mentre si muovono a destra ea sinistra. La pi? accurata si rilascia il blox il punteggio pi? alto che si ottengono.","es":"Pulse para bajar el blox jalea mientras se mueven hacia la izquierda y la derecha. Cuanto m?s preciso se le cae el blox la mayor puntuaci?n obtendr?s."},"description_search":"Tap to drop the jelly blox while they move left and right. The more accurate you drop the blox the higher score you'll get.\n Toccare per eliminare il blox gelatina, mentre si muovono a destra ea sinistra. La pi? accurata si rilascia il blox reproducible?: ashes: behavior seen on regular marketplace using inari/hamachi: yes/no
Not sure if the JSON is the error. It'll raise the not-well-formed message, but still work: https://pastebin.mozilla.org/5010715 I can get rid of the error with overrideMimeType, but it's non-trivial to bake in and might not help.
views.js isn't rendering the page. Running ```var view = require('views').match('/app.html'); require('views').build(view[0], view[1]);``` renders the page. There's something up with navigation.js.
I tried this today, but I was able to see content when using airplane mode : http://screencast.com/t/b4zzOyiGNjJ
Assignee: nobody → kngo
Summary: When offline, marketplace loads with no content. → [tarako] When offline, marketplace loads with no content.
I think it gets up to this point at homepage.js: utils_local.checkOnline().done(function() { // Online. console.log("Building online homepage."); build(urls.api.unsigned.url('collection', ['tarako-featured'], params), 'apps'); }).fail(function() { // Offline. console.log("Building offline homepage."); build(settings.offline_homepage, 'apps'); }); And then it never builds the page.
Blocks: 1000301
No longer blocks: 998811
Depends on: 1001779, 1001777
Priority: -- → P4
We're doing an offline page now https://bugzilla.mozilla.org/show_bug.cgi?id=1001777 Otherwise, the data is accessible when offline. It's just we had troubles rendering it.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Offline page is shown when user launches the app in Airplane mode.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: