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

搜索 | 用户支持

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

详细了解

Address bar doesn't search history

  • 6 个回答
  • 2 人有此问题
  • 115 次查看
  • 最后回复者为 somename5733

more options

My wife's Firefox isn't showing search results from her history when typing in the address bar. In fact, nothing is being displayed when typing in the address bar. You can still search via Google by hitting Enter, but the autocomplete doesn't show/work.

I've tried:

  • Checking the settings (confirming they're enabled, disabling them, restarting FF, enabling them, restarting FF)
  • Restarting with add-ons disabled
  • Exporting and re-importing bookmarks
  • Renaming 'places.sqlite' and restarting
  • Creating a new FF profile, signing into FF Sync to import her bookmarks, etc.

Nothing works. The address bar autocomplete simply doesn't work. Advice much appreciated!

My wife's Firefox isn't showing search results from her history when typing in the address bar. In fact, nothing is being displayed when typing in the address bar. You can still search via Google by hitting Enter, but the autocomplete doesn't show/work. I've tried: * Checking the settings (confirming they're enabled, disabling them, restarting FF, enabling them, restarting FF) * Restarting with add-ons disabled * Exporting and re-importing bookmarks * Renaming 'places.sqlite' and restarting * Creating a new FF profile, signing into FF Sync to import her bookmarks, etc. Nothing works. The address bar autocomplete simply doesn't work. Advice much appreciated!

由BWPanda于修改

被采纳的解决方案

Ok, I figured it out.

I setup a new profile, confirmed autocomplete worked. I then copied `places.sqlite` from the main profile to the new one and checked again - still worked (restarted FF in-between). I did this for everything that FF Sync was syncing (e.g. bookmarks, extensions, passwords, etc.). I manually copied these things from the main profile to the new, checking after each one to see if the autocomplete still worked or not. It did, until I copied `prefs.js`, then it stopped working. So I had found the suspect.

Then I opened `prefs.js` and searched for 'bar' (since I'd read somewhere before in my previous research into this issue about a setting with 'bar' in the name that had something to do with this). For each setting, I reset the value in the main profile (via `about:config`) and then checked to see if the autocomplete worked or not. It started working after I reset the value for the `browser.urlbar.maxRichResults` setting (the current value that caused the issue was `0`, the default value that works is `10`). I'm not sure how/why this got set to `0`, and I can't find this setting in the UI, but at least I found the issue and it's working properly again.

定位到答案原位置 👍 0

所有回复 (6)

more options

Wow, people work hard to get that effect every time Firefox updates. They have to use userscripts to do so, edit them almost every update, and make sure a special about:config preference is toggled on.

Had you tested with an empty profile? Syncing may possibly be importing a problematic thing from the old profile into the new profile.

(Also, would this be the Windows 10 machine with the Firefox problem? Just checking to be sure.)

more options

I hadn't tested with an empty profile before, but I just created a new profile and the address bar does indeed work as expected in that case. So it does seem that something in the synced data is causing the issue...

Yes, the problem is on my wife's Windows 10 machine running Firefox (I'm just posting these comments from my Linux machine running Brave).

more options

I don't do Sync, so i don't know all what it syncs between profiles, but you should be able to import bookmarks and passwords without problems.

If importing bookmarks does cause the issue, you can export them as html from the old profile, and import that into the new profile.

more options

选择的解决方案

Ok, I figured it out.

I setup a new profile, confirmed autocomplete worked. I then copied `places.sqlite` from the main profile to the new one and checked again - still worked (restarted FF in-between). I did this for everything that FF Sync was syncing (e.g. bookmarks, extensions, passwords, etc.). I manually copied these things from the main profile to the new, checking after each one to see if the autocomplete still worked or not. It did, until I copied `prefs.js`, then it stopped working. So I had found the suspect.

Then I opened `prefs.js` and searched for 'bar' (since I'd read somewhere before in my previous research into this issue about a setting with 'bar' in the name that had something to do with this). For each setting, I reset the value in the main profile (via `about:config`) and then checked to see if the autocomplete worked or not. It started working after I reset the value for the `browser.urlbar.maxRichResults` setting (the current value that caused the issue was `0`, the default value that works is `10`). I'm not sure how/why this got set to `0`, and I can't find this setting in the UI, but at least I found the issue and it's working properly again.

more options

Nice detective work!

Thanks for reporting your solution and marking it.

more options

I switched off search suggestions and increased browser.urlbar.maxRichResults and it worked out, thanks!