axemclion / jquery-indexeddb

An IndexedDB Plugin for Jquery.
Other
195 stars 70 forks source link

Exception generated when user denies local storage privilege in Firefox #5

Closed bsander closed 12 years ago

bsander commented 12 years ago

If the user answers "Never for this site" to the Firefox's popup balloon asking them for local storage/indexedDB permission, the call that's trying to open this indexeddb object results in the following exception:

error db is undefined http://localhost/.../jquery.indexeddb.js Line 488

This happens because the close() method is called on the db variable on that line. A check should be placed here to ensure we're still dealing with a valid indexeddb object.

axemclion commented 12 years ago

Are you trying to run the tests? Which page are you seeing the exception on?

For me, I just get a database error, no exception thrown. Would be great if you can help me with more information.

axemclion commented 12 years ago

Not able to reproduce the issue. Please add more information and re-open the issue if you still see this bug.