为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Initial input focus with NoScript is broken

more options

I have no Firefox add-ons except NoScript. Flash is not installed on Firefox. I use Firefox for safe surfing. When I want to watch video, I use IE11. My PCs are W-7 64-bit.

For quite a few Firefox releases, the focus behavior was correct: when Firefox was started or when the home button was clicked (my home is a search engine), I would see my search engine with the input focus, i.e. the cursor was present in the search box. However, a few releases ago the cursor focus was lost. This current behavior is different than all other browsers.

I do not know if this is a Firefox bug or a NoScript bug, but I suspect that NoScript is in the top-five most popular add-ons so the Mozilla community should care. Please fix this bug in the next release. It is annoying to start Firefox and start typing something into the search box only to then realize that the typing is being sent to the bit bucket instead.

I have no Firefox add-ons except NoScript. Flash is not installed on Firefox. I use Firefox for safe surfing. When I want to watch video, I use IE11. My PCs are W-7 64-bit. For quite a few Firefox releases, the focus behavior was correct: when Firefox was started or when the home button was clicked (my home is a search engine), I would see my search engine with the input focus, i.e. the cursor was present in the search box. However, a few releases ago the cursor focus was lost. This current behavior is different than all other browsers. I do not know if this is a Firefox bug or a NoScript bug, but I suspect that NoScript is in the top-five most popular add-ons so the Mozilla community should care. Please fix this bug in the next release. It is annoying to start Firefox and start typing something into the search box only to then realize that the typing is being sent to the bit bucket instead.

被采纳的解决方案

In order to place the focus in a form control, a web page uses JavaScript. Otherwise, Firefox's focus is on the page body as a whole which, as you point out, can't accept any input.

If you are already allowing scripts for the search engine site, then check the NoScript button to see whether the search engine also pulls in scripts from a content distribution network or other secondary domain and test whether allowing scripts from that host resolves the issue.

If you do not want to allow the site's scripts, you may need a workaround such as a Greasemonkey userscript which can set the focus where you want it after the page loads.

定位到答案原位置 👍 0

所有回复 (4)

more options

You might want to ask about that issue in the NoScript support forum. http://forums.informaction.com/viewforum.php?f=3

more options

选择的解决方案

In order to place the focus in a form control, a web page uses JavaScript. Otherwise, Firefox's focus is on the page body as a whole which, as you point out, can't accept any input.

If you are already allowing scripts for the search engine site, then check the NoScript button to see whether the search engine also pulls in scripts from a content distribution network or other secondary domain and test whether allowing scripts from that host resolves the issue.

If you do not want to allow the site's scripts, you may need a workaround such as a Greasemonkey userscript which can set the focus where you want it after the page loads.

more options

Thanks, I did that.

more options

For reference: https://forums.informaction.com/viewtopic.php?f=7&t=20184

Also, baroque-quest, Giorgio is waiting for the URL of the search engine site for further testing.