-
Notifications
You must be signed in to change notification settings - Fork 145
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
Declaring gecko_android in a manifest breaks old versions of Firefox #5071
Comments
I think this is an issue with Edit: so in fact, this should work in Firefox version 69 and above, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1542351 |
Side note: When did we introduce |
It was made "official" a year ago or so, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1797777 and https://bugzilla.mozilla.org/show_bug.cgi?id=1797050 but, in practice, it was much older than that. |
FYI I have received a bug report from a user of my add-on once I added |
By the way, I added a blank |
The gecko_android key was introduced in version 113. If you don't specify |
That is not at all intuitive. The expected behavior is that a blank "gecko_android" will inherit |
Why would that be expected? |
The expectation @ghostwords mentioned is reflected in the current documentation on MDN.
|
Logically In Firefox, that is already how it works: gecko_android overrides gecko. |
Thanks! I read that as property not provided, not value not provided. But I agree it's not entirely clear. How about we make the value mandatory? In other words, if you specify the property, you also need to provide the value (and it cannot be empty). |
AMO will use |
That does not offer any meaningful benefits. We shouldn't require too much boilerplate. We chose to default to 113 because that was the first version where General availability of add-ons is rolling out now (near version 120). Before that, the only way to install arbitrary add-ons is through the Collection feature, which is only available on pre-release versions of Firefox for Android:
The main Firefox app hasn't supported arbitrary extensions after 68 (which was released 3+ years ago and should not be used by anyone who cares about security). In short, I would not expect much negative impact from setting the minimum version to 113+. On the contrary, developers don't have to be concerned about user reports from ancient unsupported Firefox for Android releases. |
I hope that's true! I checked Privacy Badger's AMO stats page yesterday. I think it looked like roughly 6% of Android users were on Firefox older than 113, which is not nothing. |
There are two issues reported in this issue:
Ah, Privacy Badger is one of the few extensions that were part of the default collection, available to users on release. That explains the higher-than-expected usage. Users on these ancient unsupported Firefox versions would then just be stuck on an older version of your add-on. They should update to the latest Firefox version, because continuing to use ancient browser versions will result in exposure to already-resolved security vulnerabilities, and encountering broken websites that use modern web platform features. If you ever get user reports complaining about the inability to install the add-on, just encourage them to update their browser. As an extension developer myself, I have also received emails from users in this situation, and my recommendation for them was to update the browser. |
So that it doesn't default to 113. mozilla/addons-linter#5071 (comment) Following up on dddacc6
I did just that, setting However, AMO's "Manage Status & Versions" page for the new version still shows a disabled compatibility dropdown for Android, still fixed to 113: |
Describe the problem and steps to reproduce
addons-linter
to lint this manifest.What happened?
addons-linter
does not show a minimum Firefox version compatibility warning if "browser_specific_settings.gecko_android" is declared in the manifest. This may lead to unexpected behaviors as older versions of Firefox will refuse to load an extension if this property is included in an extension's manifest.What did you expect to happen?
The linter should log a warning and indicate that "gecko_android" is not compatible with Firefox versions below 78.
Anything else we should know?
@diox noted that MDN compatibility data for "gecko_android" was adjusted in mdn/browser-compat-data#20810 to address false warnings that were returned by addon-linter.
This issue was originally reported by @ghostwords in a comment on the Mozilla Add-ons blog.
https://blog.mozilla.org/addons/2023/10/05/changes-to-android-extension-signing/comment-page-1/#comment-227718
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: