File: metrics.yaml

package info (click to toggle)
firefox 141.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,550,588 kB
  • sloc: cpp: 7,426,506; javascript: 6,367,238; ansic: 3,707,351; python: 1,369,002; xml: 623,983; asm: 426,918; java: 184,324; sh: 64,488; makefile: 19,203; objc: 13,059; perl: 12,955; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,071; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (174 lines) | stat: -rw-r--r-- 7,222 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Adding a new metric? We have docs for that!
# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html

---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
$tags:
  - 'WebExtensions :: General'

extensions_button:
  prefers_hidden_button:
    type: boolean
    description: >
      Records whether the user prefers the Extensions Button to be hidden.
      Corresponds to the inverse value of the
      `exceptions.unifiedExtensions.button.always_visible` pref.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_sensitivity:
      - technical
    notification_emails:
      - addons-dev-internal@mozilla.com
      - rwu@mozilla.com
    expires: 150

  toggle_visibility:
    type: event
    description: |
      When a user changes the preferred visibility of the Extensions Button,
      through the "Remove from Toolbar" or "Always Show in Toolbar" menu items.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_sensitivity:
      - interaction
    notification_emails:
      - addons-dev-internal@mozilla.com
      - rwu@mozilla.com
    expires: 150
    extra_keys:
      is_customizing:
        description: Whether the change was made in Customize Mode.
        type: boolean
      is_extensions_panel_empty:
        description: |
          Whether the Extensions Panel is unable to show any extensions.
        type: boolean
      is_temporarily_shown:
        description: |
          Whether the Extensions Button is or was temporarily shown when the
          user toggled the visibility.

          If is_temporarily_shown is true and should_hide is false, this means
          that the button stayed visible after the user tried to hide it.

          If is_temporarily_shown is true and should_hide is true, this means
          that the button was temporarily visible when the user made it
          permanently visible again.
        type: boolean
      should_hide:
        description: Whether the user wants the button to be hidden.
        type: boolean

  open_via_app_menu:
    type: event
    description: |
      When the user prefers the Extensions Button to be hidden, the default
      "Extensions and Themes" item in the Application Menu is replaced with an
      "Extensions" item, which serves as an alternative trigger for the
      Extensions Button.

      This event records when the user clicks on this "Extensions" menu item.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_sensitivity:
      - interaction
    notification_emails:
      - addons-dev-internal@mozilla.com
      - rwu@mozilla.com
    expires: 150
    extra_keys:
      is_extensions_panel_empty:
        description: |
          Whether the Extensions Panel is unable to show any extensions.

          When false, the Extensions Panel is opened.

          When true, about:addons is opened, at least until an empty state is
          added (https://bugzilla.mozilla.org/show_bug.cgi?id=1814871). When
          that bug is resolved, the Extensions Panel is always opened.
        type: boolean
      is_extensions_button_visible:
        description: |
          Whether the Extensions Button is visible. Although the appmenu item
          is only shown when the user prefers the button to be hidden, it is
          possible for the button to be shown despite the user's preference if
          there was a reason to show the button temporarily.

          If true, this could be a sign that the user is confused about the
          function of the appmenu item, because the Extensions Button offers
          exactly the same functionality, except in a more visible location
          (on the toolbar).
        type: boolean

  temporarily_unhidden:
    type: labeled_counter
    description: >
      Counts how often the hidden Extensions Button is temporarily shown.
      There are multiple possible triggers for showing the extensions button,
      only the first that would trigger the transition from hidden to shown is
      going to be counted. For example, if the button is shown because the
      "attention" dot is shown, and a permission prompt is shown, then we only
      count the trigger for the attention dot, not the permission prompt.

      customize is when the user entered Customize Mode, which causes the
      Extensions Button to show unconditionally until the user exits the mode.

      addon_install_doorhanger covers notifications related to add-on
      installations, including blocked installations, add-on download progress,
      and failed installations. Permission prompts are NOT part of this, but
      covered by extension_permission_prompt. A typical installation flow
      triggers both addon_install_doorhanger and extension_permission_prompt.

      extension_controlled_setting is when a notification is anchored to the
      Extensions Button that notifies the user of an extension-triggered change
      (new tab page, home page, first use of tabs.hide()). This is shown on
      first use of the relevant feature after the installation of an extension.

      browser_action_open_popup is when the browserAction popup is opened. This
      is usually user-triggered (shortcut, context menu) or via the
      `action.openPopup()` API.

      extension_permission_prompt is when an extension permission prompt is
      shown. This does not distinguish between install-time permission prompts,
      permission prompts on update or optional permission prompts at runtime.

      extensions_panel_showing is when the Extensions Panel is being shown,
      for example via the Extensions appmenu item.

      attention_blocklist is when the browser wants to draw attention to the
      fact that one of the add-ons has been blocklisted.

      attention_permission_denied is when the browser wants to draw attention
      to the fact that one of the extensions was denied access to the page in
      the currently displayed tab. The access request is not a strong signal:
      a MV3 extension with content scripts whose permissions have been revoked
      by the user could trigger such an attention request on all websites.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1966935
    data_sensitivity:
      - interaction
    notification_emails:
      - addons-dev-internal@mozilla.com
      - rwu@mozilla.com
    expires: 150
    labels:
      - customize
      - addon_install_doorhanger
      - extension_controlled_setting
      - extension_permission_prompt
      - extensions_panel_showing
      - extension_browser_action_popup
      - attention_blocklist
      - attention_permission_denied