Remove site inclusions and "select" mode support from Firefox VPN settings page
Categories
(Firefox :: IP Protection, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | verified |
People
(Reporter: kpatenio, Assigned: kpatenio)
References
Details
(Whiteboard: [fx-vpn])
Attachments
(1 external file)
Our current implementation allows for two protection mode types ("all" and "select"), which relate to site exclusions and inclusions respectively. For our MVP though, we will only commit to site exclusions. All code concerning site inclusions and "select" mode need to be cleaned up.
This ticket concerns the about:preferences UI for Firefox VPN.
permissions.js:- Remove
ALLOWcapability permission filter foripp-vpnpermission type https://searchfox.org/firefox-main/rev/9a44e01da517c08e962c78bafd0712690381717a/browser/components/preferences/dialogs/permissions.js#117,119-123
- Remove
privacy.js- Remove
ipProtectionExceptionSelectListButtonsetting https://searchfox.org/firefox-main/rev/9a44e01da517c08e962c78bafd0712690381717a/browser/components/preferences/privacy.js#1454-1474 - Remove
exceptionsModepref registration https://searchfox.org/firefox-main/rev/9a44e01da517c08e962c78bafd0712690381717a/browser/components/preferences/privacy.js#1423-1432 and also https://searchfox.org/firefox-main/rev/9a44e01da517c08e962c78bafd0712690381717a/browser/components/preferences/privacy.js#205
- Remove
- Remove mentions of
ALLOWcapability,MODE.select, "select" mode, and inclusions in comments for the aforementioned files - Testing
browser_exceptions_dialog.js- Currently, it is the only file that tests for the capability filter addition to the permissions dialog.
- We could perhaps remove the mode prefs, such that each test task isn't reliant on having set the
exceptionsModepref viaSpecialPowers. It would be a matter of updating our helper functions to add ALLOW capability permissions or DENY capability permissions for a test task. Then, each test task will check that the filter works as expected. - Optional: as a follow up task, we could try making a "general" test for the capability filter feature in the permissions code base, so that there is no dependency on Firefox VPN.
browser_privacy_ipprotection.js- Remove tests relevant to site inclusions and mode switching https://searchfox.org/firefox-main/rev/9a44e01da517c08e962c78bafd0712690381717a/browser/components/preferences/tests/browser_privacy_ipprotection.js#126-236
- Ensure that "all" mode is the default and only available option in
about:preferences - Ensure that we always load and update site exclusions (permissions with capability ===
DENY) in the dialog. Previously, we relied on a capability filter to choose between exclusions and inclusions. We can probably get rid of the filter property since we expect the default to be exclusions.
Updated•11 months ago
|
Updated•11 months ago
|
Comment 4•11 months ago
|
||
Verified this using Firefox Nightly 148.0a1 (12/12/25) on Windows 10.
The "all" and "select" options were replaced with "Site specific changes" containing a "Manage website settings" sub-option. All options form the "Manage website settings" work as expected.
User can manually add websites to this list.
The functionality is yet to be added.
Is there anything else we should verify here?
Thanks for verifying the change Valentina. What you tested sounds good to me. I think that's all for this bug.
Updated•11 months ago
|
Description
•