Open Bug 1296825 Opened 8 years ago Updated 2 years ago

fire observer topic and log to browser console when profile storage corruption is detected

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

Tracking Status
firefox51 --- affected

People

(Reporter: bkelly, Unassigned)

References

(Blocks 1 open bug)

Details

After hitting the issue where I accidentally opened my profile in beta recently and upgraded my storage schemas, I think we should try to warn about this issue a bit more. Bug 1246615 is to provide a banner or other warning. There are some things we should do at the platform level first: 1) Lets notify a "profile-storage-corrupted" observer topic when we detect this kind of thing. 2) Lets log a message to the browser console with more detail about the corruption. (Schema number, unexpected file, etc.) Bug 1246615 can then use the observer topic to know when to show its warning banner.
The main hassle here is often we detect this storage corruption on IO threads, but observer service and console reporting needs to take place on the main thread. I think we should add a helper to nsContentUtils or something to make it easy to trigger things.
Assignee: bkelly → nobody
Status: ASSIGNED → NEW
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.