Closed Bug 2088947 Opened 1 month ago Closed 2 days ago

When a search engine is marked as deprecated, move its details over to a user search engine if it has been used recently

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [sng])

Attachments

(2 external files, 1 obsolete file)

When a search engine is marked as deprecated in the search configuration, we already remove it from the list (bug 2070361), however, we also want to migrate its details to a user engine if it has been used recently, or if it is the default search engine.

This applies with the following conditions:

  • If the user has used the engine within the last 30 days (form history entries for the engine), or it is their default or private default engine, then:
    • Create a user search engine with the same name, URLs, aliases and icon.
    • Copy the user's alias and order (hideOneOffButton is not copied).
  • If it was the default or private default, the new engine should be kept as (private) default.
  • If the user has hidden the engine, it is not migrated, even if it was used recently.
  • If the engine is overridden by an add-on or OpenSearch engine, it is not migrated; the existing override restoration applies.

Additional notes:

  • The migration may happen at startup or when engines are reloaded due to a configuration update.
  • Partner codes and experiment parameters are expected to be removed in the configuration when an engine is marked as deprecated, so no filtering is done in the client.
  • Engines installed by the user via contextual search and whose configuration is deprecated are always converted to user search engines (unless hidden).
  • Deprecated configurations offered for contextual install are offered as user search engines.
Summary: When a search engine is marked as depreacted, move its details over to a user search engine if it has been used recently → When a search engine is marked as deprecated, move its details over to a user search engine if it has been used recently

Comment 0 has been updated with expanded requirements.

If the configuration engine offered for contextual search is deprecated, offer
it as a user search engine rather than a user installed configuration engine.

Hidden and overridden engines are not migrated; overridden engines are restored by the existing override handling.

Engines installed via contextual search that are deprecated in the
configuration are now converted to user search engines when loading or
reloading engines.

Comment on attachment 9693481 [details]
Bug 2088947 - Create user search engines when installing deprecated configuration engines via contextual search. r?#search-reviewers!

Revision D347535 was moved to bug 2088940. Setting attachment 9693481 [details] to obsolete.

Attachment #9693481 - Attachment is obsolete: true
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3175f88c0fa0 https://hg.mozilla.org/integration/autoland/rev/f2ef6694201f Migrate deprecated config search engines to user search engines if they are default or have been recently used. r=mcheang https://github.com/mozilla-firefox/firefox/commit/eeaa5cd879d1 https://hg.mozilla.org/integration/autoland/rev/e342b16e9d49 Convert deprecated user installed configuration engines to user search engines. r=mcheang
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
Regressions: 2100886
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: