Bug 1944627 - update sidebar button checked state for non-revamped sidebar cases...
[gecko.git] / browser / components / urlbar / docs / utilities.rst
blob27ee15df6f46c905f977c0e80d4dcd4ccd40ebbc
1 Utilities
2 =========
4 Various modules provide shared utilities to the other components:
6 `UrlbarPrefs.sys.mjs <https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarPrefs.sys.mjs>`_
7 -------------------------------------------------------------------------------------------------------------------
9 Implements a Map-like storage or urlbar related preferences. The values are kept
10 up-to-date.
12 .. code:: JavaScript
14   // Always use browser.urlbar. relative branch, except for the preferences in
15   // PREF_OTHER_DEFAULTS.
16   UrlbarPrefs.get("delay"); // Gets value of browser.urlbar.delay.
18 .. note::
20   Newly added preferences should always be properly documented in UrlbarPrefs.
22 `UrlbarUtils.sys.mjs <https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarUtils.sys.mjs>`_
23 -------------------------------------------------------------------------------------------------------------------
25 Includes shared utils and constants shared across all the components.