Closed Bug 949174 Opened 6 years ago Closed 6 years ago
Implement invalidation routine for Home
Because we can't wait for Gecko to be up and running, the configuration will also serve as a cache of things like 'title' which depends on the current locale and version of the add-on. For instance, if you switch to a different locale or the add-on is updated to a new version, we'll have to 'refresh' the configuration to get, say, the title string for the newly selected locale as well as any layout changes from the new add-on version. The bottom line here is that we'll have to come up with a robust invalidation routine that is triggered whenever the add-on is updated and you switch to another locale.
I think we should just listen for any events that would require us to update the home config, and do that update when we hear those events. If an add-on registers a new list, we should trigger an event that updates the home config. Same is true of locale changes. For example, my patch in bug 862805 generates a new gecko event when a list is added, so we could use listen for that to update and re-load the config.
Patches for bug 964375 bootstraps most of what this bug is about. There still some follow-ups to cover. See, for example, bug 968188 and bug 968172. https://hg.mozilla.org/integration/fx-team/rev/4103c332f013 https://hg.mozilla.org/integration/fx-team/rev/31f1a0b3b5b8 https://hg.mozilla.org/integration/fx-team/rev/a49670361d8a https://hg.mozilla.org/integration/fx-team/rev/3ce5275b17ed https://hg.mozilla.org/integration/fx-team/rev/299bcc7ae1fe https://hg.mozilla.org/integration/fx-team/rev/cfd371a2c63b https://hg.mozilla.org/integration/fx-team/rev/1a5908740d35 https://hg.mozilla.org/integration/fx-team/rev/9385b83f32c5 https://hg.mozilla.org/integration/fx-team/rev/75b2985c88bb https://hg.mozilla.org/integration/fx-team/rev/f9977589e824 https://hg.mozilla.org/integration/fx-team/rev/9897f4f42176
Depends on: 964375
https://hg.mozilla.org/mozilla-central/rev/4103c332f013 https://hg.mozilla.org/mozilla-central/rev/31f1a0b3b5b8 https://hg.mozilla.org/mozilla-central/rev/a49670361d8a https://hg.mozilla.org/mozilla-central/rev/3ce5275b17ed https://hg.mozilla.org/mozilla-central/rev/299bcc7ae1fe https://hg.mozilla.org/mozilla-central/rev/cfd371a2c63b https://hg.mozilla.org/mozilla-central/rev/1a5908740d35 https://hg.mozilla.org/mozilla-central/rev/9385b83f32c5 https://hg.mozilla.org/mozilla-central/rev/75b2985c88bb https://hg.mozilla.org/mozilla-central/rev/f9977589e824 https://hg.mozilla.org/mozilla-central/rev/9897f4f42176
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
You need to log in before you can comment on or make changes to this bug.