Preferences
This document describes preferences affecting the address bar and the search bars. Preferences that are generated and updated by code won’t be described here.
Search Bars
A search bar reads an address bar preference wherever it runs the same code. Which preferences apply depends on the results each bar shows. The toolbar search bar shows search suggestions, search history and a few built-in results such as the calculator. The New Tab search bar adds URL navigation, autofill and Firefox Suggest, and the smartbar shows most address bar results.
These preferences affect only the address bar:
browser.urlbar.shortcuts.bookmarks,browser.urlbar.shortcuts.tabsandbrowser.urlbar.shortcuts.historybrowser.urlbar.showSearchTerms.enabledbrowser.urlbar.accessibility.tabToSearch.announceResultsbrowser.urlbar.dnsResolveSingleWordsAfterSearchbrowser.urlbar.formatting.enabledbrowser.urlbar.searchTips.test.ignoreShowLimitsbrowser.urlbar.sponsoredTopSites
Some search bars read a different preference, or ignore one:
The toolbar search bar reads
browser.search.openintabinstead ofbrowser.urlbar.openintab.The smartbar reads
browser.urlbar.smartbar.maxResultsandbrowser.urlbar.smartbar.showSearchSuggestionsFirstinstead ofbrowser.urlbar.maxRichResultsandbrowser.urlbar.showSearchSuggestionsFirst.The toolbar and New Tab search bars ignore
keyword.enabledandbrowser.urlbar.unifiedSearchButton.always, and show recent searches regardless ofbrowser.urlbar.suggest.recentsearches.
User Exposed
These preferences are exposed through the Firefox UI.
- browser.urlbar.shortcuts.bookmarks (boolean, default: true)
Whether to show the bookmark search shortcut button in the view. Can be controlled from Search Preferences.
- browser.urlbar.shortcuts.tabs (boolean, default: true)
Whether to show the tabs search shortcut button in the view. Can be controlled from Search Preferences.
- browser.urlbar.shortcuts.history (boolean, default: true)
Whether to show the history search shortcut button in the view. Can be controlled from Search Preferences.
- browser.urlbar.showSearchSuggestionsFirst (boolean, default: true)
Whether to show search suggestions before general results. Can be controlled from Search Preferences.
- browser.urlbar.showSearchTerms.enabled (boolean, default: true)
Whether to show the search term in the urlbar on a default search engine results page. Can be controlled from Search Preferences.
- browser.urlbar.suggest.bookmark (boolean, default: true)
Whether results will include the user’s bookmarks. Can be controlled from Privacy Preferences.
- browser.urlbar.suggest.history (boolean, default: true)
Whether results will include the user’s history. Can be controlled from Privacy Preferences.
- browser.urlbar.suggest.openpage (boolean, default: true)
Whether results will include switch-to-tab results. Can be controlled from Privacy Preferences.
- browser.urlbar.suggest.quicksuggest.all (boolean, default: false)
If
browser.urlbar.quicksuggest.enabledis true, this controls whether results will include suggestions that are part of the Firefox Suggest brand. Otherwise they will not be included.- browser.urlbar.suggest.quicksuggest.sponsored (boolean, default: false)
If
browser.urlbar.quicksuggest.enabledandbrowser.urlbar.suggest.quicksuggest.allare true, this controls whether results will include sponsored Firefox Suggest suggestions. Otherwise they will not be included.- browser.urlbar.suggest.searches (boolean, default: true)
Whether results will include search suggestions. Can be controlled from Search Preferences.
- browser.urlbar.suggest.engines (boolean, default: true)
Whether results will include search engines (e.g. tab-to-search). Can be controlled from Privacy Preferences.
- browser.urlbar.suggest.topsites (boolean, default: true)
Whether results will include top sites and the view will open on focus. Can be controlled from Privacy Preferences.
- browser.search.suggest.enabled (boolean, default: true)
Whether search suggestions are enabled globally, including the separate search bar. Can be controlled from Search Preferences.
- browser.search.suggest.enabled.private (boolean, default: false)
When search suggestions are enabled, controls whether they are provided in Private Browsing windows. Can be controlled from Search Preferences.
Experimental
These preferences are experimental and not officially supported. They could be removed at any time.
- browser.urlbar.suggest.calculator (boolean, default: false)
Whether results will include a calculator.
- browser.urlbar.unitConversion.enabled (boolean, default: false)
Whether unit conversion is enabled.
- browser.urlbar.unitConversion.suggestedIndex (integer, default: 1)
The index where we show unit conversion results.
- browser.urlbar.keepPanelOpenDuringImeComposition (boolean, default: false)
Whether the results panel should be kept open during IME composition. The panel may overlap with the IME compositor panel.
- browser.urlbar.restyleSearches (boolean, default: false)
When true, URLs in the user’s history that look like search result pages are restyled to look like search engine results instead of history results.