mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Switch from the old XML-based AMO metadata API to the modern JSON based API. This turned into something between a modest update and complete rewrite. Most notably, external APIs became (mostly) promise-based. The exception is getCachedAddonById() which XPIInstall.jsm requires a synchronous callback from. Also, hopefully we will be able to get rid of a bunch of this metadata handling soon. If this code had a long life ahead of it, the unit tests could use some more attention, but I mostly did the minimum here just to keep them running for now with the expectation that we'll be able to get rid of them within some small number of months. MozReview-Commit-ID: 3DRaBdWGaiJ
21 lines
390 B
JSON
21 lines
390 B
JSON
{
|
|
"next": null,
|
|
"results": [
|
|
{
|
|
"name": "Restartless Test Extension",
|
|
"type": "extension",
|
|
"guid": "[email protected]",
|
|
"current_version": {
|
|
"version": "1.0",
|
|
"files": [
|
|
{
|
|
"platform": "all",
|
|
"size": 485
|
|
}
|
|
]
|
|
},
|
|
"last_updated": "2011-09-05T20:42:09Z"
|
|
}
|
|
]
|
|
}
|