Closed Bug 870432 Opened 11 years ago Closed 11 years ago

Handle complete failure to load Persona

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-10-01

People

(Reporter: kumar, Assigned: scolville)

References

Details

Attachments

(1 file)

In the rare case that the Persona server cannot be reached, WebPay fails with a spinner that says "Beginning payment" but never does anything.

This is an example the JS error we get:
E/GeckoConsole(  546): [JavaScript Error: "TypeError: navigator.id is undefined" {file: "https://marketplace.allizom.org/mozpay/media/js/pay-min.js?build=973734e" line: 6}]

We should add a generic timeout to handle this and related errors with a button that says "Try again" or something
Priority: -- → P3
How's this for an error message?
yep, that looks good to me
Assignee: nobody → scolville
Stuart, the bug description says to handle the case when Persona can't be reached but it would be nice to make this a generic timeout/retry handler for anything, such as an unexpected JS error. E.G. You could fire off a setTimeout from the progress spinner -- https://github.com/mozilla/webpay/blob/master/media/js/cli.js -- then clear the timeout in hide progress.
(In reply to Kumar McMillan [:kumar] (on PTO 5/20-5/24) from comment #3)
> Stuart, the bug description says to handle the case when Persona can't be
> reached but it would be nice to make this a generic timeout/retry handler
> for anything, such as an unexpected JS error. E.G. You could fire off a
> setTimeout from the progress spinner --
> https://github.com/mozilla/webpay/blob/master/media/js/cli.js -- then clear
> the timeout in hide progress.

Yep that sounds like a plan.
(In reply to Maureen Hanratty from comment #1)
> Created attachment 747510 [details]
> Error message connecting to Persona
> 
> How's this for an error message?

Looks good, we won't be able to cover the header of the trusted ui but the rest should be possible.
Status: NEW → ASSIGNED
Summary: Handle complete failure to load Persona → Handle complete failure to load Persona (and any webpay timeout)
Flags: affects-tricycle+
Flags: affects-seville+
Flags: affects-seahorse+
Flags: affects-moss+
Flags: affects-durango+
Blocks: 876808
Version: 1.0 → 1.3
Target Milestone: --- → 2013-10-01
https://github.com/mozilla/webpay/commit/c9e1df6cd33a9cd4513a3cc155cbf6294fd8f2e1

Other timeouts will come in other upcoming branches.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Summary: Handle complete failure to load Persona (and any webpay timeout) → Handle complete failure to load Persona
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: