Error in setting default search engine in mozilla using webextensions

Martin Giger martin at humanoids.be
Mon Nov 6 21:35:59 UTC 2017


According to this footnote you can't set just any provider as default
though:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/chrome_settings_overrides#compatNote_1


On 06.11.2017 22:30, Bob Silverberg wrote:
> To set a search engine as the default you need to specify the
> is_default property on the search_provider in your manifest.json file,
> similar to the following:
>
>       "chrome_settings_overrides": {
>         "search_provider": {
>           "name": "DuckDuckGo",
>           "search_url": "https://example.com/?q={searchTerms}
> <https://example.com/?q=%7BsearchTerms%7D>",
>           "is_default": true,
>         },
>       }
>
> If you have any trouble with this, please let us know exactly what the
> problem is, and please provide a copy of the code from your
> extension's manifest.json file.
>
> Bob
>
>
> On Mon, Nov 6, 2017 at 2:17 AM, Santhosh Raam <sandeey.13 at gmail.com
> <mailto:sandeey.13 at gmail.com>> wrote:
>
>     Hi,
>
>     I have developed search extension using webextension api.
>     Everything is working fine, like downloading extension and change
>     search engine. But problem is not accepting as default search
>     engine. After downloading , it should configured as default search
>     engine. I don't have any idea how to do that. Will wait for reply.
>
>     Thanks,
>     Santhosh Ramanujam
>
>     _______________________________________________
>     Dev-addons mailing list
>     Dev-addons at mozilla.org <mailto:Dev-addons at mozilla.org>
>     https://mail.mozilla.org/listinfo/dev-addons
>     <https://mail.mozilla.org/listinfo/dev-addons>
>
>
>
>
> _______________________________________________
> Dev-addons mailing list
> Dev-addons at mozilla.org
> https://mail.mozilla.org/listinfo/dev-addons


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.mozilla.org/pipermail/dev-addons/attachments/20171106/c73aaf3e/attachment.sig>


More information about the Dev-addons mailing list