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...
Currently it is not possible. You might want to file a bug for it: https://bugzilla.mozilla.org/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With