Open Bug 1825510 Opened 1 year ago Updated 2 months ago

[DNR] Reschedule task to save DNR store cache data after addon uninstall

Categories

(WebExtensions :: Request Handling, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: rpl, Unassigned)

References

Details

(Whiteboard: [addons-jira])

As a follow up to Bug 1803365, after an addon is uninstalled we should reschedule the task to save the update DNR store cache data to disk, but avoiding it if the application is already shutting down (functionally it wouldn't change any actual behavior, on the next startup the stale entries would still not be used and they will get removed on the next time the save cache data task is scheduled, but removing the stale entries sooner can reduce the amount of startup cache data to read and decode on the next startup and so still worth it).

In addition to save the updated cache data to disk after the addon is uninstalled we could also introduce the following additional tweaks:

  • in the method that detects cache data changes to determine if the save cache data task should be rescheduled right away, we can check also data entries that are not used anymore and reschedule a save cache data task

  • after the XPIProvider has completed to start all the active addons as part of the application startup (and XPIProvider initialization), we could clear the remaining unused cache data entries that may have been loaded from the startup cache data

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