Closed
Bug 700889
Opened 13 years ago
Closed 13 years ago
Frontend needs strategy to deal with non-200 responses
Categories
(Pancake Graveyard :: Front-end, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
M2
People
(Reporter: nhirata, Assigned: sfoster)
References
Details
1. go to https://pancake.mozillalabs.com/addon/push
2. hit cancel
3. go back to pancake
Expected: no web page stored
Actual : new page for 401 (if you had wiped you would see it)
Comment 1•13 years ago
|
||
Moving this to the iOS module since this is something that we can probably detect on the native side after loading a page.
Updated•13 years ago
|
Component: Back-end → Native iOS Wrapper
QA Contact: backend → ioswrapper
Updated•13 years ago
|
Target Milestone: --- → M2
Comment 2•13 years ago
|
||
Assigning this back to frontend now that the two native bugs that this depends on have been resolved. See https://bugzilla.mozilla.org/show_bug.cgi?id=732425 and https://bugzilla.mozilla.org/show_bug.cgi?id=751189
Assignee: nobody → sfoster
Component: Native iOS Wrapper → Front-end
QA Contact: ioswrapper → frontend
Updated•13 years ago
|
Summary: Should not store 401 Errors and other website errors → Frontend needs strategy to deal with non-200 responses
Assignee | ||
Comment 3•13 years ago
|
||
Fixed in: https://bitbucket.org/mozillapancake/pancake/changeset/40dd6145e09f
I've added 'status' as an attribute on the SiteModel we use to represent these links in the drawer, and a dynamic className in the view so it gets a class status--{ok|error} which we can style as necessary. Right now it just makes the link text italic.
So the strategy is to treat non-200 responses as valid pages and go ahead and render them in the stack, but to mark them visibly as not-ok at last request - which I think is the right thing to do.
Note this doesn't handle 3* requests explicitly: they will just be 'ok' currently. My understanding is that'll be done upstream so we shouldn't be seeing any 300-range response codes.
For 400 and 500 statuses, the user may want to go back and try again later - I don't think we should presume to remove these automatically.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•