Cannot install add-on if it supports multiple platforms
See original GitHub issueDescribe the problem and steps to reproduce it:
- Go to an add-on that supports multiple platforms
- Example: https://addons-dev.allizom.org/en-US/firefox/addon/ratopuse-weasp-vulturkal/
- Click install
What happened?
You may or may not get the correct add-on file for your platform when you click the install button.
What did you expect to happen?
Depending on what platform you’re on (Linux, Windows, Mac OS X) you should always get the right add-on file during installation.
Anything else we should know?
Here are some real world cases that might trigger this issue:
- There are a lot of legacy add-ons with multiple platform files
- A webextension add-on that requires native messaging to talk to a desktop application might want to say it only supports Mac and Windows but not Linux. This add-on would have multiple files and would trigger this bug. I think 1Password is an example of this but they seem to self-host their add-on.
- When a developer is submitting their add-on they may choose to deselect the ‘all platforms’ box for whatever reason and select the other platform boxes explicitly. This would also trigger the bug.
- An extension may contain an Android version and a desktop version but I can’t think of any real reason why you’d do that.
You can take a look at the API representation of the example add-on with:
curl https://addons-dev.allizom.org/api/v3/addons/addon/ratopuse-weasp-vulturkal/
This is what the files
array looks like:
"files" : [
{
"is_restart_required" : false,
"id" : 253517,
"size" : 4162,
"is_webextension" : true,
"permissions" : [],
"platform" : "linux",
"created" : "2017-08-24T14:47:04Z",
"status" : "public",
"hash" : "sha256:638e8aa4fc91e58cb003f163b1e129b362aa991a0460bcf9101daff7f8a4b653",
"url" : "https://addons-dev.allizom.org/firefox/downloads/file/253517/ratopuse_weasp_vulturkal-1.0-an+fx-linux.xpi?src="
},
{
"is_restart_required" : false,
"id" : 253518,
"is_webextension" : true,
"size" : 4161,
"platform" : "mac",
"permissions" : [],
"status" : "public",
"created" : "2017-08-24T14:48:26Z",
"url" : "https://addons-dev.allizom.org/firefox/downloads/file/253518/ratopuse_weasp_vulturkal-1.0-an+fx-mac.xpi?src=",
"hash" : "sha256:2755819195584b4e7693ea5d08493b476fb9318b0f2e6560d29e5877cb64dfd5"
},
{
"size" : 4162,
"is_webextension" : true,
"id" : 253519,
"is_restart_required" : false,
"hash" : "sha256:749b0183848611335c7ff10ce0a2aa25cddcaf07b7bd565ba046769252de8db5",
"url" : "https://addons-dev.allizom.org/firefox/downloads/file/253519/ratopuse_weasp_vulturkal-1.0-an+fx-windows.xpi?src=",
"created" : "2017-08-24T14:48:26Z",
"status" : "public",
"permissions" : [],
"platform" : "windows"
},
{
"platform" : "android",
"permissions" : [],
"status" : "public",
"created" : "2017-08-24T14:48:41Z",
"url" : "https://addons-dev.allizom.org/firefox/downloads/file/253520/ratopuse_weasp_vulturkal-1.0-an+fx-android.xpi?src=",
"hash" : "sha256:f7aba3eeadafbf2203972595f2cb10777a6d9967bcd76ba9aaa5142be0df4b68",
"is_restart_required" : false,
"id" : 253520,
"size" : 4162,
"is_webextension" : true
}
]
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Unable to install AddOn using FileNet Content Engine ... - IBM
Problem. During the creation of the initial object store, the Object Store wizard was unable to install the 5.1.0 Base Content Engine ...
Read more >Cannot install add-ons because of connection error
xpi's cannot be installed directly either. I got a message saying this add-on appears to be corrupt. I duckduckwent this issue and tried...
Read more >View, manage, and install add-ins for Microsoft 365 programs
Explore your options and settings when you install add-ins. ... commands and new features to Microsoft 365 programs that help increase your productivity....
Read more >SAP Issue - I get error "Continue working without this Add-on ...
This issue can be caused by registering 64-bit add-ons on a 32-bit client. Even if one add-on is not developed for the correct...
Read more >Install an add-on in a distributed Splunk Enterprise deployment
Unless noted, add-ons are supported on indexer clusters, whether single-site or multi-site. If the add-on defines configurations for modular ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I added support for as many mainstream Linux/Unix flavors as I could think of. I did not add support for historical OSes like RISC, etc.
Thanks for the user agent strings. I can reproduce this and I am working on a fix.