[Telemetry] The number of new permissions in add-on updates are incorrectly calculated (too high).
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | verified |
People
(Reporter: robwu, Assigned: rpl)
References
Details
Attachments
(4 files)
| Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
| Assignee | ||
Comment 4•7 years ago
|
||
This patch includes the following changes:
-
added a new "num_strings" extra key to the "addonsManager install" and "addonsManager manage"
telemetry events, where "num_strings" represents the "number of permissions actually visible
in the extension permission doorhanger" -
do not record a telemetry event for the "permission_prompt" (or "sideload_prompt") if the
permissions_prompt is not going to be shown -
add num_strings in the test assertions from the existing tests
-
added some additional assertions to test in automation that we don't record the telemetry
event for "permission_prompt" when no permission prompt is being shown for an
extension update (as part of the browser_extension_update_background_noprompt.js test)
| Assignee | ||
Comment 5•7 years ago
|
||
Hi Ben,
the attached patch includes a draft of the changes briefly described in comment 4,
in particular:
-
an additional "num_strings" extra key (as the representation of the number
of the API permission and origin permissions that are actually going to be
shown to the user) added to the telemetry events -
telemetry events for the "permission_prompt" only recorded if the permission
prompt is being shown
if these changes sound good to you from a "data analysis" point of view,
I'm going to proceed with the data and phabricator review requests.
| Assignee | ||
Comment 7•7 years ago
|
||
Hi :chutten,
the attached markdown file contains the data review request for the changes we are going to apply to the existing addonsManager.install and addonsManager.manage telemetry events.
(These telemetry events have been added as part of Bug 1433335 and the original data review request is attachment 8989190 [details]).
| Assignee | ||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
| Assignee | ||
Comment 9•7 years ago
|
||
Thanks :chutten for the super-quick review on the data review request.
Should I add you or :janerik as a blocking reviewer on the phabricator revision for an explicit sign-off on the small changes applied to Events.yaml file?
Comment 10•7 years ago
|
||
From my point-of-view it shouldn't be necessary, but if you insist I say :janerik since I did the Data Review.
| Assignee | ||
Comment 11•7 years ago
|
||
(In reply to Chris H-C :chutten from comment #10)
From my point-of-view it shouldn't be necessary, but if you insist I say :janerik since I did the Data Review.
That's fine ;-), I asked to be sure that it wasn't necessary from your point of view.
Thanks!
| Assignee | ||
Comment 12•7 years ago
|
||
Hey Ben,
as part of the review of the attached patch, we were wondering:
do we still need the existing num_perms and num_origins extra vars along with the new num_strings extra?
if from your point of view the new num_strings extra is enough, then we would be happy to remove the other two num_perms and num_origins as part of the same patch.
(and I would likely rename num_strings to perm_strings, if we agree on proceeding with the removal of the other two).
Comment 13•7 years ago
|
||
What information are we losing about the install flow if we remove num_perms and num_origins and only have num_strings (if any)?
| Assignee | ||
Comment 14•7 years ago
|
||
(In reply to Ben Miroglio [:bmiroglio] from comment #13)
What information are we losing about the install flow if we remove num_perms and num_origins and only have num_strings (if any)?
In short, from num_strings you could not know exactly how many API permissions and how many host permissions there were originally in the extension manifest (or, in case of update, how many new hosts and/or new API permissions there were in the manifest of an updating extension)
num_strings represents the subset of both APIs and host permissions that are actually going to be listed in the permission doorhanger, and so if we are only interested into how many "permissions" have been shown to the user in the permission prompt, it sounds like num_strings may be the only thing that we would need to collect.
(as an example, if the <all_urls> host permission is requested by the extension, the permission prompt will not show any of the
other host permissions to the user, because it is going to just show "Access your data for all websites" which include every possible host permission).
Comment 15•7 years ago
|
||
I see. Is there a way for me to find the extension's manifest (or just the associated API/host permissions) programmatically? For example, "Show me all permissions for extension X"?
It seems the user flow data is still in tact with only num_strings, however we are working on ways (Bug 1520939) that can help us measure the security level of the add-ons ecosystem, and those permissions could play a big role. If I can access them already, then I'm fine with going with num_strings only. Otherwise I'd opt to keep them.
| Assignee | ||
Comment 16•7 years ago
|
||
(In reply to Ben Miroglio [:bmiroglio] from comment #15)
I see. Is there a way for me to find the extension's manifest (or just the associated API/host permissions) programmatically? For example, "Show me all permissions for extension X"?
It seems the user flow data is still in tact with only
num_strings, however we are working on ways (Bug 1520939) that can help us measure the security level of the add-ons ecosystem, and those permissions could play a big role. If I can access them already, then I'm fine with going withnum_stringsonly. Otherwise I'd opt to keep them.
Given the extension id, the extension permissions can also be retrieved by querying the AMO DB from STMO,
and those details should be actually more precise of the details that just num_perms and num_origins could provide.
does the approach described above fit for the plans we have for Bug 1520939?
Comment 17•7 years ago
|
||
Makes sense (its been awhile since I tinkered with that DB!). That is fine for the other bug, and you have my sign off for removing the num_perms and num_origins, replacing them with num_strings).
Thanks for the clarifying discussion.
Updated•7 years ago
|
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
| bugherder | ||
Comment 20•7 years ago
|
||
Verified as fixed using Firefox 67.0a1 (2019-03-12) and following the steps from https://irccloud.mozilla.com/pastebin/L3TjlbsC/bug_1515697_str.md.
I will attach post fix screenshots for install and update with extra permissions actions. I can also confirm that no "addonsManager install" telemetry event has been collected for the extra.step "permissions prompt" if there are no additional permissions in the updated version.
Updated•7 years ago
|
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Description
•