Closed Bug 1460717 Opened 7 years ago Closed 7 years ago

Cleanup XPIDatabaseReconcile.processStartupChanges

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

There's probably a lot of simplification we can do here, but at the moment, the main issue is that this code is so hairy and convoluted that it's hard for anyone to actually understand well enough to change. We should do some basic refactoring as a starting point to a larger simplification.
Comment on attachment 8974825 [details] Bug 1460717: Make processFileChanges somewhat maintainable. https://reviewboard.mozilla.org/r/243204/#review249358 Whew, thanks. ::: toolkit/mozapps/extensions/internal/XPIDatabase.jsm:2460 (Diff revision 3) > // corrupt database and we don't have migration data for this add-on then > // this must be a new install. Trying to make this comment clear may be a lost cause but I think you drop the "and we don't have migration data..." bit ::: toolkit/mozapps/extensions/internal/XPIDatabase.jsm:2706 (Diff revision 3) > + // Also reload the metadata for add-ons in the application directory > + // when the application version has changed. I don't understand this
Attachment #8974825 - Flags: review?(aswan) → review+
Comment on attachment 8974825 [details] Bug 1460717: Make processFileChanges somewhat maintainable. https://reviewboard.mozilla.org/r/243204/#review249358 > I don't understand this I don't understand it either.
Comment on attachment 8974825 [details] Bug 1460717: Make processFileChanges somewhat maintainable. https://reviewboard.mozilla.org/r/243204/#review249358 > I don't understand it either. so just remove it? it pretty clearly doesn't apply to this code
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Is manual testing required on this bug? If Yes, please provide some STR and the proper webextension(if required), if No set the “qe-verify-“ flag.
Flags: needinfo?(kmaglione+bmo)
Flags: needinfo?(kmaglione+bmo) → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: