Browser.urlbar.default.behavior: Difference between revisions
Alice Wyman (talk | contribs) m (→Possible values and their effects: Note reworded, fixed error) |
(→Background: some additional info added) |
||
Line 4: | Line 4: | ||
The preference '''browser.urlbar.default.behavior''' makes it possible to customize the search behavior of the location bar in Firefox 3.5 and SeaMonkey 2. It replaces [[browser.urlbar.matchOnlyTyped]], which is no longer supported. | The preference '''browser.urlbar.default.behavior''' makes it possible to customize the search behavior of the location bar in Firefox 3.5 and SeaMonkey 2. It replaces [[browser.urlbar.matchOnlyTyped]], which is no longer supported. | ||
The decimal value of this preference should be seen as a bitmap of 6 bits. If a bit in that bitmap is 1 then the corresponding filter will be applied. There are restrict filters (0:History, 1:Bookmarks, 2:Tags, 5:Typed) and match filters (3:Title, 4:URL). | The decimal value of this preference should be seen as a bitmap of 6 bits. If a bit in that bitmap is 1 then the corresponding filter will be applied. There are restrict filters (0:History, 1:Bookmarks, 2:Tags, 5:Typed) and match filters (3:Title, 4:URL).<br /> | ||
Quote from "defaults\prefs\firefox.js" [http://mxr.mozilla.org/mozilla-central/source/browser/app/profile/firefox.js#247]: "''The default behavior for the urlbar can be configured to use any combination of the restrict or match filters with each additional filter restricting.''"<br /> | |||
You can override the default filter by using commands in the location bar. See [[Location Bar search]].<br /> | |||
The default of this preference in Firefox 3.5 and above is '''0''', meaning that no filtering is applied. [http://mxr.mozilla.org/comm-central/source/mozilla/browser/app/profile/firefox.js#248]<br /> | |||
The default of this preference in SeaMonkey 2 is '''1''', meaning that only History items are shown. [http://mxr.mozilla.org/comm-central/source/suite/browser/browser-prefs.js#137]<br /> | |||
See the articles by Edward Lee (edilee) for more information and tips. | |||
==Possible values and their effects== | ==Possible values and their effects== |
Revision as of 00:18, 24 September 2009
Background
The preference browser.urlbar.default.behavior makes it possible to customize the search behavior of the location bar in Firefox 3.5 and SeaMonkey 2. It replaces browser.urlbar.matchOnlyTyped, which is no longer supported.
The decimal value of this preference should be seen as a bitmap of 6 bits. If a bit in that bitmap is 1 then the corresponding filter will be applied. There are restrict filters (0:History, 1:Bookmarks, 2:Tags, 5:Typed) and match filters (3:Title, 4:URL).
Quote from "defaults\prefs\firefox.js" [1]: "The default behavior for the urlbar can be configured to use any combination of the restrict or match filters with each additional filter restricting."
You can override the default filter by using commands in the location bar. See Location Bar search.
The default of this preference in Firefox 3.5 and above is 0, meaning that no filtering is applied. [2]
The default of this preference in SeaMonkey 2 is 1, meaning that only History items are shown. [3]
See the articles by Edward Lee (edilee) for more information and tips.
Possible values and their effects
Add up the following values to set the behavior as the default (i.e., 17=History+match URL; 49=History+match URL+Typed).
Note: In SeaMonkey 2, only autocomplete entries for visited pages (History) are generated so setting the value to 2 (Restrict: Bookmarks) or 4 (Restrict: Tags) will not produce any results.
0
No filtering (Default in Firefox)
1
Restrict: History (Default in SeaMonkey)
2
Restrict: Bookmarks
4
Restrict: Tags
8
Match: Title
16
Match: URL
32
Restrict: Typed
UI
Firefox
Tools -> Options -> Privacy -> Location Bar
- Nothing (browser.urlbar.autocomplete.enabled=false; browser.urlbar.default.behavior unchanged)
- History and Bookmarks (0)
- History (1)
- Bookmarks (2)
Other match and restrict bits that are set remain unaffected.
SeaMonkey
Edit -> Preferences -> Browser -> Location Bar
- "Match only websites you've typed previously": 33 (1+32)
- "Only match locations, not website titles": 17 (1+16)
If both options are checked, the preference value becomes 49 (1+16+32).
First checked in
Has an effect in
- Firefox 3.5 (nightly builds since 2008-12-17)
- The value 32 only works in builds since 2009-01-07
- SeaMonkey 2 (nightly builds since 2009-01-10)
Related bugs
- Bug 463459 - Use a separate pref instead of empty restrict/match values to specify defaults
- Bug 463483 - matchOnlyTyped no longer honored with special filters
- Bug 463558 - Switch matchOnlyTyped to restrict.typed "~" (default.behavior + 32)
- Bug 472943 - Two confusable preferences, "browser.urlbar.search.sources" and "browser.urlbar.default.behavior", should be unified
- Bug 468326 - Add UI prefs for new places history functionality (SeaMonkey)
- Bug 470031 - use new browser.urlbar.default.behavior pref for restricting places searches (SeaMonkey)