Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How does omnibox addSuggest work in private mode?

  • 2 trả lời
  • 1 gặp vấn đề này
  • 11 lượt xem
  • Trả lời mới nhất được viết bởi desertpureolive

more options

I tried omnibox with the following code from MDN. When I trying, I temporarily loaded manifest.json from about:debugging. This worked in a normal browser, and typing cs a show a some suggestion.

However, this suggestion feature is not working in private mode. This did not change even if I allowed it to run in a private window. How can I get the omnibox suggestion feature to work in private mode?

I tried omnibox with the following code [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/omnibox/onInputChanged#examples from MDN]. When I trying, I temporarily loaded manifest.json from about:debugging. This worked in a normal browser, and typing cs a show a some suggestion. However, this suggestion feature is not working in private mode. This did not change even if [https://support.mozilla.org/en-US/kb/extensions-private-browsing I allowed it] to run in a private window. How can I get the omnibox suggestion feature to work in private mode?

Tất cả các câu trả lời (2)

more options

Hi, this isn't the best forum for extension development questions. You might need to re-post over here: https://discourse.mozilla.org/c/add-ons/development

However, one thought:

What if you turn on this setting:

  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

In the left column, click Search. Then on the right side, find the Search Suggestions section and make sure there is a check in this box: "Show search suggestions in Private Windows". (In about:config, it's browser.search.suggest.enabled.private which has a default value of false.)

Is that relevant?

more options

Thank you for your reply.

I just re-posted to the Mozilla Discourse that you gave me.

Also I tried the "Show search suggestions in Private Windows" option, but that didn't change the results.