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)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: krupa.mozbugs, Assigned: kngo)
References
Details
Attachments
(2 files)
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
Reporter | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
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.
Assignee | ||
Comment 3•11 years ago
|
||
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.
Comment 4•11 years ago
|
||
I tried this today, but I was able to see content when using airplane mode : http://screencast.com/t/b4zzOyiGNjJ
Updated•11 years ago
|
Assignee: nobody → kngo
Updated•11 years ago
|
Summary: When offline, marketplace loads with no content. → [tarako] When offline, marketplace loads with no content.
Assignee | ||
Comment 5•11 years ago
|
||
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.
Updated•11 years ago
|
Updated•11 years ago
|
Assignee | ||
Comment 6•11 years ago
|
||
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
Reporter | ||
Comment 7•11 years ago
|
||
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.
Description
•