tor-browser

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

infobars.md (2376B)


Infobars

Infobars are shown at the top of the browser content area, these can be per tab (switching tabs hides it) or global (persistent across tabs).

Example of a Infobar

Infobars

Testing Infobars

Via the dev tools:

  1. View the current number of impressions for individual mes
  2. View the current number of impressions for individual mes
  3. View the current number of impressions for individual mes
  4. View the current number of impressions for individual mes
  5. View the current number of impressions for individual mes
  6. View the current number of impressions for individual mes
  7. View the current number of impressions for individual mes

Via Experiments:

You can test Infobar messaging surface by creating an experiment or landing message in tree. Messaging Journey captures creating and testing experiments via Nimbus.

Example JSON for Infobar

{
  "content": {
    "text": "Your privacy matters. Nightly now securely routes your DNS requests whenever possible to a partner service to protect you while you browse.",

    "buttons": [
      {
        "label": "Okay",
        "action": {
          "type": "ACCEPT_DOH"
        },
        "primary": true
      },
      {
        "label": "Disable",
        "action": {
          "type": "DISABLE_DOH"
        }
      }
    ],
    "priority": 1,
    "bucket_id": "TEST_DOH_BUCKET"
  },
  "trigger": {
    "id": "openURL",
    "patterns": [
      "*://*/*"
    ]
  },
  "template": "infobar",
  "frequency": {
    "lifetime": 3
  },
  "targeting": "firefoxVersion >= 89",
  "id": "Test_Infobar"
}