IndexedDB deleteDatabase does not reset version

孤人 提交于 2019-12-06 22:58:26

You don't seem to be doing anything wrong. For what it's worth, I believe the deleteDatabase implementation is relatively new in FF so perhaps you've found a bug.

One thing I would try is to first inspect and then physically remove the IndexeDB-backing .sqlite database files before restarting the browser. It could be a caching thing. Paths to those files below.

On a PC:

C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\indexedDB

On a Mac:

/Users/username/Library/Application\ Support/Firefox/Profiles/<*>.default/indexedDB/

The table in the .sqlite file that has the database version is called database, and there are two columns, name and version. Your database should be in that table and should list the version number.

Deleting the database should delete that row. If it doesn't, I believe you've found a bug.

Worst comes to worse, delete the entire directory in the indexedDB profile folder and reinstall to verify a fresh install works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!