Open Bug 1518231 Opened 6 years ago Updated 2 years ago

Malformed sqlite database breaks web storage

Categories

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

enhancement

Tracking

()

People

(Reporter: mossop, Unassigned)

Details

Attachments

(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.

Attachment

General

Created:
Updated:
Size: