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

Games Fail to Load in Firefox Private Browsing Modes #78

Open
rameshvarun opened this issue Apr 20, 2023 · 1 comment
Open

Games Fail to Load in Firefox Private Browsing Modes #78

rameshvarun opened this issue Apr 20, 2023 · 1 comment

Comments

@rameshvarun
Copy link

rameshvarun commented Apr 20, 2023

Love.js games fail to load in the following situations:

  • Firefox Private Browsing
  • Chrome Incognito when Embedded in an Iframe (for example, when uploading to Itch.io)
  • Brave browser when embedded in an iframe

This can be easily repro'd by:

The culprit is IndexedDB. In private browsing mode, some browsers will throw exceptions when performing IndexedDB operations. The fix is to catch these exceptions in EmscriptenPersistence.js and ignore; so games can proceed using MemFS.

@rameshvarun rameshvarun changed the title Games Fail to Load in Private Browsing Modes Games Fail to Load in Firefox Private Browsing Modes Apr 20, 2023
@MikuAuahDark
Copy link

Unfortunately Firefox does not support IndexedDB in private browsing, which love.js requires. Please complain to Mozilla.

https://bugzilla.mozilla.org/show_bug.cgi?id=1639542

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

2 participants