We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

How does omnibox addSuggest work in private mode?

  • 2 odpovědi
  • 1 má tento problém
  • 8 zobrazení
  • Poslední odpověď od 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?

Všechny odpovědi (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.