Error in setting default search engine in mozilla using webextensions

Santhosh Raam sandeey.13 at gmail.com
Mon Nov 20 23:28:13 UTC 2017


Yes, I am!

On 20-Nov-2017 10:33 pm, "Mike Kaply" <mkaply at mozilla.com> wrote:

> Are you opening a first run page with your add-on?
>
> Mike
>
> On Mon, Nov 20, 2017 at 1:06 AM, Santhosh Raam <sandeey.13 at gmail.com>
> wrote:
>
>> Hi Bob,
>>
>> I have included code which you mentioned in previous mail. Now i updated
>> mozilla to version 57. But still , it is not changing default search engine
>> in firefox. Below i have mentioned the code.
>>
>> {
>>
>>   "manifest_version": 2,
>>   "name": "example",
>>   "description": "Adds a search engine that searches example.com",
>>   "version": "1.5",
>>   "author": "Santhosh Ramanujam",
>>   "chrome_settings_overrides": {
>>     "search_provider": {
>>       "name": "example",
>>       "search_url": "https://www.example.com/search?q={searchTerms}",
>>       "favicon_url": "https://www.example.com/favicon/favicon.ico",
>>       "is_default": true
>>     }
>>   },
>>   "applications": {
>>     "gecko": {
>>       "id": "sandeey13 at gmail.com"
>>     }
>>   }
>>
>> }
>>
>>
>> On Tue, Nov 7, 2017 at 3:00 AM, Bob Silverberg <bsilverberg at mozilla.com>
>> 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}",
>>>           "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>
>>> 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
>>>> 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 --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/dev-addons/attachments/20171121/60919893/attachment.html>


More information about the Dev-addons mailing list