Page MenuHomePhabricator

Don't set hide cookies on monthly convert forms till after donation is complete
Closed, ResolvedPublic

Description

When monthly convert is enabled, we render img tags with HideBanners URLs in the modal popup. That starts out hidden by CSS but as soon as the page loads I see the browser requesting HideBanners (and getting donate cookies). So anyone who has loaded a payments-wiki page will get a hide cookie with reason=donate, not just people who have actually completed a donation.

Event Timeline

Change #1215714 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/DonationInterface@master] Monthly Convert: only set cookies when showing modal

https://gerrit.wikimedia.org/r/1215714

Change #1215714 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Monthly Convert: only set cookies when showing modal

https://gerrit.wikimedia.org/r/1215714

@spatton we've just deployed the patch to stop setting the "reason=donate" hide cookies as soon as donors load any monthly-convert-enabled payments form. Now it only sets them when the donation is complete and the monthly convert ask is triggered, as we initially intended.

Thanks for catching this, and fixing it so promptly, @Ejegg. I can confirm that I see the change on my end too (not getting cookies added as soon as I visit Payments Wiki). Thank you!

XenoRyet set Final Story Points to 2.