Closed Bug 939328 Opened 11 years ago Closed 11 years ago

User is prompted to sign in for every purchase

Categories

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

All
Android
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: krupa.mozbugs, Unassigned)

References

Details

Nightly 28.0a1 (11-04) steps to reproduce: 1. Load marketplace stage on Firefox mobile 2. Start the purchase of a paid app 3. Sign in using your persona address when prompted to sign up. 4. Complete the app purchase 5. Return to marketplace-stage and start a second app purchase expected behavior: User is already logged in and doesn't need to log in for every purchase observed behavior: User is prompted to sign in for every purchase
Sounds like cookies from the previous "trusted ui" session are not being retained for the second invocation?
Assignee: nobody → wjohnston
Priority: -- → P2
Wes, this sounds more serious than bug 939270. It looks like cookies are not preserved in the mozPay() window between invocations. To rule out marketplace, a simple cookie set/read test would help deduce this.
If I: * log into the marketplace on nightly * search for paid app, hit buy * we reset the users account, the log is here: https://www.dropbox.com/s/y2l0tt59l99zod4/Screenshot%202013-11-27%2016.22.44.png Is navigator.id.logout being triggered for a reason here? This then goes on to call reset_user on the webpay server, which is a noop, but I'm guessing that logout being called is the problem. This doesn't occur on firefox os.
I think mozPay is doing the right things with cookies here. I set up a simple test: * change in about:config so that mozilla-local/payments/pay/v1/ points to http://www.agmweb.ca/files/mozpay-end.html * go to http://www.agmweb.ca/files/mozpay.html * note a test1 cookie is written * click "Test", note that on the next page (which has been opened by webpay, we have the cookie)
Version: 1.4 → 1.5
I couldn't find anything wrong with the cookie handling so far in Android. I think this is related to bug 939270 and so assigning to Kumar for further investigation.
Assignee: wjohnston → kumar.mcmillan
See Also: → 939270
oops! The login problem was because I told Wes to put 'dom.identity.enabled = true' in our addon to flip payment prefs but that kicked in some native code. Android won't ship with that so it should be false (which fixes the login issue). I'll leave this bug open so I can patch the addon.
Target Milestone: --- → 2014-01-21
Hey Wes, could you pull this in and upload a new version of your super nifty addon? The testers have been using it. https://github.com/wesj/devMarketplace/pull/1
Flags: needinfo?(wjohnston)
Since we're still trying to crack this, Wes, you can hold off on that patch. I think it only fixed part of the problem. It fixed a login on one page but not another (our bounce page). I'm still digging into that.
Flags: needinfo?(wjohnston)
It looks like Persona is not handling the unverified email correctly. Not sure if it's us or them. Here's the issue: https://github.com/mozilla/persona/issues/4073
Target Milestone: 2014-01-21 → ---
deduced this to a Persona issue (maybe)
Assignee: kumar.mcmillan → nobody
This because of our use of unverified emails in the web version of persona as opposed to native. With the impending arrival of Firefox Accounts, we decided it wasn't worth trying to fix this and instead focus attention on Firefox Accounts. Unfortunately till that lands, we'll just have to live with this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
See Also: → 1057033
You need to log in before you can comment on or make changes to this bug.