Browser.urlbar.matchBehavior
Contents
Background
In Firefox 3, the Location Bar received a number of improvements. Among those improvements was the move to a XUL richlistbox widget for the auto-complete dropdown. This allowed styled URL/title information, favicons, and highlighted match information. Typing in the Location Bar will now search not only URLs, but page titles, bookmark names, and tags.
Due to the amount of information available when searching those sources, it’s easy to come across cases where typed text will match useless items (e.g., typing “ebay” might bring up a match for “thepiratebay”). To address this, word boundaries are taken into account when searching for matches, making text that matches against the start of a word rank higher than text matching inside a word (e.g., “eb” matching “ebay” over “website”).
This preference determines how to use word boundaries when searching for items in the Location Bar.
Possible values and their effects
0
Search anywhere within available text, irrespective of word boundaries.
1
Use word boundaries first when searching, then try matching anywhere in the text. (Default)
2
Use only word boundaries when searching for typed text in the Location Bar autocomplete.
3
Match only the beginning of page URLs and titles.
First checked in
Has an effect in
- Firefox (nightly builds since 2008-04-23)
- The value 3 only works in builds since 2008-08-25
- SeaMonkey 2
Related bugs
- Bug 429531 - Location bar should show non-word-boundary matches below word-boundary matches
- Bug 451760 - Allow matching at beginning of title/url by pref