Closed Bug 1577792 Opened 5 years ago Closed 1 year ago

An incorrect message about a search engine being set as default is displayed after having been blocked

Categories

(Firefox :: Search, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: danibodea, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Note

  • When a search engine is been set as default, and then it gets blocked by the Remore Search Engine Blocklisting feature, an incorrect message remains displayed in about:preferences#search that says that the manually installed search engine is still your default one.

Affected versions

  • Nightly v70.0a1 from 2019-08-29
  • Beta v69.0 RC
  • Release v68.0.2

Affected platforms

  • all

Steps to reproduce

  1. Install Ecosia search engine extension:
    https://addons.mozilla.org/en-US/firefox/addon/ecosia-the-green-search/?src=search
  2. Set it as the default search engine via the door hanger after install.
  3. Add "ecosia.org" as a string to block on the "submission-urls" blocklist identifier;
  4. Install the "Remote-settings-devtools" extension;
  5. Open extension menu, switch to staging, clear all data and poll server.
    Now the Ecosia search engine should be blocked.
  6. Observe the Search section of about:preferences.

Expected result

  • No confusing messages should be displayed.

Actual result

  • Incorrect message is displayed: "An extension, Ecosia - The search engine that plants trees, has set your default search engine."

Additional notes

  • The same message remains incorrectly displayed even after browser restart.
Blocks: 1578381
Priority: -- → P3

The issue here is very similar to the problem with homepage_overrides in bug 1578381. A preference that is currently controlled by an extension is getting changed directly rather than (or in addition to) using ExtensionSettingsStore.

We're adding search settings to the setting store[1][2], but it is not being updated when the search service is removing the extension (or search provider, not sure what it's doing). Whereever that removal is happening, we should make sure that ExtensionSettingsStore.removeSetting is also called.

If the extension is being entirely removed, this would probably be fixed by using AddonManager to remove the extension.

[1] https://searchfox.org/mozilla-central/rev/05db7b82d5a4adaa8b36ec6f4fd1715f6fd7885b/browser/components/extensions/parent/ext-chrome-settings-overrides.js#475
[2] https://searchfox.org/mozilla-central/rev/05db7b82d5a4adaa8b36ec6f4fd1715f6fd7885b/browser/components/extensions/parent/ext-chrome-settings-overrides.js#431

Flags: needinfo?(standard8)

To clarify, for both home page and search engines, we're only blocking the specific piece of functionality for the add-on matching the ignore list. We're not causing the add-on to be removed.

(In reply to Shane Caraveo (:mixedpuppy) from comment #1)

The issue here is very similar to the problem with homepage_overrides in bug 1578381. A preference that is currently controlled by an extension is getting changed directly rather than (or in addition to) using ExtensionSettingsStore.

We're adding search settings to the setting store[1][2], but it is not being updated when the search service is removing the extension (or search provider, not sure what it's doing). Whereever that removal is happening, we should make sure that ExtensionSettingsStore.removeSetting is also called.

Currently we either:

In the ignore when added case, we could possibly make addEnginesFromExtension aware of the fact the engine hasn't been added... at the moment it looks like the function returns the new engines, but they might not have been added.

For the update case, we should probably tell the settings store somehow.

Flags: needinfo?(standard8)
Priority: P3 → P2
Severity: normal → N/A
Priority: P2 → P3

The message "An extension, Ecosia - The search engine that plants trees, has set your default search engine." has now been removed from the UI and is never displayed, hence closing as WFM.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: