How to integrate opensearch in Webextension

Hey there,
how i can integrate an opensearch.xml in my Webextension.
I wrote a webextension which works in Firefox and Chrome. In Chrome i can use the chrome override to set a search engine, but i don’t know how to integrate the opensearch.xml for firefox.
Many greetings,
Matthias

1 Like

It hasn’t been implemented yet. I think this is the bug report you want.

Well, adding this to a view of your extension at least gives you the green + icon so that the user can add your search engine:

<link
	rel="search"
	type="application/opensearchdescription+xml"
	href="http://www.opensearch.org/opensearch_desc.php"
	title="Search"
/>

It will only work if the view is opened in a tab. Panels or sidebars won’t do.

Thanks for your answer.
But is there no option to add it for example in the manifest, so that the opensearch.xml will install direct while the addon gets installed?

Many greetings,
Matthias

That’s exactly what’s mentioned in comment 1 of the bug linked above?
They are still implementing it.