Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

What does Firefox look for to enable 'Add a Keyword for this Search...' ?

more options

I have an angular app that has an input field of type search. When I right-click on this input field I don't see 'Add a Keyword for this Search...'. What exactly is Firefox looking for to display this option in the dropdown? I searched Google and could not find any information around this.

I have an angular app that has an input field of type search. When I right-click on this input field I don't see 'Add a Keyword for this Search...'. What exactly is Firefox looking for to display this option in the dropdown? I searched Google and could not find any information around this.

所有回覆 (2)

more options

Attaching screenshot.

more options

I never paid any attention to "Add a Keyword for this Search..." but now that I click random form fields, it seems to appear for fields that have nothing to do with searching. They are

<input type="text">

between <form action=URI> and </form> tags.

I haven't yet found a document explaining what Firefox is looking for before it shows that item, but if you don't have an actual form and just have some onclick behavior, that could be the issue.