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

Connect to IndexedDB? #1

Open
Raidus opened this issue Mar 9, 2019 · 4 comments
Open

Connect to IndexedDB? #1

Raidus opened this issue Mar 9, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@Raidus
Copy link

Raidus commented Mar 9, 2019

Hi,

thirst I need to thank you for this nice module! :-)

I'm trying to make fibrelite working with indexedDB but I'll git following error:

Failed to execute 'open' on 'IDBFactory': access to the Indexed Database API is denied in this context.

I've provided two test scripts: https://glitch.com/edit/#!/leeward-zoology
test-fibre.html (error) and test-native.html (works)

Can you give me some hints on making fibrelite working with indexedDB?

Best
Wilhelm

@JamesLMilner
Copy link
Owner

Interesting, I can reproduce this. On Firefox indexedDB is simply undefined. I think this is something to do with it being a Data URL and it treating it like local file but I might be wrong there. I'd be intrigued to see if Greenlet has the same fate. Let me get back to you.

@Raidus
Copy link
Author

Raidus commented Apr 18, 2019

any updates?

@JamesLMilner JamesLMilner pinned this issue Apr 18, 2019
@JamesLMilner JamesLMilner added the bug Something isn't working label Apr 21, 2019
@JamesLMilner
Copy link
Owner

@Raidus that Glitch seems to have disappeared. Do you have the code snippet which causes the error?

@JamesLMilner
Copy link
Owner

@Raidus I can still see it on null on Firefox. On Chrome seems to be defined, but the success callback never seems to be called when you use open. I've raised this on greenlet here as their user-base is much larger and maybe they'll have a better insight into the root cause: developit/greenlet#40.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants