Closed Bug 1685748 Opened 5 years ago Closed 5 years ago

Upgrade legacy extension search engines to use the supported extension definition

Categories

(Firefox :: Search, task, P2)

task
Points:
3

Tracking

()

RESOLVED FIXED
87 Branch
Iteration:
87.1 - Jan 25 - Feb 7
Tracking Status
firefox87 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(3 files)

From looking at various data, there are a set of engines in user's profiles where the loadPath looks something like:

jar:[profile]/extensions/<extensionid>.xpi/<filename>.xml

The jar: is optional, and profile may be app instead.

In most of the cases, these are cases where an extension used to define an OpenSearch engine, and then switched to the WebExtension definition but also changed the name of the search engine (e.g. foo -> foo search).

The change of name defeats the code we have to automatically upgrade these engines.

The remaining cases are where an add-on is no longer installed/enabled, but we failed to remove the associated search engine.

By switching these cases to the installed supported WebExtension version, this means that they will be updated to that defined by the WebExtension, and receive any future updates from the same.

If the extension is no longer installed, then we should remove the Search Engine, as we would have done previously.

Iteration: 86.3 - Jan 11 - Jan 24 → 87.1 - Jan 25 - Feb 7
Blocks: 1688663

Also ensure the default engine remains the same.

Also remove engine3.xml because it is not used.

These should generally have been updated previously, but the search service expected a same-name match. We have seen instances where these were different so we should migrate them.

Depends on D103094

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3f573106c1e Rewrite test_migrateWebExtensionEngine.js to use better methods for installing the engines under test. r=mak https://hg.mozilla.org/integration/autoland/rev/8ccb7b933d13 When installing a WebExtension based search engine, migrate existing legacy format definitions even if the name is different. r=mak https://hg.mozilla.org/integration/autoland/rev/5a3f2b7bda73 Migrate legacy extension search engines to use supported extension definitions. r=mak
Blocks: 1446934
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: