Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the search bar in a Firefox 57+ ("Quantum") web extension

I try to write my very first webextension, following this tutorial. I wrote a manifest.json and added a background script as I want to provide global functionality: I want to clear the search bar once the search was performed - basically it's this, but for Firefox 57+.

My question: How can I access the search bar at all?

I found a list of available APIs, including the tabs, the menus, and so on, but no search bar...

like image 834
crusy Avatar asked Nov 29 '25 20:11

crusy


2 Answers

Currently it is not possible. You might want to file a bug for it: https://bugzilla.mozilla.org/

like image 173
Smile4ever Avatar answered Dec 02 '25 03:12

Smile4ever


I filed a bug request as @Smile4ever suggested, which was declined yesterday. The extension team suggested to file a feature request for what "my" extension should have done, but from the perspective of this question: It is and will not be possible to access the search bar from an extension.

like image 26
crusy Avatar answered Dec 02 '25 05:12

crusy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!