Web Extension API for override default search engine setting

Hi All,

anybody have any idea or know about web extension API using i can override default search engine.
I want to change search engine when user install my extension.

I’m not sure if you can do this with WebExtesions.

In case no one shows up with a solution I’ll share with you a SDK and bootstrap solution: you can use the Services.search component:

var default_engine = Services.search.defaultEngine;
if (default_engine.name != 'My engine name') {
   var engines = Services.search.getVisibleEngines():
   for (var engine of engines) {
      if (engine.name == 'My engine name') {
          Services.search.defaultEngine = engine;
1 Like

It’s not possible with WebExtensions at the moment.


I need to do the same, can you please share when this this feature will be added?

I’d like to learn how to do this on webExtension. For now, I didn’t any document related to this.

See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/chrome_settings_overrides

Even I use chrome_settings_overrides with is_default equal to true in manifest, user still can modify search provider after webExtension installation.

Yes, users will always have a way to change the search provider. We won’t provide a way for extensions to force that choice.