haystack / tipsy

A new project to encourage pay-what-you-want support for any web site.
http://tipsy.csail.mit.edu/
MIT License
31 stars 9 forks source link

Firefox payment redirection #38

Closed tbranyen closed 7 years ago

tbranyen commented 9 years ago

The redirection isn't working back to resource:// protocol. This may be a limitation with Firefox.

tbranyen commented 9 years ago

Currently I've come up with a very hacky method of returning which is effectively:

history.go(history.length-1);

Returning the user back to the furthest they've been in their history. This "should" work most of the time, since the extension is opened on a button press (making it first in the history). However, this means no data can be shared, so a successful transaction must always be inferred.

tbranyen commented 9 years ago

I've been able to share data via localStorage. I think we can do some cleverness if the settings are set and we're on the homepage. If this happens we know the user just came from a payment gateway and we can use window.confirm to figure out if it was successful or not. From there we can update the log automatically.

tbranyen commented 7 years ago

Firefox-specific support was dropped, can close out. Eventually they will support CRX files and this extension will "just work".

tbranyen commented 7 years ago

This bug tracks some of their intent: https://bugzilla.mozilla.org/show_bug.cgi?id=1260836, it's a bit hard to navigate their bugzilla, but internal sources have been pretty vocal about finding extension parity.