-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make proxy & nativeMessaging permissions optional #2225
Conversation
f8821ba
to
9065790
Compare
3c4cd46
to
7422dc8
Compare
- Badge the Options icon when proxy and/or nativeMessaging permissions are disabled. Remove on click, don't show again. - Use localized strings - Refactors + cleanup
e52a33a
to
8e51ea0
Compare
This prevents permission prompts from getting lost when multiple permission checkboxes are checked before their corresponding prompts are accepted or declined and one of the permissions requires a reboot when enabled (Jira ticket MAC-689)
src/js/mozillaVpn.js
Outdated
@@ -156,6 +161,12 @@ const MozillaVPN = { | |||
}; | |||
}, | |||
|
|||
async bothPermissionsEnabled() { | |||
const proxyPermissionEnabled = await browser.permissions.contains({ permissions: ["proxy"] }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use promise.all and contains (false). I can update this.
@@ -1,29 +1,122 @@ | |||
body { | |||
--grey10: #e7e7e7; | |||
|
|||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system-ui
is the equivalent of -apple-system
on Linux, and results in the same font that's used by the current desktop theme by default.
b8560ff
to
f544f41
Compare
This patch makes
proxy
andnativeMessaging
permissions optional instead of required.It also updates the UI to accommodate these changes and provide visual cues and easy paths to enabling these permissions for folks who want to make use of the Mozilla VPN integration and/or custom proxy feature.
Options
Onboarding:
Permissions nudges
Strings for this feature are here
Fixes #2240, #2226
🟢 Green light from QA
Closes MAC-689, MAC-686, MAC-683, MAC-682, MAC-680, MAC-684, MAC-674, MAC-675, MAC-676, MAC-677, MAC-678