Open Bug 1990975 Opened 25 days ago Updated 13 days ago

Allow IP Protection exclusions to be modified from the toolbar widget

Categories

(Firefox :: IP Protection, task, P1)

task

Tracking

()

People

(Reporter: kpatenio, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fx-vpn])

Attachments

(1 file)

Follow up to Bug 1990013. We want the ability to modify site exclusions from the IP Protection widget once the secondary exclusions toggle is implemented.

Things to add:

  • If the current domain is in the IPPExceptionsManager exceptions set, show the toggle in the enabled state
  • If the current domain is not in the IPPExceptionsManager exceptions set, show the toggle in the not enabled state
  • Add the current domain to the exceptions set if the user toggles to enabled
  • Remove the current domain from the exceptions set if the user toggles to not enabled

Loading the exclusions

  • We can easily access the set of exceptions via IPPExceptionsManager. With this, we can potentially pass off the domains to ipprotection-content.mjs. From there, we can check if the current domain is in that set.

Possible approach to add / remove domains

  • We can dispatch an event to IPProtectionPanel when the user interacts with the secondary site exclusions toggle
  • IPProtectionPanel listens for the event and then calls IPPExceptionsManager's add or remove method to update the exceptions set accordingly

Other considerations

  • We want the ability to add / remove domains only if we meet the conditions to show the toggle on the panel

Figma

Blocks: 1993339
No longer blocks: 1987907
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: