Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

Games Fail to Load in Firefox Private Browsing Modes #78

Open rameshvarun opened 1 year ago

rameshvarun commented 1 year ago

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

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.

MikuAuahDark commented 1 year ago

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