-
Notifications
You must be signed in to change notification settings - Fork 41
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
Addon Validation Error when using static initialization blocks in add-on code #1403
Comments
Hi, It looks like an error with our scanners, yes. |
Depends on estools/estraverse#120 |
We've made a fix in our private scanners that should resolve the problem. It should be in production on 2022-04-21 after 19:00 UTC+2. |
A bit confusing that the reporter says But I tested the .zip file attached above on dev and stage and I could upload it plus a new version. Right now on -prod the validation fails from dev hub or using the APIs. |
That's because it works if you install the unsigned xpi through about:debugging (or when disabling signatures). i.e. that was purely something on the AMO side, Firefox supported that syntax correctly. |
@diox Ah ok, which means that my testing method was correct. |
So, the problem is in class static initialization block. When it exists, error occurres, even if it is empty, even if there is no other code. (See in scripts/player.js:13)
P.S. In browser all works fine.
publish.zip
A new version of an existing add-on.
Listed.
https://addons.mozilla.org
11:10 UTC+2
The text was updated successfully, but these errors were encountered: