Closed Bug 1640613 Opened 4 years ago Closed 4 years ago

Prompt for setting default engine is lost if a WebExtensions opens a tab on install

Categories

(WebExtensions :: General, defect)

78 Branch
defect

Tracking

(firefox78 wontfix)

RESOLVED DUPLICATE of bug 1544271
Tracking Status
firefox78 --- wontfix

People

(Reporter: phorea, Unassigned)

Details

[Affected versions]:

  • 78.0a1

[Affected platforms]:

  • all

[Steps to reproduce]:

  1. Open Firefox try build (https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/EpHIZw1jSPCrZJyzkbcBAw/runs/0/artifacts/public/build/target.zip)
  2. Go to AMO and add the DDG Privacy Essentials add-on
  3. Perform a search with DDG and check that the search code is correct ("newext")
  4. Close Firefox and set user.js pref to point to main-preview (DDG is present on the engines list)
  5. Open Firefox and perform a search using DDG

[Expected result]:
2. DDG is set as default search engine
5. New search codes are used

[Actual result]:
2. DDG is not set as default (the prompt disappears rapidly when page https://duckduckgo.com/app?post=1&atb=v222-6 opens)
5. DDG uses the old search codes ("ffab" etc)

What's happening here, is that in the configuration, DDG is seen as creating a new third-party search engine, just like Ecosia and other add-ons do.

The difference here, is that the DDG privacy essentials add-on opens as soon as it is installed. That switches tabs, and in the process kills the prompt for setting as the default search engine.

This doesn't block the work in bug 1635220, as we don't need to handle this case there, but we may need to consider it in future.

Moving across to WebExtensions, as fundamentally, it is a problem with the add-on manager / WebExtensions UI handling.

No longer blocks: 1635220
Component: Search → General
Product: Firefox → WebExtensions
Summary: DDG is not set as default when it doesn't exist in default engines list → Prompt for setting default engine is lost if a WebExtensions opens a tab on install
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.