Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

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?

All Replies (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.