Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How does omnibox addSuggest work in private mode?

  • 2 відповіді
  • 1 має цю проблему
  • 3 перегляди
  • Остання відповідь від 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?

Усі відповіді (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.