如何访问 Firefox 57+ ("Quantum") 网络扩展中的搜索栏

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

我尝试编写我的第一个网络扩展,紧随 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,但针对 Firefox 57+。

我的问题:我怎样才能访问搜索栏?

我找到了 a list of available APIs,包括选项卡、菜单等,但没有搜索栏...

目前不可以。您可能想为它提交错误:https://bugzilla.mozilla.org/

我昨天提交了a bug request as @Smile4ever suggested, which was declined。扩展团队建议对 "my" 扩展应该做的事情提出一个功能请求,但是从 这个 问题的角度来看:现在和将来都不可能访问搜索禁止扩展。

为了完整起见,这里是 FF 的错误(功能请求)的 URL,以便提供在执行搜索后清除搜索栏内容的功能(可能是可选的):Bugzilla 253331

似乎故意从 Fire Fox Quantum 中删除了搜索栏,地址栏兼作搜索栏。因此,从现在开始,请使用地址栏输入您的搜索内容。您会注意到,当地址栏中没有输入网址时。默认情况下,地址栏中包含读取的文本。搜索或输入地址,