tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

utilities.rst (1004B)


      1 Utilities
      2 =========
      3 
      4 Various modules provide shared utilities to the other components:
      5 
      6 `UrlbarPrefs.sys.mjs <https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarPrefs.sys.mjs>`_
      7 -------------------------------------------------------------------------------------------------------------------
      8 
      9 Implements a Map-like storage or urlbar related preferences. The values are kept
     10 up-to-date.
     11 
     12 .. code:: JavaScript
     13 
     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.
     17 
     18 .. note::
     19 
     20  Newly added preferences should always be properly documented in UrlbarPrefs.
     21 
     22 `UrlbarUtils.sys.mjs <https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarUtils.sys.mjs>`_
     23 -------------------------------------------------------------------------------------------------------------------
     24 
     25 Includes shared utils and constants shared across all the components.