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 hidden and action mutually exclusive #4432

Closed
willdurand opened this issue Aug 8, 2022 · 6 comments · Fixed by #4433
Closed

Make hidden and action mutually exclusive #4432

willdurand opened this issue Aug 8, 2022 · 6 comments · Fixed by #4433

Comments

@willdurand
Copy link
Member

Hidden extensions should ideally not have any browser actions because it is a bit odd to not see the extension anywhere (e.g., not in about:addons) but still see a button in the toolbar and no way to remove the extension for instance. FTR, extensions can only be "hidden" if they are privileged extensions. That isn't possible for "regular" extensions.

We currently don't have any privileged extensions with browser actions but there is no restriction. We are going to make that happen in Firefox but it would be good to emit an error too.

@ioanarusiczki
Copy link

@rpl @willdurand

I tried with linter version 5.14.0 using a mozilla-signed extension to add browswer_action and page_action into manifest.json.

I didn't get an error with my testing sample. I'm attaching it, maybe I'm doing something wrong?

test2.zip

@willdurand
Copy link
Member Author

This is only for privileged extensions with hidden: true in the manifest.json file and one (or all) of browser_action, page_action and action.

@ioanarusiczki
Copy link

@willdurand Ok, thanks, I'll add hidden, I was suspecting I'm missing something but I did not find hidden as property so I wasn't sure how to use it.

@ioanarusiczki
Copy link

@willdurand

I get the error message locally while testing it with --privileged flag and "hidden":true. Here's action property used in MV3:

actionmv3

I've also noticed that on the testing servers (AMO dev) this error is not available. Is this expected? Maybe these addons are uploaded with web-ext (It's just an assumption).

@willdurand
Copy link
Member Author

I've also noticed that on the testing servers (AMO dev) this error is not available. Is this expected? Maybe these addons are uploaded with web-ext (It's just an assumption).

Yes, it is expected I think. The linter shouldn't be executed with the --privileged flag on AMO

@willdurand
Copy link
Member Author

I get the error message locally while testing it with --privileged flag and "hidden":true. Here's action property used in MV3:

That looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants