Open Bug 1518231 Opened 4 years ago Updated 6 months ago

Malformed sqlite database breaks web storage


(Core :: Storage: localStorage & sessionStorage, enhancement, P3)





(Reporter: mossop, Unassigned)



(1 file)

Attached file integrity_check.txt

My wife was having problems with Firefox. Netflix would just display an error when attempting to watch a show and when attempting to upvote or post to reddit nothing would happen.

I eventually narrowed it down to the webappsstore.sqlite file. Removing this fixed all her issues. In testing attempting to use localstorage on Netflix (localStorage.test = "foo") resulted in the exception "File error: Corrupted" nsresult: "0x8052000b (NS_ERROR_FILE_CORRUPTED)".

The sqlite file seems to be broken in an interesting way. Opening it with sqlite3 works. Listing everything in the database shows a whole lot of data, but then ends with "Error: database disk image is malformed".

I've attached the results of "PRAGMA integrity_check;"

It would be really great if we could recover from this, presumably at the least just throwing away the corrupt database and starting fresh.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.