Skip to content
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

Merged
merged 23 commits into from
Dec 14, 2021

Conversation

lesleyjanenorton
Copy link
Collaborator

@lesleyjanenorton lesleyjanenorton commented Nov 29, 2021

This patch makes proxy and nativeMessaging 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

  • Adds checkboxes options.html to enable/disable both permissions
  • Adds permissions listeners to options.js so that the options page will be updated to reflect the latest
Screen Shot 2021-12-13 at 4 25 29 PM

Onboarding:

  • Adds permissions warning to the bottom of the MozillaVPN / Proxy onboarding panel
Screen Shot 2021-12-13 at 4 28 19 PM Screen Shot 2021-12-13 at 4 30 29 PM

Permissions nudges

Screen Shot 2021-12-13 at 4 31 47 PM Screen Shot 2021-12-13 at 4 31 40 PM Screen Shot 2021-12-13 at 4 48 53 PM Screen Shot 2021-12-13 at 5 01 37 PM

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

@bakulf bakulf force-pushed the make-proxy/nativeMessaging-optional branch 5 times, most recently from f8821ba to 9065790 Compare December 3, 2021 11:10
@lesleyjanenorton lesleyjanenorton force-pushed the make-proxy/nativeMessaging-optional branch from 3c4cd46 to 7422dc8 Compare December 6, 2021 00:37
@lesleyjanenorton lesleyjanenorton force-pushed the make-proxy/nativeMessaging-optional branch from e52a33a to 8e51ea0 Compare December 7, 2021 16:23
@lesleyjanenorton lesleyjanenorton marked this pull request as ready for review December 9, 2021 00:08
@lesleyjanenorton lesleyjanenorton changed the title Make proxy & nativeMessaging permissions optional - 🚧 WIP 🚧 Make proxy & nativeMessaging permissions optional Dec 9, 2021
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/background/assignManager.js Outdated Show resolved Hide resolved
@@ -156,6 +161,12 @@ const MozillaVPN = {
};
},

async bothPermissionsEnabled() {
const proxyPermissionEnabled = await browser.permissions.contains({ permissions: ["proxy"] });
Copy link
Collaborator

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;

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.

@bakulf bakulf force-pushed the make-proxy/nativeMessaging-optional branch from b8560ff to f544f41 Compare December 14, 2021 18:06
@bakulf bakulf merged commit 4651126 into main Dec 14, 2021
@bakulf bakulf deleted the make-proxy/nativeMessaging-optional branch December 14, 2021 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the need to accept "may message external applications" permission?
3 participants