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

Util for testing permission changes #184

Open
aklinker1 opened this issue Oct 26, 2023 · 0 comments
Open

Util for testing permission changes #184

aklinker1 opened this issue Oct 26, 2023 · 0 comments
Labels
Milestone

Comments

@aklinker1
Copy link
Collaborator

Feature Request

When updating permissions or adding content scripts, it's useful to know if the browser will disable your extension and prompt the user to accept the new permissions.

I'd like to add a wxt check-permissions command that generates two CRX files, one for the previous tag, and one for the current head, then walks you through installing both to see if your change will disable the app on update.

Full command might look like this:

wxt check-permissions --against <ref>
  1. Make sure we know the path to chrome
  2. Do a wxt zip against the current head
  3. If there changes have not been committed, prompt to stash them or exit if not
  4. Checkout the last tag or the --against ref
  5. Run a zip again, downgrading the version to 0.0.0-<ref>
  6. Create a CRX without a private key based of the older commit's zip
  7. Create a CRX with the private key output by the last step on the current head's zip
  8. Print instructions to install and test manually

Is your feature request related to a bug?

N/A

What are the alternatives?

I am not aware of any tools for testing permission updates like this.

Additional context

N/A

@aklinker1 aklinker1 added this to the v1.2 milestone Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant