Closed Bug 1571876 Opened 5 years ago Closed 4 years ago

Handle updates for builtin extensions

Categories

(Toolkit :: Add-ons Manager, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: aswan, Assigned: aswan)

References

Details

Attachments

(1 file)

In bug 1512436 we got support for "built-in" extensions read directly from omni.ja. However, there is no current support for handling updates to these extensions (ie, when the application changes, noticing if the built-in extension has changed and needs to go through the extension update logic).

Built-in addons are currently only used for the default theme and builtin search engines which are simple enough (and change infrequently enough) that this has not been a problem. This is much more likely to become a problem if we ship full-blown extensions (e.g. screenshots) in this way.

I'm pretty sure we have to handle this within the addon manager -- the update check really needs to happen before we call startup() on builtin addons and that happens relatively early during application startup.

How urgent is this? Can you set a priority?

Flags: needinfo?(aswan)

As mentioned in comment 0, I don't think this is urgent for the purpose of updating the built-in search engines or themes. But this is a blocker for bug 1568270 so it should have whatever priority that effort has. Making a tentative choice for now.

Flags: needinfo?(andrew.swan)
Priority: -- → P3

It looks like we're accidentally handling this: https://searchfox.org/mozilla-central/rev/158bac3df3a1890da55bdb6ffdaf9a7ffc0bfb0a/toolkit/mozapps/extensions/internal/XPIDatabase.jsm#3373-3382

In particular, we don't set a _sourceBundle property on builtin extensions, so update() gets called. We should add tests of this and perhaps clarify the code.

Assignee: nobody → andrew.swan
Status: NEW → ASSIGNED
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/21f059fa3608 Test updates of builtin extensions r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: