Closed Bug 870411 Opened 11 years ago Closed 11 years ago

Auto-login to WebPay for repeat payments is not working

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-05-09

People

(Reporter: kumar, Assigned: jedp)

References

Details

STR
- configure your device for dev/stage payments per https://webpay.readthedocs.org/en/latest/use_hosted_webpay.html
- open Marketplace dev or stage, such as Marketplace Stage at https://marketplace.allizom.org/ (installable from http://people.mozilla.com/~kmcmillan/mktdev.html)
- search for Private Yacht
- click Buy
- log in to the Marketplace via Persona (TrustedUI title says Sign In)
- proceed to the WebPay server (TrustedUI title says Marketplace Stage)

Expected: you should be automatically logged in to WebPay because these servers are on the same origin

Actual: you see a Sign In button which you have to click each time to proceed

You can also reproduce this by signing into WebPay, clicking cancel to return to Marketplace, and pressing the Buy button again to begin a new pay flow.

Note: this is *only* happening on the 1.0.1 branch. Here is a build where I confirmed it but it's not necessarily the one that broke it:

  https://git.mozilla.org/?p=releases/gecko.git;a=commitdiff;h=af474bd146240010dfb700e0c6cb70a515288c71
  https://git.mozilla.org/?p=releases/gaia.git;a=commitdiff;h=30ad443fbe5363a7381c19c6bf9d6ca49228fb8b
Priority: -- → P1
Blocks: 850084
kumar check it out and see if the fix works for you

we pushed the fix to native-persona.org as well as login.dev.anosrep.org (the browserid dev server, which, btw, is where the new ux is).

I think what happened here is that this used to work, and then the memshrink patch landed in b2g18, which guaranteed that this would continue to work (by ensuring that no old data could ever be cached), and in that period, the earlier state-management code started to diverge.  Another way of saying that is that I screwed up.  I really should have been more on top of that.  I'm sorry for the churn this caused, especially at a time when we're all so busy.
Yep! Thanks very much for the quick fix, it is working now on today's 1.0.1 after https://bugzilla.mozilla.org/show_bug.cgi?id=870412#c6 . I tried several times to be sure. All is good.

No worries. Another problem is on our end: we were accidentally doing all testing on the v1-train instead of 1.0.1 otherwise we would have caught it sooner.
Assignee: nobody → jparsons
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-05-09
(In reply to Kumar McMillan [:kumar] from comment #5)
> Yep! Thanks very much for the quick fix, it is working now on today's 1.0.1
> after https://bugzilla.mozilla.org/show_bug.cgi?id=870412#c6 . I tried
> several times to be sure. All is good.

Great!  Good to hear.

> No worries. Another problem is on our end: we were accidentally doing all
> testing on the v1-train instead of 1.0.1 otherwise we would have caught it
> sooner.

Well, that goes for us, too.  btw :zac was very helpful in helping me confirm the problems last night when I wasn't sure what I was seeing on hotel wifi, and he jumped in with more regression tests today.  w00t!
You need to log in before you can comment on or make changes to this bug.