Open Bug 1826747 Opened 2 years ago Updated 2 years ago

Create a per-"addon gated site permission" mapping table for 3rd party install and post install prompt localized string ids

Categories

(Toolkit :: Add-ons Manager, task, P3)

task

Tracking

()

People

(Reporter: rpl, Unassigned)

References

Details

(Whiteboard: [addons-jira])

The SitePermission addon type has been going through a few rewording of the "3rd party install" and "post install" doorhanger to make it more clear to users what are they getting prompted for and what are the risks of accepting the "addon gated" SitePermissions install triggered from a website that the user is visiting.

At the moment midi and midi-sysex are the only two gated permissions supported, and so the localized string ids are currently hardcoded, but we would like to create an explicit per-"addon gated site permission" mapping table.

The new mapping table could be exported from the existing siteperms-addon-utils.sys.mjs ES module, which is also the ES module exporting other helpers related to the SitePermission addon type (e.g. in addition to the existing helpers function isGatedPermissionType or isPrincipalInSitePermissionsBlocklist we may introduce new ones like export function getInstallPromptStringIds(type) { ... } and export function getPermissionsPromptStringIds(type) { ... } to retrieve the string ids associated to a given sitepermission type string).

Whiteboard: [addons-jira]
Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.