Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

How does omnibox addSuggest work in private mode?

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?

Toutes les réponses (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.