How to add a proper-looking text input field to Firefox toolbar?

后端 未结 2 408
小蘑菇
小蘑菇 2021-01-15 06:11

I want to have a text input field in toolbar that looks like search input and is controlled by a FF extension.

I am using sdk/widget:

in main js file I have<

2条回答
  •  梦毁少年i
    2021-01-15 06:50

    The widget api has been deprecated and you should not use it. If you look at the browser console, you'll see messages from the SDK warning about this deprecation.

    Instead, you should be using the newer UI elements introduced with Firefox 29 like the toolbar api:

    https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/ui#Toolbar

提交回复
热议问题