Open Bug 1998827 Opened 1 month ago Updated 12 hours ago

Update descriptions for site exceptions buttons in about:preferences to count number of sites added

Categories

(Firefox :: IP Protection, task, P1)

task
Points:
3

Tracking

()

ASSIGNED

People

(Reporter: kpatenio, Assigned: kpatenio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fx-vpn])

Attachments

(1 file)

Designs for settings UI overall: https://www.figma.com/design/l75lLbgf95PuVqNafzdvel/VPN---Firefox-Integration--Pilot?node-id=15691-47603&m=dev
Designs for count permutations: https://www.figma.com/design/l75lLbgf95PuVqNafzdvel/VPN---Firefox-Integration--Pilot?node-id=15704-131919&m=dev

Setup conditions:

  • Be enrolled in our experiment
  • Change browser.ipProtection.variant to "beta" to see about:preferences UI

Right now, our moz-box-buttons for Firefox VPN settings have the placeholder descriptions "No websites added yet".

We'll need to count the number of inclusions or exclusions, according to the current protection mode selected.

  • Eg. if we added 2 exclusions, then the description for the "all" button should be reflected to display "2 websites"

  • According to config based settings docs, we can pass in a l10nArgs to our string.

  • As for actually counting the sites — I'm wondering if setting up getControlConfig for our button settings in privacy.js can help? In our controlConfig, we could try calling Services.perms (like here) or IPPExceptionsManager to read the number of exclusions / inclusions. This is something that I haven't fully thought out yet.

Blocks: 2004517
Assignee: nobody → kpatenio
Status: NEW → ASSIGNED
Attachment #9532566 - Attachment description: WIP: Bug 1998827 — update site exclusions control to show the correct number of excluded sites. r=#ip-protection-reviewers! → Bug 1998827 — update site exclusions control to show the correct number of excluded sites. r=#ip-protection-reviewers!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: