Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this handle IE swallowing transaction errors? #102

Closed
ste2425 opened this issue Apr 22, 2016 · 1 comment
Closed

Does this handle IE swallowing transaction errors? #102

ste2425 opened this issue Apr 22, 2016 · 1 comment

Comments

@ste2425
Copy link

ste2425 commented Apr 22, 2016

Ive been working with inededDB for a while and will be using your module for its encryption. I have recently noticed in IE that if you reach your quota. The transaction will silently fail. The add data request will report as successful but the transaction will not succeed or fail.

I was thinking of implementing some nasty hack where you have a timeout to assert to record exists by reading it should the transaction fail to resolve after a period of time.

However if you have come across this issue and rectified it in this module that would be the icing on the cake so to speak.

This is how i reproduce the issue on my machine in case you haven't seen it before.
http://output.jsbin.com/gapari/quiet

In the console it should log

About to add data
File: quiet
Woot! Did it
transaction onsucc

However should the quota be reached it will do this (Note the lack of transaction onsucc or onerr)

About to add data
File: quiet
Woot! Did it

You do have to spam the add button (took about 100 for me)

The log Woot! Did it comes from the request onsuccess and transaction onsucc from the transaction.

@ste2425
Copy link
Author

ste2425 commented Apr 22, 2016

I'm closing this as its me being completely stupid. IE does not swallow the error, it instead fires the aborted handler, not the error handler.

@ste2425 ste2425 closed this as completed Apr 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant