Closed Bug 1323594 Opened 8 years ago Closed 6 years ago

corrupt or missing addons DB should be rebuilt from installed add-on manifests

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rhelmer, Unassigned)

Details

(Whiteboard: triaged)

Per bug 1272446 comment 2 there is evidence that the AddonManager does not detect and recover from a corrupt or missing DB (which is a JSON file nowadays, so corruption would mean it can't be parsed). Even if this is working, let's add a test since it's important for it not to regress.
Assignee: nobody → rhelmer
Whiteboard: triaged
Not working on this, probably still a reasonable thing to ensure we have a test for at the very least.
Assignee: rhelmer → nobody

We definitely do rebuild extensions.json in many different scenarios including a corrupt database. Tests for a corrupt database specifically are in toolkit/mozapps/extensions/test/xpcshell/test_corrupt.js which has been around for years.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.